>From my experience, this kind of middleware mediating between the data
source and a JS library is
1. hard to maintain - library versions on both ends may change all the time,
2. often limited in capabilities,
3. not that much code anyway
so that I guess many people do what I did and roll their own
, Oct 21, 2013 at 6:03 PM, Michael Merickel wrote:
>
> On Mon, Oct 21, 2013 at 10:56 AM, Robert Forkel
> wrote:
>
>> Yeah, That's what happened here. For the last test i has disabled the
>> debugtoolbar.
>
>
> Robert, I honestly forgot that config.add_settin
ettings to be set
> before that happens, so on the starter scaffold it was setup prior to the
> config.add_settings() call.
>
>
> On Mon, Oct 21, 2013 at 10:38 AM, Robert Forkel
> wrote:
>
>> I'm pretty sure I didn't. In particular for the deployment on t
atm. Are you super
> serial that you haven't including pyramid_mako from like an ini file using
> "pyramid.includes =" or something prior to adding the settings?
>
>
> On Mon, Oct 21, 2013 at 10:20 AM, Robert Forkel
> wrote:
>
>> I see. I actually did inclu
you haven't including pyramid_mako from like an ini file using
> "pyramid.includes =" or something prior to adding the settings?
>
>
> On Mon, Oct 21, 2013 at 10:20 AM, Robert Forkel
> wrote:
>
>> I see. I actually did include pyramid_mako and then added s
but could explain the situation.
>
>
> On Mon, Oct 21, 2013 at 10:01 AM, Robert Forkel
> wrote:
>
>> I got the traceback below - no debugtoolbar involved, but pyramid_exclog
>> to email the error. What I do know is: downgrading to pyramid_mako==0.2
>> fixed the
Can you
> paste an error message?. Are you getting an actual error, or something
> else? The issue I expect to see is that the debugtoolbar needs to be
> upgraded to at least 1.0.9, as it depends on pyramid_mako 0.3+ because
> prior to that it was using private APIs.
>
> - Michael
Hi,
following the note on
http://docs.pylonsproject.org/projects/pyramid/en/master/whatsnew-1.5.html
that says it's fine to install pyramid-mako into older pyramid
installations, I ended up with a broken app, because as far as i can tell,
starting with 0.3 pyramid-mako doesn't take settings int
from pyramid.httpexceptions import HTTPUnauthorized
...
raise HTTPUnauthorized()
didn't check the correct names, but that's basically what you'd do. "raise
..." allows you to end the request processing anywhere in your code.
On Wed, Sep 18, 2013 at 5:57 AM, AM wrote:
> Hi.
>
> I have a UserF
est
robert
On Tue, Jul 23, 2013 at 4:44 PM, askel wrote:
> Robert,
>
> Package and package_name of configurator passed to includeme reference
> includeme's package and not the application package.
>
> - Alex K
>
>
> On Tuesday, July 23, 2013 4:30:53 AM UTC-4, Ro
Hi all,
I just came across the same problem as OP: How do I determine the
"application" package from an includeme function. I found the two
attributes "package" and "package_name" of the Configurator object and
think this is what I want. But since these are not documented as public
API, is it s
The thing that differentiates pyramid from the rest for me is the
configurator. My use cases in the last 2 years have been applications
which will be installed multiple times with wildly varying
configuration, and different applications which share a lot of
behaviour. In one case, I used a shared p
Probably not what you are looking for, but what I do is creating the
gettext catalog files under python 2.x.
regards
robert
On Fri, Feb 15, 2013 at 11:51 AM, Jacob Hite wrote:
>
> (also posted on SO:
> http://stackoverflow.com/questions/14892977/internationalization-with-pyramid-and-python-3)
>
>
You may want to look at
http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/assets.html#overriding-assets
regards
robert
On Mon, Jan 28, 2013 at 1:17 PM, Torsten Irländer wrote:
> Hi,
>
> I am currently migrating my Pylons application to Pyramid and I have some
> questions on how to rea
hi mike,
i went the custom http header way as you already mentioned. like you i
started doing this for testability, but now consider it as making the
json api of my app more usable outside of the ajax context it was
invented for, i.e. non-browser clients do also profit from the added
headers.
regar
AFAIK it was the other way round: you could specify view parameters
with add_route. Anyway, when I have lot's of views with one-to-one
mappings to routes I tend to use the imperative config method and
write a small function which does both config.add_route and
config.add_view in one go.
regards
rob
Hi Paul,
I played with pyramid_layout recently and ran into the following
problem: I have a library of layouts and panels which may be used in
several apps so they get all registered in the includeme function of
the library. But some apps may have to override a panel or a layout.
But re-registering
Route Factory seems to be the proper term, see
http://pyramid.readthedocs.org/en/latest/narr/urldispatch.html#route-factories
On Fri, Aug 31, 2012 at 11:37 AM, Robert Forkel wrote:
> I guess I'm doing something similar. At least as far as having
> resource specific permissions. But
I guess I'm doing something similar. At least as far as having
resource specific permissions. But I've chosen to implement this using
context factories. So the
resource_id = int(request.matchdict["resource_id"])
resource = DBSession().query(Resource).get(resource_id)
if not resource:
Hm. Isn't the point of using libraries like form_encode exactly so
that you don't have to write the tests for this yourself? If
form_encode is supposed to make sure model attributes are changed
according to form input, but you do not want to rely on this, there's
a lot of testing ahead, i guess.
I'
This is not what I'm seeing with
pyramid-mailer==0.9
repoze.sendmail==3.2
Messages are placed in maildir/new and are picked up by qp ok.
regards
robert
On Thu, Aug 9, 2012 at 2:06 AM, Jonathan Vanasco wrote:
> after digging around code a lot, here's what i figured out:
>
> i call pyramid_mailer's
as complex as comprising
sequences, and i guess at this point we will look for alternatives
again.
On Thu, Jul 26, 2012 at 10:53 PM, Randall Leeds wrote:
>
> On Jul 25, 2012 2:32 PM, "Robert Forkel" wrote:
>>
>> You are right. There are ways to customize the HTML gene
:10 PM, Randall Leeds wrote:
> On Wed, Jul 25, 2012 at 2:21 AM, Robert Forkel
> wrote:
>> deform [1] should work with python3. But not having used simpleform
>> myself I cannot say whether it's a good replacement. From my
>> experience I'd say if you need full
deform [1] should work with python3. But not having used simpleform
myself I cannot say whether it's a good replacement. From my
experience I'd say if you need full control of the HTML generated by
the form lib, deform may not fit the bill.
regards,
robert
[1] http://pypi.python.org/pypi/deform/
Hi André,
i guess this is with venusian >= 1.0a6. I ran into a similar problem
with cornice, and managed to find a workaround:
https://github.com/xrotwang/cornice/commit/dbbf07fb50a100c9357eef47668528cb83096c9b
Note the depth argument passed explicitely to venusian.attach which
controls down to whi
If gunicorn is installed in the environment, using the full path
/path/to/virtualenv/bin/gunicorn should be enough to "activate" the
virtualenv, thus making the packages available.
On Thu, Jul 5, 2012 at 7:57 AM, Mark Huang wrote:
> "Could it be for any reason, that your user www-data either has
sudo -u www-data python -c "import logging; print dir(logging)"
On Thu, Jul 5, 2012 at 7:57 AM, Mark Huang wrote:
> Sorry for a noob question: "How do I import the module as user www-data
> when the user doesn't even have shell access?" Does this mean I have to
> give this user a shell like /bi
The following line (with parameters replaced) in upstarts script block
does work for me
exec /path/to/virtualenv/bin/gunicorn --pid=$pid --name="$name"
--user=$name --group=$name \
--access-logfile=$log_dir/access.log
--error-logfile=$log_dir/error.log $config 2\
>>$log_dir/error.log
The user acc
yes, i think send_to_queue would be better, because this allows to
retry sending the message.
regards
robert
On Thu, Jun 28, 2012 at 12:27 PM, Antonio Beamud Montero
wrote:
> El 27/06/12 21:18, Jason escribió:
>
>
>
> On Wednesday, June 27, 2012 12:49:19 PM UTC-4, antonio wrote:
>>
>>
>>
>> The p
pip with our own pypi mirror. This makes the pain of pip reinstalling
everything on update a lot easier to take.
On Sat, Jun 16, 2012 at 12:01 AM, Jonathan Vanasco
wrote:
> my preferred solution right now is:
>
> merge sourcecode into a 'current_deployed' tag/branch
> use fabric/fabfile to ssh i
I just started using webassets with mako templates for an existing
project. All assets are included in a site template (site.mako).
Assets come from various sources, e.g. the deform package. So what I
do (which may be crazy): Have my build script parse site.mako to
assemble the bundles (resolving r
The configurator directive sounds like a reasonable approach to me. As
soon as you find yourself registering more configurable functions,
using the underlying zope component registry [1] methods directly
might be easier [2].
But this would mean you're relying on what seems to be considered an
imple
just wanted to let you know. I don't really have an opinion on who to
blame. The conditions venusian >= 1.0a5 imposes on callbacks before
invoking them are not met by cornice resources, thus the corresponding
routes will not be registered. I managed to fix the problem in my
cornice fork [1], but on
you may want to have a look at cornice [1]. Among other things it
helps with validating json input via colander and handling resulting
errors.
regards,
robert
[1] http://cornice.readthedocs.org/en/latest/index.html
On Wed, May 9, 2012 at 3:52 AM, anh le wrote:
> Hi all,
>
> I'm using colander to
If you are using mako, you may want to have a look at
http://docs.makotemplates.org/en/latest/runtime.html#context-variables
and adapt the strict_undefined setting in your config.
regards
robert
On Wed, May 9, 2012 at 6:27 AM, Theron Luhn wrote:
> I can pass variables into my template by returnin
i went the "all paths as asset specs" route for mako, but then found
it easier to provide support for plugins to override templates by
specifying an additional asset spec for the mako_directories config
setting. it's a bit less flexible because you can only override
templates by ones with the same
qp is not a long running process. it will finish after sending all
email queued. i use it cron-style, but scheduled via apscheduler.
On Tue, Mar 13, 2012 at 8:37 AM, Colton Provias wrote:
> I'm currently working on a project where the host does not allow for
> long running processes and requires
whether I can regard the "children" list on deform.Field as
public API.
On Mon, Mar 5, 2012 at 5:21 PM, Mariano Mara wrote:
> On 05.03.12 08:13, Robert Forkel wrote:
>> Hi,
>> i have the following Problem: I want to add fields to a form at
>> arbitrary positions after
Hi,
i have the following Problem: I want to add fields to a form at
arbitrary positions after the form instance has been initialized (this
is intended as a configuration mechanism - a default form can be
manipulated by custom packages).
I didn't find a public API method to do this, but came up with
I use a combination of this. A __json__ method on Base, and a custom json
renderer, taking this method into account.
Regards
Robert
Am 01.03.2012 15:34 schrieb "Cosmia Luna" :
> I want to to return some SQLAlchemy object to the json renderer, of course
> it didn't work.
> Can I add a method to th
variables changes.
On Fri, Feb 17, 2012 at 1:52 PM, Antonio Beamud Montero
wrote:
> El 17/02/12 10:33, Robert Forkel escribió:
>
>> It works as follows: I register context factories per route (as named
>> utility in the registry) and also use the route names as permission
>> n
rk, too?
[1]
http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/introspector.html
>
> On Feb 17, 10:41 am, Robert Forkel wrote:
>> hi mattias,
>> i pass all route names and patterns to my javascript code with a mako
>> template looking like this:
>>
>>
>
hi mattias,
i pass all route names and patterns to my javascript code with a mako
template looking like this:
% for route in request.registry.getUtility(IRoutesMapper).get_routes():
APP.config.routes["${route.name}"] = "${route.path}";
% endfor
so that i can create URLs in javascript with a fun
ic action (determined by permission) on
an object_.
"""
context = request.registry.queryUtility(IAuthzContext,
name=permission, default=None)
if context:
request.authz_object = object_
res = has_permission(permission,
context_factory(context)(request), request)
route
whether the User gas this permission.
Am 16.02.2012 17:36 schrieb "Antonio Beamud Montero" <
antonio.bea...@gmail.com>:
> El 16/02/12 16:44, Robert Forkel escribió:
>
>> i went with a custom context factory [1] per route; i.e. i have routes
>> for patterns lik
i went with a custom context factory [1] per route; i.e. i have routes
for patterns like "/task/{id}/edit" or "/task/{id}/view" and register
context factories for these which retrieve the task object from the db
and compute the permissions, i.e. attach an appropriate __acl__ object
to the task obje
hm. payment didn't work for me (from germany). the form always
complained about missing information.
On Thu, Feb 16, 2012 at 7:10 AM, Chris McDonough wrote:
> Hi folks,
>
> Lots of people pledged some amount of money in the recent thread
> entitled "need your help to overhaul docs" (see
> http://
i'd be happy to chip in
€ 50 = 65.47500 U.S. dollars
best regards
robert
On Sat, Feb 4, 2012 at 4:53 AM, Chris McDonough wrote:
> While Pyramid will never be as high-level as something like Plone or
> Django or Rails, it's still often more appropriate to use than those
> systems in a variety of s
hi jerry,
if you run your app via paster/gunicorn/whatever proxied by apache or
nginx, it is trivial to insert varnish [1] as transparent cache
between the frontend and the server serving your pyramid app.
regards
robert
[1] https://www.varnish-cache.org/
On Tue, Jan 31, 2012 at 9:16 AM, jerry w
fwiw: when I started using pyramid I was also reluctant to pass around
the request all the time. But it turned out to be the right (and
transparent) thing to do. In my case this is because I often need
request-specific information like the locale name basically
everywhere. Once you get used to this
>From my experience with deform this could be rather complicated.
Creating custom templates for widgets is easy enough, but you'd still
have to synchronize the corresponding css and js. E.g. I have custom
templates table_sequence.pt and table_sequence_item.pt to render a
sequence of widgets as tabl
Nice! Just the last bit I needed to push myself to actually using celery!
Right now (with no release on pypi yet) the instructions for running
the demo don't work without tweaking, but it was easy enough to get
around this.
Thanx and regards
robert
On Wed, Jan 11, 2012 at 7:16 AM, John Anderson w
hi,
i'm using pyramid with repoze.who via pyrfamid_who. Now I'd like to
integrate basic authentication but it seems the challenger (i.e.
creation of a HTTP 401 response) isn't done. I could get the desired
behaviour by registering the following view for the forbidden context:
def challenge_vie
oops. fat-finger.
Should cornice be only used for standalone apps?
regards
robert
On Tue, Jan 3, 2012 at 8:55 AM, Robert Forkel wrote:
> i'm trying to use cornice to add an API to an existing pyramid
> application, but i'm not sure whether this is an inteded use case.
> Rig
i'm trying to use cornice to add an API to an existing pyramid
application, but i'm not sure whether this is an inteded use case.
Right now this is made difficult by things like the registration of a
static view at 'static' in cornice's 'includeme' (because it
overwrites a view my base app already
I'm somewhat skeptical about the usefulness of this. I have a couple
of legacy apps which have been built like this - the routes tied to
the database model - and came to appreciate the level of indirection
added by routes. In my experience the direct relation between db
objects and resources in the
+1 for the class-based approach with method names mapping to http
methods. I also like the idea of the @service decorator (it would be
easier to understand in particular because of the analogy to the
@action decorator of pyramid_handlers).
One more thing which bothered me when looking at the Servic
Hi,
there's a 'route_url' method on the request which you can use to
generate URLs for routes [1].
regards
robert
[1]
http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/urldispatch.html#generating-route-urls
On Fri, Dec 16, 2011 at 12:08 PM, Joshua Partogi
wrote:
> Hello,
>
> Is it p
On the other hand, I'm not doing anything in my custom cls passed to
declarative_base which could not be done in a mixin class [1].
[1]
http://www.sqlalchemy.org/docs/orm/extensions/declarative.html#mixin-and-custom-base-classes
On Fri, Dec 16, 2011 at 9:21 AM, Robert Forkel
sqlahelpers tried to do exactly this; but this approach makes it
impossible to provide arguments for the construction of the
declarative base [1]. I moved away from sqlahelpers because I wanted
to supply my own base class.
regards,
robert
[1]
http://www.sqlalchemy.org/docs/05/reference/ext/decla
Hi,
i'm trying to implement a mechanism which allows authentication via
one-time-passwords which may be provided by a request as URL
parameter. So basically any request can be authenticated by passing a
valid one-time-password. I implemented this as additional repoze who
identifier/authenticator. N
ge
is included to prevent mistakes which will be hard to test for.
On Wed, Dec 14, 2011 at 1:45 PM, Chris McDonough wrote:
> On Wed, 2011-12-14 at 04:15 -0800, Robert Forkel wrote:
>> Hi all,
>> i was trying to abuse the 'add_directive' method of a Configurator to
>>
Hi all,
i was trying to abuse the 'add_directive' method of a Configurator to
disable built-in directives, but failed, because add_directive will
only add new ones. Now this may be totally unreasonable in the first
place, but what I wanted to accomplish is the following:
I'd like to have static ass
If you know the list of subscribers for each event when coding the
event, your approach works. But if you want to allow plugins or other
packages to hook into the events, it breaks down.
I'm using events to allow for configurable notification emails. Some
configurations of the application will have
hi all,
i think the following is a bug: setting 'pyramid.default_locale_name'
via
config.add_settings({'pyramid.default_locale_name': 'de_DE'})
does not work, because pyramid.i18n.get_locale_name does only lookup
'default_locale_name' and the settings-normalization which is done for
the setting
I never built a high-load website. But doing so based on tech white
papers (real or otherwise) wouldn't inspire much confidence, I guess.
Benchmarking different frameworks for your particular use case and
publishing the results on the other hand would be welcome :) You would
probably get the additi
I think you meant varnish for caching, Not vagrant. Other than that: this.
Am 01.12.2011 04:29 schrieb "John Anderson" :
>
>
> On Wed, Nov 30, 2011 at 7:41 PM, KlenPJ hopIJQy wrote:
>
>> Usability is the most biggest problem of Pylons Pyramid.
>>
>> I am newer to Pylons Pyramid. i am care abou
I cannot speak authoritatively but I do operate under the same
assumptions and so far everything works out fine :)
Just like you suggested I attach the basic group-to-permission mapping
as ACE to the root factories __acl__. But I do all the
per-request-permission computation in route-specific conte
2011 at 6:53 AM, Malthe Borch wrote:
> On 27 November 2011 09:58, Robert Forkel wrote:
>> This is consistent with what i experienced without caching the templates. So
>> i ended up creating the factories at app start and register these as
>> utilities, named with the locale (yo
Hi,
This is consistent with what i experienced without caching the templates.
So i ended up creating the factories at app start and register these as
utilities, named with the locale (you will need One per locale you want to
support).
Regards
Robert
Am 26.11.2011 17:41 schrieb "Malthe Borch" :
>
Just a short reply: I just built an app with URL dispatch and context
factories per route and am pretty happy with this setup so far. More
specifically, each of my routes has a permission (basically the route
name) and a context factory. The context factory retrieves the object
(specified by reques
in one of my apps I actually went with one factory per route, which is
more verbose but allows for easy customization. I register the
factories as utilities - which can be overwritten by other included
packages - and look them up and attach them to the routes afterwards.
So if customization is a co
i should note that asset overrides are taken into account for the
template specifications given in view configurations, which is
probably what started me thinking it would also work within templates.
On Fri, Nov 4, 2011 at 1:01 PM, Robert Forkel wrote:
> Hi all,
> I just ran into a clash b
Hi all,
I just ran into a clash between my intuition and the reality of
pyramid's support for mako templates: I assumed that override_asset
would also work for mako's template lookups, but this doesn't seem to
be the case. While it is still possible to get the functionality I
need by specifying mul
why not query the database first to see whether the chosen name
already exists? That's what i do in a validator function for a deform
form. Other than the potentially superfluous database query I see no
downside to this.
regards
robert
On Thu, Oct 27, 2011 at 2:51 PM, Mark Erbaugh wrote:
> I'm de
The required version is in conflict with the one shipped by ubuntu, thus you
have to create your virtualenv with --no-site-packages
Regards
Robert
Am 26.10.2011 06:46 schrieb "Vincent Catalano" :
> During my recent attempt to install Pyramid on my Ubuntu box I received the
> following error:
>
>
You need to use the --no-sitepackages option for virtualenv.
Regards
Robert
Am 19.10.2011 01:52 schrieb "guyc" :
> Hi
>
> I'm trying to create a new project in my virtual env (on debian
> squeeze) but it fails with the following after running command bin/
> paster create -t pyramid_alchemy:
>
>
I do think checking the csrf token is some kind of validation, at
least for some of my apps there's parts of validating a form which
check the authorization of the request and which I couldn't easily
factor out. What I did was adding a "check_precondition" method to my
forms and call this in a over
hi all,
just ran into an issue which may be of interest for others too. While
using deform with chameleon 2.x does work for me, i18n message
extraction with lingua for templates does generally not. This is
because the lingua_xml extractor will only work with well-formed xml
which many deform templa
Hi all,
I'm having trouble upgrading pyramid_tm to 0.3 for an app running on
pyramid 1.2. As far as I could tell, adding
settings['tm.commit_veto'] = 'pyramid_tm.default_commit_veto'
before passing the settings to the configurator should be enough to
restore the behaviour pre 0.3. But I'm seein
You are using colander with deform, i guess. you'll have to use a
custom renderer for deform to make it locale aware - at least that's
what i'm doing.
regards,
robert
On Sep 22, 1:45 pm, "Vlad K." wrote:
> Okay, but let's forget my translations for a moment. Say I wish to use
> colander like in t
You'll have to use a filter to include rendered deform forms in a mako
template, like so
${form.render()|n}
The n-filter prevents escaping.
regards
robert
On Thu, Sep 8, 2011 at 1:51 PM, Ben Sizer wrote:
> On Sep 1, 2:32 am, cd34 wrote:
>> Also, I use deform with both Mako and Jinja2,
>> and
see if that changes anything?
regards,
robert
On Wed, Aug 24, 2011 at 8:22 PM, Chris McDonough wrote:
> On Wed, 2011-08-24 at 19:34 +0200, Robert Forkel wrote:
>> hm. i didn't manage to build a minimal example which exhibits the
>> problem. it's only in the main function
:
> On Wed, 2011-08-24 at 12:57 +0200, Robert Forkel wrote:
>> ok, i managed to get it working. As far as I can see, what I had to
>> do, was to call add_static_view before the first call to commit. Btw.
>> this call to commit was inserted, following the advice here
>>
configurator help with such issues?
regards,
robert
On Wed, Aug 24, 2011 at 12:34 PM, Robert Forkel wrote:
> hi all,
> just upgraded to pyramid 1.2a1 in particular to use
> pyramid_debugtoolbar 0.7. Unfortunately, I cannot get it to work. When
> I include pyramid_debugtoolbar, the static
hi all,
just upgraded to pyramid 1.2a1 in particular to use
pyramid_debugtoolbar 0.7. Unfortunately, I cannot get it to work. When
I include pyramid_debugtoolbar, the static route for my project's
assets seems not to work anymore. I end up with errors like this:
File ".../templates/site.mako", l
Wed, 2011-08-24 at 09:52 +0200, Robert Forkel wrote:
>> just a quick feedback: i upgraded my app from 1.1.2 to 1.2a1 and now
>> am getting ConfigurationConflictError s for the following statements:
>> config.add_renderer(".mako", "pyramid.mako_templating.renderer_
just a quick feedback: i upgraded my app from 1.1.2 to 1.2a1 and now
am getting ConfigurationConflictError s for the following statements:
config.add_renderer(".mako", "pyramid.mako_templating.renderer_factory")
config.add_renderer("json", "msp.renderers.json_renderer_factory")
I didn't se
argument to TemplateLoader means I must have one TemplateLoader
instance per translator.
best,
robert
On Fri, Aug 12, 2011 at 10:54 AM, Malthe Borch wrote:
> On 12 August 2011 10:05, Robert Forkel wrote:
>> hm. I do not really follow. I'll try to explain my problem in more
>> d
lizer which does the lookups
you describe below).
So maybe my problems only come up because i do not use pyramid's
chameleon integration?
regards
robert
On Fri, Aug 12, 2011 at 9:13 AM, Malthe Borch wrote:
> On 11 August 2011 19:33, Robert Forkel wrote:
>> Yes, that's what I
at.
On Thu, Aug 11, 2011 at 7:07 PM, Malthe Borch wrote:
> On 11 August 2011 14:43, Robert Forkel wrote:
>> ok. i got chameleon 2.3 to work. but I still think I have to keep
>> locale specific TeplateLoaders around to make caching work, because
>> the registry key for a templ
, Aug 11, 2011 at 2:03 PM, Malthe Borch wrote:
> On 11 August 2011 13:42, Robert Forkel wrote:
>> Upgrading does not work. Deform complains:
>>
>> File ".../lib/python2.6/site-packages/deform/template.py", line 4, in
>>
>> from chameleon.zpt import
Upgrading does not work. Deform complains:
File ".../lib/python2.6/site-packages/deform/template.py", line 4, in
from chameleon.zpt import language
ImportError: cannot import name language
On Thu, Aug 11, 2011 at 1:24 PM, Malthe Borch wrote:
> On 11 August 2011 10:19,
just a follow-up: I ended up initializing one ZPTRendererFactory per
locale upon app startup, but supply its translate attribute per
request.
Enabling caching reduces the rendering time for even small forms from
around 250ms to something negligible.
On Thu, Aug 11, 2011 at 10:19 AM, Robert Forkel
Hi All,
I noticed that deform form rendering is somewhat slow in my
application and found the @cache decorator in deform.template. I'd
like my templates to be cached, but since I use i18n, thus passing
translators to initialize a template loader on a per request basis,
this does not work. Now I onl
Hi,
Setting the locale for the datepick is only the first Part. You will also
have to back the field with a date type that can handle dates in non-iso
formats. I ended up with a custom type and a custom template. If you are
interested, i can send you the code on monday.
Regards,
Robert
Am 05.08.20
Hi all,
just encountered a problem with akhet's create_db script which had me
scratching my head for quite some time: I use the script to create the
tables and then populate the db. This worked fine with sqlite, but
when switching to postgresql, it always failed with
sqlalchemy.exc.InternalError: (
Hi all,
i'm used to writing functional tests for my apps using webtest, but
have a hard time scripting submission of deform forms. in particular
file uploads as part of a mapping or sequence pose problems, because
webtest does not preserve the ordering of parameters in this case.
What do you use fo
https://github.com/Pylons/deform/issues/31
On Fri, Jul 15, 2011 at 12:54 PM, Chris McDonough wrote:
> On Fri, 2011-07-15 at 03:50 -0700, Robert Forkel wrote:
>> hi all,
>> just encountered a problem with DateWidget on opera 11: Since opera
>> does already implement the H
hi all,
just encountered a problem with DateWidget on opera 11: Since opera
does already implement the HTML 5 input type date, clicking on a date
field in this browser will present the user with two calendar widgets:
one of opera on top, and the jquery datepicker below. Since the opera
datepicker m
1 - 100 of 113 matches
Mail list logo