[web2py] Signature apps

2011-09-25 Thread Massimo Di Pierro
I have not tested them and I am sure I am missing something important so please add below (do not comment, just add to the list) Layouts and Plugin Layouts == http://web2py.com/layouts http://web2py.com/drupal (converted from Drupal) http://web2py.com/zengarden (then press top-

Re: [web2py] web2py 1.99.2 is OUT

2011-09-25 Thread Bruno Rocha
This is the right link to try the grid : http://labs.blouweb.com/web2pygrid The other is twitter bootstrap app

[web2py] Re: Where do I put custom class files?

2011-09-25 Thread Vineet
I use a custom 3rd party class (named 'dabo') in web2py. Is there any catch if I keep the class in /web2py/site-packages ? Earlier I had kept the same in /myapp/modules folder. But it could not be imported in model files. So I shifted it to /web2py/site-packages. With this, I can import the class

[web2py] web2py with twitter bootstrap - very clean interface ...

2011-09-25 Thread David Marko
http://labs.blouweb.com/bootstrap/default/index

[web2py] web2py 1.99.2 is OUT

2011-09-25 Thread Massimo Di Pierro
No changes from 1.99.1 but a couple of bug fixes. I am listing again the 1.99.1 change log: - gluon/contrib/simplejsonrpc.py - gluon/contrib/redis_cache.py - support for A(name,callback=url,target='id',delete='tr') - support for A(name,component=url,target='id',delete='tr') - new pip installer, t

[web2py] Re: Creating a Layout Plugin

2011-09-25 Thread Andrew
Thankyou. On Sep 26, 3:49 pm, Massimo Di Pierro wrote: > If you want that to happen you have to include the views/layout.html > in the plugin You cannot do that using the web interface. You you have > to do it manually > > cd web2py/applications/app > tar zcvf ../web2py.plugins.layout_name.w2p vi

Re: [web2py] postgresql DAL connection issue

2011-09-25 Thread Mariano Reingart
Can you test: #python2.6 >import psycopg2 >psycopg2.connect(database="prac2", user="postgres", password="password", >host="localhost") Maybe the server is down, you have a firewall issue or your pg_hba.conf is not open for localhost connections: hostall all 127.0.0.1

[web2py] Re: table, grid, smartgrid, getting better

2011-09-25 Thread RAMKRISHAN BHATT BACK IN ACTION in bangalore
That would better if add Ajax Globel serch in that. I impressed with the power table plug in search . On Sep 24, 10:48 pm, Ivica Kralj wrote: > Hi, > > I'm quite impressed with the features in this release (also it didn't break > anything :) ) > > Just a question for Martin or Bruno, or anybody w

[web2py] Re: Creating a Layout Plugin

