[web2py] Re: web2py 1.96.4 is OUT

2011-06-08 Thread cjrh
On Jun 7, 10:38 pm, danto web2py.n...@gmail.com wrote: I tried to upgrade from the web interface at my local installation and seem to break something, raising me an error. I found this in the admin app error log: 1. 2. 3. 4. 5. 6. 7. Traceback (most recent call last):   File

[web2py] Re: web2py 1.96.4 is OUT

2011-06-08 Thread cjrh
On Jun 7, 10:38 pm, danto web2py.n...@gmail.com wrote: Traceback (most recent call last):   File /home/danto/web2py/gluon/restricted.py, line 184, in restricted     passed to RestrictedError to identify where the error occurred.   File /home/danto/web2py/applications/admin/models/access.py,

[web2py] Re: web2py 1.96.4 is OUT

2011-06-08 Thread cjrh
On Jun 7, 10:16 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: - explicitly closing all open files (should make it work in Pypy), thanks Caleb Just everyone, please note: that was a large change (80KB diff) affecting tiny parts of many files, so you should test your apps before

Re: [web2py] Re: SyntaxError: Object exists and cannot be redefined: lunid

2011-06-08 Thread Mike Veltman
On Tuesday, June 7, 2011 2:26:45 AM UTC-4, Gwayne aka Mike Veltman wrote: On Monday, June 6, 2011 9:15:27 PM UTC-4, Gwayne aka Mike Veltman wrote: And that was it... Thank you very much. Mmmm, this should go in the book.. There's also this method of pre-populating a form

[web2py] tables in pdf

2011-06-08 Thread luifran
Hi, I need build tables in pdf, but the length of content cell change and I need that autoresize this cell for the content fit to the cell. I tried pyfpdf with cell and appreport plugin but when the cell content is too long this content is out of the cell or the letter size is smaller. there is a

Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-08 Thread Phyo Arkar
cjrh Thank you so much for this notice. I have not update web2py for very long coz it have a track record of breaking my production site apps :D. I will check out what breaks and what not. On Wed, Jun 8, 2011 at 12:53 PM, cjrh caleb.hatti...@gmail.com wrote: On Jun 7, 10:16 pm, Massimo Di

[web2py] Re: I created a little app to be able to share some files over the net without authentication

2011-06-08 Thread szimszon
I updated the app and uploaded the new already to http://web2py.com/appliances/default/show/78 Changelog 110608 - data about the file downloads - authorized user can delete individual uploaded file - separate code for download and upload urls

[web2py] Re: search text inside html - using html.elements find

2011-06-08 Thread pubu
Thank you massimo, i have try re.UNICODE Make \w, \W, \b, \B, \d, \D, \s and \S dependent on the Unicode character properties database. el_list = html.elements(find=re.compile(r'pers\wnliche', re.I|re.U)) but no match. when i do: html = TAG(data) res = [] res_add = res.append

Re: [web2py] Optimising web2py for GAE

2011-06-08 Thread Sebastian E. Ovide
On Tue, Jun 7, 2011 at 2:52 AM, Matt mjwat...@gmail.com wrote: Hi there, Can anyone provide me with some suggestions on how to optimise web2py for GAE? At present the code I've got deployed (based on Version 1.96.3 (2011-06-06 16:16:02) seems incredibly slow. I keep getting

Re: [web2py] Re: I created a little app to be able to share some files over the net without authentication

2011-06-08 Thread Stifan Kristi
great job, szimszon, thanks for sharing and announcing it. happy web2pying. On Wed, Jun 8, 2011 at 4:41 PM, szimszon szims...@gmail.com wrote: I updated the app and uploaded the new already to http://web2py.com/appliances/default/show/78 Changelog 110608 - data about the file

[web2py] ajax form submission

2011-06-08 Thread 黄祥
hi, i've tried to learn from http://web2py.com/book/default/chapter/10#Ajax-Form-Submission, is it possible to edit the ajax form submission? e.g. === db.py === db = DAL('sqlite://db.db') db.define_table('post', Field('your_message', 'text')) db.post.your_message.requires = IS_NOT_EMPTY() ===

Re: [web2py] tables in pdf

2011-06-08 Thread Ovidio Marinho
use css to render its tables or render tags html. Ovidio Marinho Falcao Neto ovidio...@gmail.com 88269088 Paraiba-Brasil 2011/6/8 luifran lbernalhernan...@yahoo.es Hi, I need build tables in pdf, but the length of content cell change

