[web2py] Offtopic: Who's at Pycon APAC?

2011-06-08 Thread Luther Goh Lu Feng
Event starts today http://apac.pycon.org/ (built with web2py goodness too!)

[web2py] Re: How to implement flags?

2011-06-08 Thread ron_m
IMHO it depends on a number of things. Using groups and memberships is good if the flags are meant to indicate an ability to do something on the system because there are decorators and functions to test for having the attribute. You can then decorate a function or use a has_ test to determi

[web2py] Re: web2py 1.96.4 is OUT

2011-06-08 Thread cjrh
On Thursday, 9 June 2011 03:03:51 UTC+2, Massimo Di Pierro wrote: > > Users who have an opinion please share it now. This is important. > Could you direct us to more details about the issue?My current understanding is shallow, but I agree with Pierre that platform-specific environment setti

[web2py] Re: New Features in Book

2011-06-08 Thread cjrh
On Jun 9, 3:02 am, Stifan Kristi wrote: > is the book has already been updated right now? > thank you I made some small fixes last night, if that is the kind of thing you mean. If you mean to ask whether the book is completely up to date with the capabilities and features of the current stable w

[web2py] Re: New Features in Book

2011-06-08 Thread cjrh
On Jun 9, 1:06 am, "contatogilson...@gmail.com" wrote: > 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. Currently, the web2py book is a wiki, and there are several contribu

[web2py] Re: How to not show the "delete file" checkbox

2011-06-08 Thread Luis Goncalves
Excellent! Thank you both! Before I had [file | (cbox) delete ] requires=IS_IMAGE() got rid of the delete and checkbox, but now I am still left with [file] (a link to download the file) Might have to do server-side DOM parsing to get rid of that ... Thanks!!! Luis.

[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?

[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: 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: 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 an

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 > 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. T

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 > 2011/6/8 Jonath

Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-08 Thread Pierre Thibault
2011/6/8 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 i

Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-08 Thread Pierre Thibault
2011/6/8 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. > Thank you for the pointer. It seems there is a bug in the web2py code where we are losing the capit

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 lowe

[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 wrote: > 2011/6/7 Massimo Di Pierro > > > I am not much of a windows user. I would like to understand

Re: [web2py] Re: New Features in Book

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

Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-08 Thread Pierre Thibault
2011/6/7 Massimo Di Pierro > 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 global change to fix f

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 > On Jun 8, 3:

[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 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 quirks/bugs, but for

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 Despacho: {{=obja.despacho}} Ovidio Marinho Falcao Neto ovidio...@g

[web2py] Re: New Features in Book

2011-06-08 Thread cjrh
On Jun 8, 3:27 pm, "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?

[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: ajax form submission

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

[web2py] Re: Uploading file

2011-06-08 Thread Web2py Newbie
On Jun 9, 3:42 am, Massimo Di Pierro 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 > upload',next=URL())) Wow. I wo

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 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 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 wrote: > What about on the web2py Facebook group? I believe you can live chat > with all the online members

[web2py] Re: Uploading file

2011-06-08 Thread cjrh
On Jun 8, 10:18 pm, Massimo Di Pierro 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.

[web2py] Re: PyCharm is going to support web2py

2011-06-08 Thread cjrh
On Jun 8, 8:53 pm, Ross Peoples 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) recently. Somehow, eclipse

[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 wrote: > 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

[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. Bas

[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 st

[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: 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: Uploading file

2011-06-08 Thread Massimo Di Pierro
old one. perhaps that is the problem. On Jun 8, 3:25 pm, Anthony 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 interface > (

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 > My application is working with model files under a subdirectory == the > controller name. >

[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.

[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 ( https://gro

[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 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

[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 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. :-( > > If it's co

[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 wrote: > 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.  Confirme

[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: 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 wo

[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: 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 wrote: > ### no_threads_web2py.py ### > from wsgiref.simple_server import make_server, demo_app > from gluon import wsgibase > httpd = make_server('

[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 c

[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 pr

[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] 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: CRUD with custom links

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

[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 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

[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 ot

[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] 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 wrote: > I want to expose a method wh

[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 dict(form=form

[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: db.define_table('uploade

[web2py] Re: tables in pdf

2011-06-08 Thread luifran
How? can you explain to me? On 8 jun, 13:58, Ovidio Marinho 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 > > > > > > > > > Hi,

[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*

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

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 - settings.default_vali

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] 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 > Hi, > I need build tables in pdf, but the length of content cell change and > I need > that autore

[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() === d

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 wrote: > I updated the app and uploaded the new already to > http://web2py.com/appliances/default/show/78 > > Changelog > > 110608 > >- data about the file downloads >- au

Re: [web2py] Optimising web2py for GAE

2011-06-08 Thread Sebastian E. Ovide
On Tue, Jun 7, 2011 at 2:52 AM, Matt 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 DeadlineExceededExcepti

[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.app

[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

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 wrote: > On Jun 7, 10:16 pm, Massimo Di Pierro > wrote: >> - explic

[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 w