Re: why are not templates automatically reloaded ?
On Sat, Jul 16, 2011 at 5:55 AM, wbwylbt wrote: > I modified development.ini : > 'reload_templates'=true > Just to nitpick it should be: [app:myapp] reload_templates = true If you're actually throwing quotes around reload_templates, I'm pretty sure it won't work. -- Michael -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Deform SequenceWidget and i18n issue
I have an annoying i18n translation issue in a otherwise perfectly behaved setup. The "Add ${subitem_title}" link in a SequenceWidget isn't properly translate when switching languages. Only the "Add " is translated, but the ${subitem_title} isn't. This is weird, because ${subitem_title} defaults to the title of the sequence item and I defined that as usual, like this: TimeslotSchema(title=_(u'timeslot')) But no matter what language I choose, this part stubbornly refuses to change while other Schema 'title' attributes switch just fine. Even more annoying; the legend of the fieldset does change correctly! So the problem is located somewhere in the "Add" link. The relevant bits of my i18n setup is as follows: # config snippet from pkg_resources import resource_filename from pyramid.config import translator config.add_translation_dirs('colander:locale/', 'deform:locale/', 'myproject:locale/') deform.field.Field.set_zpt_renderer((resource_filename('myproject', 'templates/'), deform.template.default_dir,), translator=translator) # form snippet class TimeslotSequenceSchema(colander.SequenceSchema): timeslot = TimeslotSchema(title=_(u'timeslot')) class TimeslotsSchema(colander.MappingSchema): timeslots = TimeslotSequenceSchema(title=_(u'timeslots'), widget=SequenceWidget(css_class='timeslots')) Any help is much appreciated. Kind regards, Keesjan -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Re: why are not templates automatically reloaded ?
On Sat, Jul 16, 2011 at 03:55:51AM -0700, wbwylbt wrote: > I modified development.ini : > 'reload_templates'=true > > when I edited my templates fiels ,, > > i can not see changes to templates take effect immediately during > development > > i need to restart the application > > why are not templates automatically reloaded ? As far as I can see in the Pyramid repository, all the default "templates" (aka. scaffolds now) do have the templat auto reloading feature enabled, as you can see in https://github.com/Pylons/pyramid/tree/1.0/pyramid/paster_templates Jon -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Re: Email for development and production environments
Also, you can use the python debug smtp server which prints all messages to stdout. From the command line just type: python -m smtpd -n -c DebuggingServer localhost:1025 And you'll be able to send mail to localhost, port 1025. --matt On Sun, Jul 10, 2011 at 6:08 PM, Ronan Amicel wrote: > Hello Vincent, > > On Sun, Jul 10, 2011 at 20:03, Vincent Catalano > wrote: >> I am attempting to setup a lost password email configuration in Pylons. I >> want to be able to test the emails in my development environment as well as >> have a working email system in production. So I have two questions: >> 1. What is the best way to send emails from within Pylons > > I like TurboMail: http://pypi.python.org/pypi/TurboMail > > You can define different parameters for development and production in > your paster INI files. > > >> 2. What is the best way to configure a local test email server (or best >> option that Paster offers for dealing with emails) > > It depends on your development OS. > > If you're using Debian/Ubuntu, it's as simple as 'sudo apt-get install > postfix'. > > Regards, > > -- > Ronan Amicel > http://topixtream.com/ > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To post to this group, send email to pylons-discuss@googlegroups.com. > To unsubscribe from this group, send email to > pylons-discuss+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/pylons-discuss?hl=en. > > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
why are not templates automatically reloaded ?
I modified development.ini : 'reload_templates'=true when I edited my templates fiels ,, i can not see changes to templates take effect immediately during development i need to restart the application why are not templates automatically reloaded ? -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Re: deform: reCaptcha
On Sat, 2011-07-16 at 06:09 -0400, Chris McDonough wrote: > On Sat, 2011-07-16 at 11:06 +0100, Richie Ward wrote: > > Am I missing something or does deform not have a CAPTCHA? > > > > If not perhaps you could integrate this widget that I found on > > github... https://gist.github.com/701444 > > > > Perhaps there is a good reason for it not having this feature? Maybe a > > better alternative to captcha's? > > Captcha usually depends on retaining state between browser requests > associated with the same user (aka a "session"). Each web framework has > their own way of dealing with this. Deform is not dependent on any > particular web framework, and cannot supply the necessary machinery to > do it by itself. So if someone makes a captcha widget it will have to > be distributed as an add-on. I guess now that I read that gist, though, reCaptcha doesn't rely on any particular sessioning system, but does require a private key. In any case, I think this is a perfect use case for an add-on. - C -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Re: deform: reCaptcha
On Sat, 2011-07-16 at 11:06 +0100, Richie Ward wrote: > Am I missing something or does deform not have a CAPTCHA? > > If not perhaps you could integrate this widget that I found on > github... https://gist.github.com/701444 > > Perhaps there is a good reason for it not having this feature? Maybe a > better alternative to captcha's? Captcha usually depends on retaining state between browser requests associated with the same user (aka a "session"). Each web framework has their own way of dealing with this. Deform is not dependent on any particular web framework, and cannot supply the necessary machinery to do it by itself. So if someone makes a captcha widget it will have to be distributed as an add-on. - C -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
deform: reCaptcha
Am I missing something or does deform not have a CAPTCHA? If not perhaps you could integrate this widget that I found on github... https://gist.github.com/701444 Perhaps there is a good reason for it not having this feature? Maybe a better alternative to captcha's? -- Thanks, Richie Ward -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.