Git Product home page Git Product logo

sharptal's People

Contributors

borisshevchenko avatar eugeneai avatar lck avatar petteriaimonen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sharptal's Issues

Does it support dynamic object?

Hi,

I want to bind a object inherit from DynamicObject and IDictionary<string, object>. I want to use article.Title to bind the field, but it always throw a exception "CS1061: 'object' does not contain a definition for 'Title' and no extension method 'Title' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?) (line 468)".

I change to use the dictionary syntax "article["Title"]", but it throws "
CS0021: Cannot apply indexing with [] to an expression of type 'object' (line 468)
"
How can I to fix it?

< bug

example: ${5 < 4}

CompileSourceException

Hi

First of all, let me say that I am excited to have found this project. ZPT is one of the best inventions ever done in Zope and I am happy to see it live on in .NET.

Unfortunately I am getting a CompileSourceException with this rather simple code, I guess I am missing something?

This code fails on the last line:

  public static void ForgotPassword(string toEmail, List users) {
    // ...
    Template template = new Template(tpl);
    string body = template.Render(new Dictionary { { "users", users.ToArray() } });

ZPT template:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:tal="http://xml.zope.org/namespaces/tal">
<body>
    <ul>
        <li tal:repeat="user users"><span tal:replace="user.UserName"></span></li>
<!-- ... -->

I also tried sending the generic List directly instead of calling ToArray on it. In the first case, the error message says "object doesn't have a property called "UserName", in the second case, "type ForgotPasswordUser does not exist".

Thanks, Claus

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.