ericrasmussen / deform_retail_demo Goto Github PK
View Code? Open in Web Editor NEWDemo to show off deform's retail form rendering feature
Demo to show off deform's retail form rendering feature
the translate filter for the form error messages looks like can't work.
I think it is because the request.localizer is not init.
so, if there is a demo for how to use i18n with deform and colander would be very nice.
I used a schema which has Rich Text widget , the gist can be found here https://gist.github.com/mmahesh/7179381
i am unable to render the rich text widget in the template. How should i go about solving this ? Is there any list of functions for widget retail rendering?
This is exactly what I was looking for. I'm developing a project using pyramid, deform, foundation and mako templates and was lost on how to integrate it all. I'm sure this will help immensely! Thanks.
I've tried to integrate it with a project of mine and I'm encountering an issue here:
The runtime exception is:
File "/Users/Shared/webapp/deformport_env/deformport/deformport/templates/auth/login.mako", line 92, in render_render_error
${e|n,translate}
TypeError: 'Undefined' object is not callable
It's doing something with some class called TranslationString but the incoming "e" object is null/undefined
Looking at the calling code: https://github.com/ericrasmussen/deform_retail_demo/blob/master/deformretail/views.py#L138
if submitted:
# try to validate the form and save the user/redirect on success
try:
appstruct = form.validate(controls)
request.session.flash("You are now logged in! (not really)")
location = request.route_url('login')
return HTTPFound(location=location)
# if the form failed, return it with errors and don't save changes
except deform.ValidationFailure, e:
return {'form': form}
return {'form': form}
I notice the exception is returning the same form object as if the submission was successful?
I'm not sure what's going on here. Any suggestions?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.