2011-09-25 Thread Massimo Di Pierro
If you want that to happen you have to include the views/layout.html in the plugin You cannot do that using the web interface. You you have to do it manually cd web2py/applications/app tar zcvf ../web2py.plugins.layout_name.w2p views/layout.html views/ plugin_layouts/* static/plugin_layouts/* O

[web2py] Re: Where do I put custom class files?

2011-09-25 Thread Anthony
Both the custom importer and the 'current' object are relatively new (added since book's last major revision), so they're not documented yet (except in this mailing list). Prior to that, it was of course possible to use modules, but not quite as easy. The book will be revised soon, so these thin

[web2py] Re: Where do I put custom class files?

2011-09-25 Thread monotasker
This is great. Thanks again Anthony. I'm surprised that this approach doesn't seem to be well documented in the (generally outstanding) web2py book. Is it not encouraged as 'the web2py way' or is it taken for granted that people with Python knowledge can figure it out? (Or have I just missed it

[web2py] Re: Where do I put custom class files?

2011-09-25 Thread Anthony
On Sunday, September 25, 2011 8:08:53 PM UTC-4, pbreit wrote: > > I thought it was just "import mymodule"? Yes, of course it is -- lack of proofreading. > > And can you do "from mymodule import myfunc"? > As far as I know. Anthony

[web2py] Re: Where do I put custom class files?

2011-09-25 Thread pbreit
I thought it was just "import mymodule"? And can you do "from mymodule import myfunc"?

[web2py] Re: Where do I put custom class files?

2011-09-25 Thread Anthony
On Sunday, September 25, 2011 3:55:56 PM UTC-4, monotasker wrote: > > Thanks. A couple of points of clarification: > 1. Are the global web2py objects (session etc.) available to classes > defined in a model file? > Yes, if you define a class in a model, all the web2py globals would be available.

[web2py] Re: xml in response not well formed

2011-09-25 Thread Martin
I tested with Chrome and I don't have the issue... so, it seems to be that it's in the Firefox side... this is really weird... Thank you very much for your help Jonathan, I will include a restriction to open the application just with Chrome... Much appreciated! Martin

Re: [web2py] Re: xml in response not well formed

2011-09-25 Thread Jonathan Lundell
On Sep 25, 2011, at 4:32 PM, Martin wrote: > Response Headers > X-Powered-By web2py > Set-Cookiesession_id_nems_web=127.0.0.1-1c024dc8-7db7-440c-a45e- > d57de93d8879; Path=/ > Expires Sun, 25 Sep 2011 23:30:33 GMT > Pragmano-cache > Cache-Control no-store, no-cache, must-revalid

[web2py] Re: xml in response not well formed

2011-09-25 Thread Martin
Response Headers X-Powered-Byweb2py Set-Cookie session_id_nems_web=127.0.0.1-1c024dc8-7db7-440c-a45e- d57de93d8879; Path=/ Expires Sun, 25 Sep 2011 23:30:33 GMT Pragma no-cache Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Content-Typeapplication/xml

Re: [web2py] Re: xml in response not well formed

2011-09-25 Thread Jonathan Lundell
On Sep 25, 2011, at 3:52 PM, Martin wrote: > yes, you are right, because the variables for the following xml part > it suppose to be not available for current request, which corresponds > to operation == 'get_leafs'... Can you get a look at the Content-length header of the response? > > 1.0 >

[web2py] Re: xml in response not well formed

2011-09-25 Thread Martin
yes, you are right, because the variables for the following xml part it suppose to be not available for current request, which corresponds to operation == 'get_leafs'... 1.0 2 2 ns1:max-lease-time

[web2py] Re: Creating a Layout Plugin

2011-09-25 Thread Andrew
Hi again, The swapping out of the views/layout.html appears to happen automatically for the downloaded layouts, but it doesn't for my layout plugin. I've followed the same naming and folder standards. What have I missed ? Thanks Andrew W On Sep 25, 5:45 pm, Andrew wrote: > Thanks Massimo, > I

Re: [web2py] xml in response not well formed

2011-09-25 Thread Jonathan Lundell
FWIW, it looks to me like the extra lines are left over from a previous response (or something like that) and not being generated by this particular invocation of the view. Why that would happen I have no idea. On Sep 25, 2011, at 2:38 PM, Martin wrote: > Hello All, sorry for the bother I am

[web2py] Re: xml in response not well formed

2011-09-25 Thread Martin
I appologize: the variables passed to the view are: operation = "leaf_modify" op_response = "True" Tincho

[web2py] xml in response not well formed

2011-09-25 Thread Martin
Hello All, sorry for the bother I am having an issue with Version 1.99.1 (2011-09-22 16:59:24) stable release. It seems to be that there are some problems when parsing the .xml view file, not sure. I have a function (device_cfg) in controllers/default.py, which performs some processing and pass to

[web2py] Re: Haml + Sass (or Scss) Would be so lovely

2011-09-25 Thread Massimo Di Pierro
web2py mostly deals with serverside. I do not think these tools belong to the scaffolding app because it is important that new uses can understanding with only basic knowledge of python+html+css and nothing more. Anyway, feel free to create a plugin for HTML+SASS and I will be happy to post it. It

[web2py] Re: Where do I put custom class files?

2011-09-25 Thread monotasker
Thanks. A couple of points of clarification: 1. Are the global web2py objects (session etc.) available to classes defined in a model file? 2. You mentioned the option of writing modules to import. What's the best location for these? In the 'static' directory?

[web2py] Re: Where do I put custom class files?

2011-09-25 Thread Anthony
Modules have to be imported -- only classes/objects defined in model files are available in all controllers (and views). Note, by default, the web2py globals (i.e., request, response, session, validators, HTML helpers) will not be available in your modules, so you either have to pass them in as

[web2py] postgresql DAL connection issue

2011-09-25 Thread lucas
hello one and all, i am having difficultly connecting postgres 9.1 under web2py v1.98.2 on a centos 6.0 box which has python 2.6.5. i have psycopg2 2.4 installed and working in python when i run the test #python2.6 web2py -S welcom -N -a 'password' then >import psycopg2 > works just fine. howe

[web2py] Where do I put custom class files?

2011-09-25 Thread monotasker
Where should I put files with custom python classes to take care of business logic (and get it out of my controllers)? Do I have to set these up as a module and import them into th controller or will the classes automatically be available to any controller? Thanks, Ian

[web2py] Re: Changing header picture

2011-09-25 Thread pbreit
I'd say program it or use a block: http://web2py.com/book/default/chapter/05#Blocks-in-Views

[web2py] Console Shows Cron Startup Threading Error after installing win32 python extention

2011-09-25 Thread Lennon
When I running web2py locally on my windows 7 machine I was getting this in the console: Starting hardcron... WARNING:web2py.cron:WEB2PY CRON: Disabled because no file locking WARNING:web2py.cron:WEB2PY CRON: Disabled because no file locking WARNING:web2py.cron:WEB2PY CRON: Disabled because no fil

[web2py] Haml + Sass (or Scss) Would be so lovely

2011-09-25 Thread Alexandre Strzelewicz
Please integrates this technologies in web2py ! It will become a super fast framework for prototyping webapps

[web2py] Re: 1.99.1 and ssl/https

2011-09-25 Thread LightDot
I have a development environment set up, based on openvz virtual machines. Basically, I can fire up any linux os in a matter of seconds... Well, minutes, if I need to download the OS template first and than add web2py. Any of the templates are possible: http://download.openvz.org/template/precr

[web2py] Changing header picture

2011-09-25 Thread Kenneth Lundström
Hello, I have built an combined internet and intranet application for an customer. Internet pages are modified by an very, very CMS that I have built. Layouten is simple, header picture, meny on the left and content to the right. Yesterday customer asked if it would be possible to change t

[web2py] Re: Help Getting Cron Task to run

2011-09-25 Thread Lennon
Well I just realized that */1 * * * * python /home/www-data/web2py/web2py.py -S sos_test -M -N - R applications/sos_test/private/scripts/ctest.py has the -N in it which would stop crontab from running. I removed that but it's still not working. I tried setting SOFTCRON = True And then tried a