Re: [web2py] Re: I created a little app to be able to share some files over the net without authentication

2011-06-08 Thread szimszon
Forget to mention that old records without separate download code (uuid) doesn't get filled if it is accessed so earlier upload sets files can't be downloaded. You have to add the uuid by hand with appadmin. Sorry for that.

Re: [web2py] Re: I created a little app to be able to share some files over the net without authentication

2011-06-08 Thread szimszon
Stupid bug :( fix for broken download link in the uploaded files datapage (if you are authenticated you can modify the uploaded file trough crud form. That link for download was broken) And two settings are added to 0.py: - settings.default_valid_download_days = 7 -

Re: [web2py] Re: I created a little app to be able to share some files over the net without authentication

2011-06-08 Thread szimszon
Oh and the - settings.verzion_number='110608.a' added too to 0.py Need some sleep :-o

[web2py] New Features in Book

2011-06-08 Thread contatogilson...@gmail.com
It has forecast when it will be in the book web2py new features, or it will be open forother people to update online documentation? _ *Gilson Filho* *Web Developer http://gilsondev.com*

[web2py] Re: tables in pdf

2011-06-08 Thread luifran
How? can you explain to me? On 8 jun, 13:58, Ovidio Marinho ovidio...@gmail.com wrote: use css to render its tables or render tags html. Ovidio Marinho Falcao Neto              ovidio...@gmail.com                      88269088                    Paraiba-Brasil 2011/6/8 luifran

[web2py] Uploading file

2011-06-08 Thread Web2py Newbie
I want to expose a method which will accept a file POSTed to it and save the file to the database. I have found php examples all over the place (one below). How do i do this in web2py? I don't want to use a form as I don't want to upload interactively. My model is this:

[web2py] Re: Small toolbar bug in 1.96.3

2011-06-08 Thread Ross Peoples
I just got hit by this change. I think the original reason why it never showed the toolbar for a single returned item was to make web2py easier to use. I'll give a use case: You want to create a simple form, so in a controller you do the following: form = SQLFORM(db.table) return

[web2py] Re: Uploading file

2011-06-08 Thread Massimo Di Pierro
I responded 2hr ago but comment did not show up. It happens all the time. :-( Here is it a again and hope it shows up. def upload(): return dict(form=crud.create(db.uploadedFiles,message='Successful upload',next=URL())) On Jun 8, 8:49 am, Web2py Newbie swiawte...@garrifulio.mailexpire.com

[web2py] Facebook Sample Canvas App in Web2py

2011-06-08 Thread Huggy
Has anyone ever attempted to reproduce the Run With Friends app in Web2py? Run With Friends App: http://developers.facebook.com/docs/samples/canvas/ The source code is in python and the app makes use of the google app engine and django libraries. This sounds like an excellent web2py candidate.

[web2py] Skype Group and/or IRC

2011-06-08 Thread LarryEitel
Although I am not a regular user of IRC, I do have mIRC and occasionally pop into #web2py. However, when I do and invite dialog there is no response even though there are 20+ users on the same channel. I wonder if anyone would be interested in using a Skype Group for web2py. Or it could be some

[web2py] Re: Small toolbar bug in 1.96.3

2011-06-08 Thread Massimo Di Pierro
Reposting since previous post did not show g. The toolbar only shows from localhost. On Jun 8, 10:24 am, Ross Peoples ross.peop...@gmail.com wrote: I just got hit by this change. I think the original reason why it never showed the toolbar for a single returned item was to make web2py

[web2py] Re: CRUD with custom links

2011-06-08 Thread DJ
Thanks Massimo. This works fine! -Sebastian

[web2py] PyCharm is going to support web2py

2011-06-08 Thread Bruno Rocha
Hi take a look: http://on.fb.me/web2pycharm It seens that Jetbrains team will start the work to support web2py. Also come in to support web2py facegroup http://on.fb.me/web2py

[web2py] Re: PyCharm is going to support web2py

2011-06-08 Thread Ross Peoples
It says I bet the PyCharm team will step up to the task. I hope this is their way of secretly saying, It's now on our todo list. I use Komodo IDE for development right now, which is a decent editor with autocomplete, but no debugging (and no remote debugging either). So I hope PyCharm does a

[web2py] Re: web2py 1.96.4 is OUT

2011-06-08 Thread JayShaffstall
Can anyone verify whether controller specific models are working for them using 1.96.4? I had an email.py controller, with email/settings.py model. Confirmed with a print that the settings.py model is no longer being loaded when I invoke a method inside email.py. This was working fine with my

[web2py] Re: Small toolbar bug in 1.96.3

2011-06-08 Thread Anthony
On Wednesday, June 8, 2011 11:24:42 AM UTC-4, Ross Peoples wrote: I just got hit by this change. I think the original reason why it never showed the toolbar for a single returned item was to make web2py easier to use. I'll give a use case: You want to create a simple form, so in a

[web2py] Re: Web2py and PyScripter debugging

2011-06-08 Thread Dmitriy
Thank you! It works with a latest sources and after fixing the import line to 'from gluon.main import wsgibase' On Jun 3, 5:18 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: ### no_threads_web2py.py ### from wsgiref.simple_server import make_server, demo_app from gluon import wsgibase

[web2py] Re: Small toolbar bug in 1.96.3

2011-06-08 Thread Ross Peoples
I thought this change meant that regardless of the number of variables passed, it shows the toolbar anyways if is_local. My application that was created before back in 1.94.1 does not check for is_local, because I see the toolbar on a remote machine, when all I pass is form=form. This change is

[web2py] Re: Uploading file

2011-06-08 Thread Anthony
On Wednesday, June 8, 2011 1:42:43 PM UTC-4, Massimo Di Pierro wrote: I responded 2hr ago but comment did not show up. It happens all the time. :-( If it's convenient for you, I find that posting via the web interface ( https://groups.google.com/forum/?fromgroups#!forum/web2py) always

[web2py] Re: Small toolbar bug in 1.96.3

2011-06-08 Thread Anthony
On Wednesday, June 8, 2011 3:55:17 PM UTC-4, Ross Peoples wrote: I thought this change meant that regardless of the number of variables passed, it shows the toolbar anyways if is_local. My application that was created before back in 1.94.1 does not check for is_local, because I see the

[web2py] Re: web2py 1.96.4 is OUT

2011-06-08 Thread Massimo Di Pierro
what is the exact path to the model? and what s the associated controller name (full path)? On Jun 8, 2:29 pm, JayShaffstall jshaffst...@gmail.com wrote: Can anyone verify whether controller specific models are working for them using 1.96.4? I had an email.py controller, with

[web2py] Re: Uploading file

2011-06-08 Thread Massimo Di Pierro
I always use the web interface. I still had the problem 10 times in the last 24 hrs. :-( On Jun 8, 2:55 pm, Anthony abasta...@gmail.com wrote: On Wednesday, June 8, 2011 1:42:43 PM UTC-4, Massimo Di Pierro wrote: I responded 2hr ago but comment did not show up. It happens all the time. :-(

[web2py] Re: Small toolbar bug in 1.96.3

2011-06-08 Thread Massimo Di Pierro
Do you use a proxy? You may have a vulnerability issue if web2py always thinks requests are local. On Jun 8, 2:55 pm, Ross Peoples ross.peop...@gmail.com wrote: I thought this change meant that regardless of the number of variables passed, it shows the toolbar anyways if is_local. My

[web2py] Re: Uploading file

2011-06-08 Thread Anthony
On Wednesday, June 8, 2011 4:18:53 PM UTC-4, Massimo Di Pierro wrote: I always use the web interface. I still had the problem 10 times in the last 24 hrs. :-( That's odd. Do you use the old interface ( https://groups.google.com/group/web2py/topics?hl=en) or the new one (

[web2py] Re: web2py 1.96.4 is OUT

2011-06-08 Thread ron_m
My application is working with model files under a subdirectory == the controller name.

Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-08 Thread contatogilson...@gmail.com
And in the pypi? _ *Gilson Filho* *Web Developer http://gilsondev.com* 2011/6/8 ron_m ron.mco...@gmail.com My application is working with model files under a subdirectory == the controller name.

[web2py] Re: Uploading file

2011-06-08 Thread Massimo Di Pierro
old one. perhaps that is the problem. On Jun 8, 3:25 pm, Anthony abasta...@gmail.com wrote: On Wednesday, June 8, 2011 4:18:53 PM UTC-4, Massimo Di Pierro wrote: I always use the web interface. I still had the problem 10 times in the last 24 hrs.  :-( That's odd. Do you use the old

[web2py] Re: web2py 1.96.4 is OUT

2011-06-08 Thread ron_m
I should have said using version 1.96.4 as verification requested by Jay. BTW controller specific models were not introduced until 1.96.1 On Wednesday, 8 June 2011 13:37:11 UTC-7, ron_m wrote: My application is working with model files under a subdirectory == the controller name.

[web2py] Re: Web2py and PyScripter debugging

2011-06-08 Thread JorgeH
Now that you know, can you post a step by step tutorial ? ;)

[web2py] Re: pyodbc access to Teradata (via web2py)

2011-06-08 Thread Andrew
Thankyou Massimo and DenesL, Denesl, I know MSSQL has its own python ODBC package (pymssql?) , so I've never been sure if the mssql:... reference is really using pyODBC, or another package.I was expecting to see pyODBC explicitly referenced, as it is in a simple python scipt's connection

[web2py] Re: web2py 1.96.4 is OUT

2011-06-08 Thread JayShaffstall
The model is in email/settings.py, the controller is email.py. Both are in the standard spots for web2py models and controllers (e.g. /app/ controllers/email.py, and /app/models/email/settings.py). This was working before the update to 1.96.4, but I'm not sure which version I had pre-update.

[web2py] Re: Skype Group and/or IRC

2011-06-08 Thread mattgorecki
What about on the web2py Facebook group? I believe you can live chat with all the online members of the group. Matt On Jun 8, 9:12 am, LarryEitel larrywei...@gmail.com wrote: Although I am not a regular user of IRC, I do have mIRC and occasionally pop into #web2py. However, when I do and

[web2py] Re: PyCharm is going to support web2py

2011-06-08 Thread cjrh
On Jun 8, 8:53 pm, Ross Peoples ross.peop...@gmail.com wrote: I use Komodo IDE for development right now, which is a decent editor with autocomplete, but no debugging (and no remote debugging either). Speaking as a long-time vim user, I was kinda blown away by pydev on Eclipse (helios)

[web2py] Re: Uploading file

2011-06-08 Thread cjrh
On Jun 8, 10:18 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I always use the web interface. I still had the problem 10 times in the last 24 hrs. I had 4 go missing in the last 24h, also through the (old) web interface.

Re: [web2py] Re: Skype Group and/or IRC

2011-06-08 Thread Bruno Rocha
Yes you can live chat with the members and also you can publish by email web...@groups.facebook.com http://on.fb.me/web2py -- Bruno Rocha On Wed, Jun 8, 2011 at 6:38 PM, mattgorecki m...@goelephant.com wrote: What about on the web2py Facebook group? I believe you can live chat with all

[web2py] Re: Uploading file

2011-06-08 Thread cjrh
So it turns out that all my missing posts are only missing in the old groups view; in the new groups view, they are all there! Weird.

Re: [web2py] Re: Skype Group and/or IRC

2011-06-08 Thread cjrh
And you neglected to mention the Twitter channel #web2py where I can see some tweets by you as well :)

[web2py] Re: Uploading file

2011-06-08 Thread Web2py Newbie
On Jun 9, 3:42 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I responded 2hr ago but comment did not show up. It happens all the time. :-( Here is it a again and hope it shows up. def upload():       return dict(form=crud.create(db.uploadedFiles,message='Successful

[web2py] Re: ajax form submission

2011-06-08 Thread pbreit
It worked for me with a normal query: db(db.post.id0).select(orderby = ~db.post.id)

[web2py] Re: Uploading file

2011-06-08 Thread Anthony
On Wednesday, June 8, 2011 4:47:15 PM UTC-4, Massimo Di Pierro wrote: old one. perhaps that is the problem. The new interface has its quirks/bugs, but for the most part seems to work well. The nice thing is that it enables rich text messages, and you can attach files (in the old interface,

[web2py] Re: New Features in Book

2011-06-08 Thread cjrh
On Jun 8, 3:27 pm, contatogilson...@gmail.com contatogilson...@gmail.com wrote: It has forecast when it will be in the book web2py new features, or it will be open forother people to update online documentation? What did you have in mind?

Re: [web2py] Re: tables in pdf

2011-06-08 Thread Ovidio Marinho
let go, if you use the template Davila Luke can do it all in html, it's normal rendering ex.:render template Lucas Davila - Pizza pdf table id=rightTable align=center valign=middle cellspacing=3 cellpadding=4 border=0.5 thead tr th width=50% Despacho:/th /tr

[web2py] Re: Uploading file

2011-06-08 Thread villas
Yes, it seems to be faster too, but somehow not so simple to read - prob the rich text, yuk! On Jun 8, 11:12 pm, Anthony abasta...@gmail.com wrote: On Wednesday, June 8, 2011 4:47:15 PM UTC-4, Massimo Di Pierro wrote: old one. perhaps that is the problem. The new interface has its

Re: [web2py] Re: New Features in Book

2011-06-08 Thread contatogilson...@gmail.com
I suggest that has more people to contribute to the documentation of web2py. The documentation uses the principle of wiki with that we can help make it updatedalways. _ *Gilson Filho* *Web Developer http://gilsondev.com* 2011/6/8 cjrh

Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-08 Thread Pierre Thibault
2011/6/7 Massimo Di Pierro massimo.dipie...@gmail.com I am not much of a windows user. I would like to understand what can go wrong with the solution in trunk? -- Is the solution in the trunk the one proposed by Alessandro: os.environ['PYTHONCASEOK'] = '1' ? Well, this solution is using a

Re: [web2py] Re: New Features in Book

2011-06-08 Thread Stifan Kristi
is the book has already been updated right now? thank you

[web2py] Re: web2py 1.96.4 is OUT

2011-06-08 Thread Massimo Di Pierro
Let me tink about this. This has relevant content: http://www.python.org/dev/peps/pep-0235/ Users who have an opinion please share it now. This is important. On Jun 8, 7:45 pm, Pierre Thibault pierre.thibau...@gmail.com wrote: 2011/6/7 Massimo Di Pierro massimo.dipie...@gmail.com I am not

Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-08 Thread Jonathan Lundell
On Jun 8, 2011, at 6:03 PM, Massimo Di Pierro wrote: Let me tink about this. This has relevant content: http://www.python.org/dev/peps/pep-0235/ Users who have an opinion please share it now. This is important. What's going on, exactly? My impression is that something is getting

Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-08 Thread Pierre Thibault
2011/6/8 Massimo Di Pierro massimo.dipie...@gmail.com Let me tink about this. This has relevant content: http://www.python.org/dev/peps/pep-0235/ Users who have an opinion please share it now. This is important. Thank you for the pointer. It seems there is a bug in the web2py code where we

Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-08 Thread Pierre Thibault
2011/6/8 Jonathan Lundell jlund...@pobox.com On Jun 8, 2011, at 6:03 PM, Massimo Di Pierro wrote: Let me tink about this. This has relevant content: http://www.python.org/dev/peps/pep-0235/ Users who have an opinion please share it now. This is important. What's going on, exactly?

Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-08 Thread contatogilson...@gmail.com
The blocks are not working. layout.html (...) {{ block header }}{{end}} header.html {{ extend 'layout.html' }} {{ block header }} Header {{ end }} _ *Gilson Filho* *Web Developer http://gilsondev.com* 2011/6/8 Pierre Thibault

Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-08 Thread Jonathan Lundell
On Jun 8, 2011, at 6:47 PM, Pierre Thibault wrote: 2011/6/8 Jonathan Lundell jlund...@pobox.com On Jun 8, 2011, at 6:03 PM, Massimo Di Pierro wrote: Let me tink about this. This has relevant content: http://www.python.org/dev/peps/pep-0235/ Users who have an opinion please share it

[web2py] Re: webfaction python2.5 - python2.6

2011-06-08 Thread jbrown
I used the same installation as olivier, which is causing my modules (installed with easy_install-2.6) not to be located when I try to run my application. I've tried changing my .bash_profile per the webfaction instructions to change the default python version. Same problem, modules aren't found

[web2py] Re: web2py 1.96.4 is OUT

2011-06-08 Thread Massimo Di Pierro
If I understand the code in trunk (with the temp fix) it does not affect file wiring. It just changes how modules are located so that if you have both module and modUle and you import modUle, it would incorrectly pick up the former instead of the latter. I have yet to see to module with names that

[web2py] Re: How to implement flags?

2011-06-08 Thread pbreit
I know this isn't a super-sexy topic but does anyone have any suggestions?

[web2py] Re: How to implement flags?

2011-06-08 Thread pbreit
I guess the other option would be to use groups and memberships. That actually sounds like not a bad idea considering that I get a lot of built-in functionality?