unable to use deform_bootstrap

2013-07-31 Thread Abdul Wahid
Hi everyone, I have gone through https://pypi.python.org/pypi/deform_bootstrap documentation and as it show that I just downloaded this and wanna use it In your Paste Deploy configuration file (e.g. development.ini) add deform_bootstrap to the list of pyramid_includes, or add a this line if a

Re: unable to use deform_bootstrap

2013-07-31 Thread Laurent DAVERIO
Le 31/07/13 08:16, Abdul Wahid a écrit : But i am unable to see all static file in my project such .css, .js files. And unable to place any bootstrap class on any element. Hi, if I remember correctly, you must 1/ manually create a static route pointing to directory deform_bootstrap:static,

Re: unable to use deform_bootstrap

2013-07-31 Thread Abdul Wahid
Yes, you are right it works after adding this * * * # Adding the static resources from Deform* *config.add_static_view('deform_static', 'deform:static', cache_max_age=3600)* *config.add_static_view('deform_bootstrap_static', 'deform_bootstrap:static', cache_max_age=3600)* Thanks, Abdul

Re: unable to use deform_bootstrap

2013-07-31 Thread Atsushi Odagiri
Abdul You must add entry deform_bootstrap to install_requires in the setup.py. 2013/07/31 15:16 Abdul Wahid abdulwahi...@gmail.com: Hi everyone, I have gone through https://pypi.python.org/pypi/deform_bootstrap documentation and as it show that I just downloaded this and wanna use it In

Re: unable to use deform_bootstrap

2013-07-31 Thread Abdul Wahid
Now its working. On Thu, Aug 1, 2013 at 8:22 AM, Abdul Wahid abdulwahi...@gmail.com wrote: yes i did that, deform_bootstrap in setup.py development.ini and than # Adding the static resources from Deform config.add_static_view('deform_static', 'deform:static', cache_max_age=3600)

Re: unable to use deform_bootstrap

2013-07-31 Thread Abdul Wahid
yes i did that, deform_bootstrap in setup.py development.ini and than # Adding the static resources from Deform config.add_static_view('deform_static', 'deform:static', cache_max_age=3600) config.add_static_view('deform_bootstrap_static', 'deform_bootstrap:static',

Can a context factory generate custom context objects

2013-07-31 Thread Ams Fwd
I am using object level security to enforce authz policies. So for example: for route /u/{uid} I have a UserFactory, which loads the user data from the database and returns that in __getitem__ which is the request.content in the view. What I would like to do is to be able to use a container

Re: Can a context factory generate custom context objects

2013-07-31 Thread Chris McDonough
On Wed, 2013-07-31 at 21:44 -0700, Ams Fwd wrote: I am using object level security to enforce authz policies. So for example: for route /u/{uid} I have a UserFactory, which loads the user data from the database and returns that in __getitem__ which is the request.content in the view. What I

Re: Can a context factory generate custom context objects

2013-07-31 Thread AM
On 07/31/2013 10:25 PM, Chris McDonough wrote: On Wed, 2013-07-31 at 21:44 -0700, Ams Fwd wrote: I am using object level security to enforce authz policies. So for example: for route /u/{uid} I have a UserFactory, which loads the user data from the database and returns that in __getitem__ which