[web2py] Re: 1.99.1 and ssl/https

2011-09-25 Thread Massimo Di Pierro
Thanks this thread is heling me a lot. On Sep 25, 11:00 am, "Cameron" wrote: > Sorry Massimo I forgot the cert/cert switches on the commandline shortcut > after upgrading- so this was due to my mistake. > > For testing purposes I just now ran the following line without errors: > > Web2py.exe -c c

RE: [web2py] Re: 1.99.1 and ssl/https

2011-09-25 Thread Cameron
Sorry Massimo I forgot the cert/cert switches on the commandline shortcut after upgrading- so this was due to my mistake. For testing purposes I just now ran the following line without errors: Web2py.exe -c cert.crt -k cert.key -p p And I was able to run ssl on port 80 with no issues. I tried t

[web2py] Re: table, grid, smartgrid, getting better

2011-09-25 Thread Massimo Di Pierro
You should thank Bruno and Martin for this feature. ;-) On Sep 25, 7:22 am, Ivica Kralj wrote: > Thanks Massimo. > > On 25 September 2011 00:02, Massimo Di Pierro > wrote: > > > > > > > > > Yes they are: > > > grid=SQLFORM.smartgrid(db.person,ui='jquery-ui') > > > On Sep 24, 12:48 pm, Ivica Kral

[web2py] Re: web2py handlers

2011-09-25 Thread Massimo Di Pierro
You are running from source and need to install the Mark Hamming win32 extensions. On Sep 25, 5:12 am, Web2Py Freak wrote: >  Dear All , > > hey guys , when i run web2py on windows from source  with my own > python  it keeps giving me this : > > No handlers could be found for logger "web2py" ,, >

[web2py] Re: criticism of web2py

2011-09-25 Thread Massimo Di Pierro
Most of the criticism is fueled by stakeholders in other python frameworks. Even if those are open source projects, they have consulting based on their frameworks (and that is perfectly reasonable) therefore when another framework steals their customers and wins awards they see it as a bad thing.

[web2py] Re: web2py slides from pycon argentina (spanish)

2011-09-25 Thread Alan Etkin
Congratulations Martín. Your talk was very good. And thanks for sharing your knowledge for enhancing web2py apps. Regards On Sep 24, 11:25 am, Martín Mulone wrote: > web2py slides from pycon argentina (spanish) > > -- >  http://martin.tecnodoc.com.ar > >  pensandoengrande.pdf > 1139KViewDownload

Re: [web2py] Re: table, grid, smartgrid, getting better

2011-09-25 Thread Ivica Kralj
Thanks Massimo. On 25 September 2011 00:02, Massimo Di Pierro wrote: > Yes they are: > > grid=SQLFORM.smartgrid(db.person,ui='jquery-ui') > > On Sep 24, 12:48 pm, Ivica Kralj wrote: > > Hi, > > > > I'm quite impressed with the features in this release (also it didn't > break > > anything :) ) >

Re: [web2py] web2py handlers

2011-09-25 Thread Vasile Ermicioi
I see this message every time I starte web2py, and I just ignore it :)

[web2py] web2py handlers

2011-09-25 Thread Web2Py Freak
Dear All , hey guys , when i run web2py on windows from source with my own python it keeps giving me this : No handlers could be found for logger "web2py" ,, why ?? what to do ? it keeps giving me a warning like this : WARNING:web2py.cron:WB2PY CRON : Disabled because no file locking ...

[web2py] Re: criticism of web2py

2011-09-25 Thread Gour-Gadadhara Dasa
On Sun, 25 Sep 2011 10:04:19 +0200 (CEST) "Roberto De Ioris" wrote: > If you want an adivse, do not trust those kind of people. :-) > Whoever claim itself a technology-guy and has fear of diversity, or > 'non-ortodox' approaches should probably start looking in other > areas... /me fully agree

Re: [web2py] Re: 1.99.1 and ssl/https

2011-09-25 Thread Michele Comitini
That error is sometimes associated to misconfiguration. I.e. missing or wrong certs on the server. mic Il giorno 25/set/2011 08:22, "Massimo Di Pierro" ha scritto: > Can you help us debug this? Do you get this error with 1.99.1 and not > with 1.98.2? Could it be related to this: > http://stackove

Re: [web2py] criticism of web2py

2011-09-25 Thread Roberto De Ioris
> Hello! > > I'm starting with python & web2py and yesterday visited > Hello, > > I'm starting with Python & Web2Py and yesterday visited one python-related > project channel where I mentioned web2py and as the consequence I was > quickly > advised to abandon it due to 'non-Pythonic' etc. > > This

[web2py] criticism of web2py

2011-09-25 Thread Gour-Gadadhara Dasa
Hello! I'm starting with python & web2py and yesterday visited Hello, I'm starting with Python & Web2Py and yesterday visited one python-related project channel where I mentioned web2py and as the consequence I was quickly advised to abandon it due to 'non-Pythonic' etc. This is not the first t