[web2py] Re: change in trunk needs testing

2010-11-26 Thread dederocks
I tried the last version in trunk, and the admin application generates a ticket... and looking at the ticket generates another ticket! (which is the reason why I cannot provide a traceback). But the other applications appear to work fine. On 25 nov, 17:20, mdipierro wrote: > Perfect! Thanks Mr Fr

Re: [web2py] Re: change in trunk needs testing

2010-11-26 Thread Kenneth Lundström
If you have access to the file system you can find the error ticket in the folder /applications/admin/errors Kenneth I tried the last version in trunk, and the admin application generates a ticket... and looking at the ticket generates another ticket! (which is the reason why I cannot provide

[web2py] Re: change in trunk needs testing

2010-11-26 Thread dederocks
Thank you Kenneth! I must admit the file is difficult to analyze manually -- I'm happy to send it as an attachement if useful. On 26 nov, 09:21, Kenneth Lundström wrote: > If you have access to the file system you can find the error ticket in > the folder /applications/admin/errors > > Kenneth >

Re: [web2py] Re: change in trunk needs testing

2010-11-26 Thread Kenneth Lundström
Please send it, it´s the only way to find out what the problem is. Kenneth Thank you Kenneth! I must admit the file is difficult to analyze manually -- I'm happy to send it as an attachement if useful. On 26 nov, 09:21, Kenneth Lundström wrote: If you have access to the file system you can

[web2py] Re: change in trunk needs testing

2010-11-26 Thread dederocks
Fine, here you go (sorry, don't know how to attach files on google groups): - (dp1 S'output' p2 S'' sS'layer' p3 S'C:\\Users\\Andre\\Documents\\web2py\\applications\\admin/views\ \default/index.html' p4 sS'code' p5 S'response.write(\'\\nhttp://www.w3.org/ 1999/xhtml" xml:la

[web2py] Re: one more security feature in trunk

2010-11-26 Thread selecta
still it would be nice to have this optional On Nov 26, 5:06 am, mdipierro wrote: > True. This is a counterindication. > > On Nov 25, 7:14 pm, Phyo Arkar wrote: > > > > > Most of them time i use a Remote VPN to change my IP and to access > > Unrestricted Internet. > > Coz internet here is very r

Re: [web2py] Anyone with experience developing Facebook IFrame app using Web2Py?

2010-11-26 Thread Michele Comitini
Hello Narendran, I see nobody answers. It is on my TODO list to make an example of such application (using my OAuth2.0 module), but it will not be soon. If you find some problem, please share, I will be glad to help you. If you have a solution, please share, everyone will benefit from having more

[web2py] Bug in model validator (require vs requires) ?

2010-11-26 Thread António Ramos
Hello i have a model and this line db.trabalhadores.empreiteiro.*require*=IS_IN_DB(db,'empreiteiros.id ','%(empreiteiro)s') it hapens that there is no error from web2py but when i insert a record i got no dropdownlist for field empreiteiro. After copy paste some examples i noticed that it is not

Re: [web2py] Re: Problem starting server web2py

2010-11-26 Thread Marcos Vinhal
when I starting server web2py show this "web2py:unable to import Rocket". can help me. 2010/11/24 mdipierro > How are you starting web2py? > > On Nov 24, 5:47 pm, Marcos Vinhal wrote: > > Every time I try to start the server web2py shows the message below: > > > > --- >

Re: [web2py] Re: Problem starting server web2py

2010-11-26 Thread Bruno Rocha
Did you installed Mark Hammond win32 extension? 2010/11/26 Marcos Vinhal > when I starting server web2py show this "web2py:unable to import Rocket". > > can help me. > > 2010/11/24 mdipierro > >> How are you starting web2py? >> >> >> On Nov 24, 5:47 pm, Marcos Vinhal wrote: >> > Every time I t

[web2py] Re: Expression in 3-rd parameter of IS_IN_DB()

2010-11-26 Thread Mirek Zvolský
>> IS_IN_DB(db, 'lesson.id', lambda r: r['name'].upper()) Thank you very much, works excellent !

[web2py] Re: formatting in IS_IN_DB() list

2010-11-26 Thread Mirek Zvolský
>> format can be a function that takes a record and return a string. You can >> use lambda. Great, thank you. Thanks Massimo: example for lambda function is in thread: http://groups.google.com/group/web2py/browse_thread/thread/f5caa56a00c2fe96/7991d5c8cbd19da3#7991d5c8cbd19da3

[web2py] Re: Foreign Key

2010-11-26 Thread Mirek Zvolský
-> Richard Vézina & all others: so much words from me, and just because I don't know 'id' field type of DAL.

[web2py] Best webframeworks

2010-11-26 Thread Bruno Rocha
web2py is listed http://www.bestwebframeworks.com/python/ but the download link is broken :( -- Bruno Rocha http://about.me/rochacbruno/bio

[web2py] Finding out why a form does not successfully

2010-11-26 Thread Johann Spies
I have two nearly identical models fpn0302 and fpn0303. The only difference is that the second one has a few extra fields. The forms are fairly complex so I make use of custom layouts to handle the forms. fpn0302 works as expected while fpn0303' s data does not end up in the database. There are

[web2py] Re: Anyone willing to help out with Paypal

2010-11-26 Thread howesc
hi all, i integrated paypal website payments standard on www.tenthrow.com, using encrypted payment buttons and IPN (instant payment notification). my implementation is based off of: http://web2pyslices.com/main/slices/take_slice/9 i can take a look at my code and try and pull it out to share wit

[web2py] Re: Foreign Key

2010-11-26 Thread Mirek Zvolský
>> Could you elaborate on what you'd expect from >> join expressions aren't automatically created based on the DAL definition 1) - answer to your question 2) - idea to deleting integrity - I think this could be very useful and easy to add to web2py core 1) SQL language is very clever, but I alwa

Re: [web2py] Bug in model validator (require vs requires) ?

2010-11-26 Thread Richard Vézina
And what will happen if we want to use require key word for an other purpose?? Are you mean require or requires messages each type I write a line of code? May be you need a IDE (eclispe with python plugin) that will try to complete the code you are typing... It may prevent some typo. Richard

[web2py] Re: change in trunk needs testing

2010-11-26 Thread Anthony
On Nov 26, 4:21 am, dederocks wrote: > Fine, here you go (sorry, don't know how to attach files on google > groups): I don't think you can attach using the Google groups site, but on the message you want to reply to with an attachment, you can click "More options", then select "Forward" and for

Re: [web2py] Re: Problem starting server web2py

2010-11-26 Thread Marcos Vinhal
Which file do I install? 2010/11/26 Bruno Rocha > Did you installed Mark Hammond win32 extension? > > 2010/11/26 Marcos Vinhal > > when I starting server web2py show this "web2py:unable to import Rocket". >> >> can help me. >> >> 2010/11/24 mdipierro >> >>> How are you starting web2py? >>> >>>

[web2py] Broken web2py Layout on IE6

2010-11-26 Thread Alexandre Augusto
New web2py layout renders all broken on IE6, as most of you I'm also big fan of Firefox and it looks great on Firefox. Although not all of ours customers think the same way.. I looked over a post about this and could only find issues related to older versions of web2py not displaying correctly on

Re: [web2py] Bug in model validator (require vs requires) ?

2010-11-26 Thread António Ramos
I got no error when i save my model. It sould give some error because db.database.field.require is not valid I think. António 2010/11/26 Richard Vézina > And what will happen if we want to use require key word for an other > purpose?? > > Are you mean require or requires messages each type

[web2py] documentation flow

2010-11-26 Thread oncle_bob
Hello, I like web2py product but I don't recommend it. The documentation and features flow is too spreaded and too speeded. Why don't you publish the book and documentation in html files, it's easier to check features and API point. The book reading is not fun to read and search anything. If I don

Re: [web2py] Bug in model validator (require vs requires) ?

2010-11-26 Thread Richard Vézina
I don't think because require could be a variable name... I don't know. Richard 2010/11/26 António Ramos > I got no error when i save my model. > It sould give some error because > db.database.field.require is not valid > > I think. > > António > > 2010/11/26 Richard Vézina > > And what w

Re: [web2py] Recipe about mixing web2py, pydev, GoogleCode and others

2010-11-26 Thread Lorin Rivers
I'm all set up, but I can't debug in Eclipse. I put a breakpoint in my code and go to the page that should execute it and it doesn't break. Got any ideas? On Nov 17, 2010, at 20:17 , pierreth wrote: > Hello, > > I just published a blog about mixing all this stuff in Eclipse for > web2py develo

Re: [web2py] Re: Anyone willing to help out with Paypal

2010-11-26 Thread Andrew Evans
hello I am interested in your code :D Let me know when you are able to pull it out :D

[web2py] Debugging my app

2010-11-26 Thread Lorin Rivers
Getting pretty sick of using 'print' to debug. I tried pydbgr, but that didn't seem to work (crashed python). What other tools should I look at that will let me step through my web2py code? -- Lorin Rivers Mosasaur: Killer Technical Marketing

[web2py] Re: Bug in model validator (require vs requires) ?

2010-11-26 Thread mr.freeze
It is checked in the Field.__init__ but not if it is done after the fact. db.define_table('test',Field('name',require=something) this will throw an error. db.test.name.require = something this won't throw an error. On Nov 26, 10:13 am, Richard Vézina wrote: > I don't think because require could

[web2py] Re: Debugging my app

2010-11-26 Thread mr.freeze
I use PyDev and Eclipse. It works like a champ. I can set breakpoints, inspect variables, create expressions at runtime. Very handy, not to mention that the mercurial eclipse plugin makes it very easy to update. On Nov 26, 10:25 am, Lorin Rivers wrote: > Getting pretty sick of using 'print' to de

[web2py] Re: one more security feature in trunk

2010-11-26 Thread mdipierro
It is not optional session.connect(request,response,check_client=True) to enable the check. On Nov 26, 3:53 am, selecta wrote: > still it would be nice to have this optional > > On Nov 26, 5:06 am, mdipierro wrote: > > > True. This is a counterindication. > > > On Nov 25, 7:14 pm, Phyo Arkar w

[web2py] Re: Finding out why a form does not successfully

2010-11-26 Thread mdipierro
Add a line: def fpn0303_create(): table=db.fpn0303 crud.settings.keepvalues = True form=crud.create(db.fpn0303,onaccept=lambda form: show_id (form.vars.id)) response.flash=repr(form.errors) return dict(form=form) to see why the data does not go in DB. Ther

[web2py] Re: Recipe about mixing web2py, pydev, GoogleCode and others

2010-11-26 Thread mr.freeze
I would make sure the breakpoint is not contingent on any logic. Set one in your model, for example, when auth or mail are instantiated. Also, make sure you are launching your project in debug mode and not run mode. On Nov 26, 10:23 am, Lorin Rivers wrote: > I'm all set up, but I can't debug in E

Re: [web2py] Re: Debugging my app

2010-11-26 Thread Lorin Rivers
So you just click (or whatever the gesture is) to the side of the line you want to break at and it just works? To start a session, you right-click on web2py and start a debug session? What platform are you on? On Nov 26, 2010, at 10:32 , mr.freeze wrote: > I use PyDev and Eclipse. It works lik

[web2py] Re: Foreign Key

2010-11-26 Thread mdipierro
Will tink about 1. about 2. You can do db.define_table(...,Field('name','reference blabla',ondelete='cascade')) cascade is default. On Nov 26, 8:39 am, Mirek Zvolský wrote: > >> Could you elaborate on what you'd expect from > >> join expressions aren't automatically created based on the DAL de

[web2py] Re: Problem starting server web2py

2010-11-26 Thread mdipierro
Try install web2py nightly built from he download page. It should not have this dependency any more. On Nov 26, 7:48 am, Marcos Vinhal wrote: > Which file do I install? > > 2010/11/26 Bruno Rocha > > > > > Did you installed Mark Hammond win32 extension? > > > 2010/11/26 Marcos Vinhal > > > when

Re: [web2py] Best webframeworks

2010-11-26 Thread Branko Vukelic
On Fri, Nov 26, 2010 at 3:21 PM, Bruno Rocha wrote: > web2py is listed http://www.bestwebframeworks.com/python/ > but the download link is broken :( Logo is old too. But damn. The list is wrong in so many ways. -- Branko Vukelić bg.bra...@gmail.com stu...@brankovukelic.com Check out my blog:

[web2py] Re: Broken web2py Layout on IE6

2010-11-26 Thread mdipierro
Thanks for reporting this. We'll see if we can fix it. On Nov 26, 8:56 am, Alexandre Augusto wrote: > New web2py layout renders all broken on IE6, as most of you I'm also > big fan of Firefox and it looks great on Firefox.  Although not all of > ours customers think the same way..  I looked over

[web2py] Re: documentation flow

2010-11-26 Thread mdipierro
The book has been published in HTML for long time http://web2py.com/book It is the same as the published book (350 pages). There is search feature with text highlighting. All features discussed in the book are current. Massimo On Nov 26, 9:54 am, oncle_bob wrote: > Hello, > > I like web2py pro

[web2py] Re: Debugging my app

2010-11-26 Thread mr.freeze
I use both Ubuntu 10.10 and Windows 7. The first time, you right click web2py.py in the file tree and choose Debug As / Python Run. If Python Run is not available, you need to verify your interpreter setup. On Nov 26, 10:37 am, Lorin Rivers wrote: > So you just click (or whatever the gesture is)

Re: [web2py] Re: one more security feature in trunk

2010-11-26 Thread Jonathan Lundell
On Nov 26, 2010, at 8:33 AM, mdipierro wrote: > > It is not optional "now optional"? > > session.connect(request,response,check_client=True) to enable the > check. > > On Nov 26, 3:53 am, selecta wrote: >> still it would be nice to have this optional >> >> On Nov 26, 5:06 am, mdipierro wrot

[web2py] Re: one more security feature in trunk

2010-11-26 Thread mdipierro
ERRATA (thanks jonathan) It is NOW optional session.connect(request,response,check_client=True) to enable the check. On Nov 26, 10:58 am, Jonathan Lundell wrote: > On Nov 26, 2010, at 8:33 AM, mdipierro wrote: > > > > > It is not optional > > "now optional"? > > > > > session.connect(request,re

Re: [web2py] Re: Debugging my app

2010-11-26 Thread Lorin Rivers
I have python run, my web2py app is running, I can load it in the web browser in eclipse, the breakpoints are showing in the list of breakpoints and in the editor, my print statements are showing in the console, but it's NOT breaking. Also, if I edit a file in an external editor, the changes don

[web2py] onvalidation only called if there are no form errors

2010-11-26 Thread mr.freeze
I see two issues with this: 1) The form errors found in onvalidation will not be displayed if there are already form errors 2) The developer never gets a chance to remove form errors for certain conditions (think contingent form fields) For example, I am using IS_IN_DB on a field but I only want it

[web2py] Re: Debugging my app

2010-11-26 Thread mr.freeze
You have to right click on your project and choose Refresh to reflect external changes. Do you see a green dot next to your breakpoint? Double click in the gray border to the left of the code and it should show a green dot. On Nov 26, 11:09 am, Lorin Rivers wrote: > I have python run, my web2py

Re: [web2py] Best webframeworks

2010-11-26 Thread Kuba Kucharski
> But damn. The list is wrong in so many ways. +1

[web2py] Re: T with variables

2010-11-26 Thread Carlos
Hi Massimo, I believe the T.set_current_languages you propose refers to viewing the website in a specific language for a certain user. What I'm asking for is a way to edit the language files (as regular web apps, not appadmin) with authorization, e.g. userA can only edit 'en' language, userB can

[web2py] Re: onvalidation only called if there are no form errors

2010-11-26 Thread mdipierro
What would you suggest? On Nov 26, 11:10 am, "mr.freeze" wrote: > I see two issues with this: > 1) The form errors found in onvalidation will not be displayed if > there are already form errors > 2) The developer never gets a chance to remove form errors for certain > conditions (think contingent

[web2py] Re: Best webframeworks

2010-11-26 Thread mdipierro
that site is useless. It does not provide any useful information on any of the frameworks. On Nov 26, 11:14 am, Kuba Kucharski wrote: > > But damn. The list is wrong in so many ways. > > +1

[web2py] Re: library of images and videos

2010-11-26 Thread Carlos
Hi all, Thanks for your responses. Can anybody also please comment on the other questions I ask in my original message?. Many thanks!, Carlos On Nov 25, 8:19 pm, Bruno Rocha wrote: > No, PIL just deals with image files. > > 2010/11/26 Phyo Arkar > > > > > > > > > > > Does it work for man

[web2py] Re: T with variables

2010-11-26 Thread mdipierro
I see. There is this very old app: http://web2py.com/appliances/default/show/9 that allows users permissions only to translate. It should be revamped and: 1) change the edit language page to the new one 2) integrate with auth 3) allow administrator to assign languages to auth_users It is a 1h jo

[web2py] Re: onvalidation only called if there are no form errors

2010-11-26 Thread mr.freeze
Changing line 1565 of html.py from... if status and onvalidation: to... if vars and onvalidation: On Nov 26, 11:28 am, mdipierro wrote: > What would you suggest? > > On Nov 26, 11:10 am, "mr.freeze" wrote: > > > I see two issues with this: > > 1) The form errors found in onvalid

[web2py] Re: redirect using a new window

2010-11-26 Thread leone
I need to redirect to a new page (for example as a new tab in chrome). On Nov 25, 4:30 pm, mdipierro wrote: > I do not understand what you want to do. > > On Nov 25, 7:13 am, leone wrote: > > > > > > > > > Thanks for suggest, but I need something redirect(URL(..), > > _target='new'). > > I f

[web2py] Re: redirect using a new window

2010-11-26 Thread mr.freeze
Like so?: A('Open in new window',_href=URL('...'),_target='_blank') On Nov 26, 11:42 am, leone wrote: > I need to redirect to a new page (for example as a new tab in > chrome). > > On Nov 25, 4:30 pm, mdipierro wrote: > > > I do not understand what you want to do. > > > On Nov 25, 7:13 am, l

[web2py] Re: redirect using a new window

2010-11-26 Thread mr.freeze
Or do you mean use some javascript in the response to open a new window? On Nov 26, 11:46 am, "mr.freeze" wrote: > Like so?: > A('Open in new window',_href=URL('...'),_target='_blank') > > On Nov 26, 11:42 am, leone wrote: > > > I need to redirect to a new page (for example as a new tab in > > c

[web2py] Add Youtube Video

2010-11-26 Thread Andrew Evans
How can I add a youtube video in web2py... Say a user in my blog submits a form containing youtube video code how can I embed that code in the post? *cheers

RE: [web2py] Re: Possible BUG: Hidden fields in SQLFORM with custom render template

2010-11-26 Thread Josh Jaques
Works for me. -Original Message- From: web2py@googlegroups.com [mailto:web...@googlegroups.com] On Behalf Of mdipierro Sent: Thursday, November 25, 2010 10:01 PM To: web2py-users Subject: [web2py] Re: Possible BUG: Hidden fields in SQLFORM with custom render template I like this. I will

[web2py] Re: Add Youtube Video

2010-11-26 Thread mr.freeze
This widget is ripped off from plugin_wiki but doesn't require it: model -- db.define_table('youtube',Field('code')) def youtube_repr(code,width=400,height=250): return XML("""http://www.youtube.com/v/% (code)s&hl=en_US&fs=1&">http://www.youtube.com/v/%(code)s&hl=en_US&fs=1&" type="ap

[web2py] Re: Foreign Key

2010-11-26 Thread Mirek Zvolský
> about 2, deleting integrity. You can do: >db.define_table(...,Field('name','reference >blabla',ondelete='cascade')) yes, you are true. I think, ON DELETE command keeps the integrity inside the backend database (web2py generates just one DELETE command). My idea was to keep the integrity

[web2py] Re: AppEngine turning off the routes logging

2010-11-26 Thread Wikus van de Merwe
On Nov 19, 4:18 pm, Luci3n wrote: > I've set my routes logging to be false, but on app engine every call > about 10 / 15 debug logs are written, how can a switch them off. > Here's my routes.py Your routes.py is not relevant here. Just this one line: > routes_logging = False I've tried setting i

Re: [web2py] Re: Add Youtube Video

2010-11-26 Thread Andrew Evans
hey great ty very much this should work really well :D

[web2py] Re: redirect using a new window

2010-11-26 Thread leone
The first: A('Open in new window',_href=URL('...'),_target='_blank') .but using redirection. There is a way? On Nov 26, 6:49 pm, "mr.freeze" wrote: > Or do you mean use some javascript in the response to open a new > window? > > On Nov 26, 11:46 am, "mr.freeze" wrote: > > > > > > > > > Like

[web2py] Re: Broken web2py Layout on IE6

2010-11-26 Thread Wikus van de Merwe
I'm sorry but in my opinion this is a waste of time. IE6 is 9 years old now. It still has about 5% of users worldwide but this is not enough to justify the tremendous effort inevitably involved in working around all IE6 quirks. And believe me I know what I'm saying because I did just that. But I di

[web2py] Re: redirect using a new window

2010-11-26 Thread Wikus van de Merwe
If your talking about the HTTP redirect there is no such mechanism in it. It's just a simple 303 response which informs your browser to fetch the content of a page from a different URL. If you want to open a new panel/window with URL_2 after visiting URL_1 that has to be done with javascript. Why

[web2py] Re: redirect using a new window

2010-11-26 Thread mdipierro
I still do not understand what you want to do. Perhaps you can explain what problem are you trying to solve. On Nov 26, 1:16 pm, leone wrote: > The first: > A('Open in new window',_href=URL('...'),_target='_blank') > .but using redirection. There is a way? > > On Nov 26, 6:49 pm, "mr.freeze"

Re: [web2py] Re: Best webframeworks

2010-11-26 Thread Branko Vukelic
On Fri, Nov 26, 2010 at 6:29 PM, mdipierro wrote: > that site is useless. It does not provide any useful information on > any of the frameworks. Exactly. -- Branko Vukelić bg.bra...@gmail.com stu...@brankovukelic.com Check out my blog: http://www.brankovukelic.com/ Check out my portfolio: htt

[web2py] Re: T with variables

2010-11-26 Thread Carlos
Hi Massimo, I could not install that appliance. But maybe it's better to do it from scratch, without repeating code, i.e. calling the 'edit_language' action in the 'admin' app indirectly via my own app (after checking auth_user permissions), with xmlrpc or exec_environment?. Does it make sense?.

[web2py] Re: Anyone with experience developing Facebook IFrame app using Web2Py?

2010-11-26 Thread berubejd
I have a couple of applications (unpublished) which are Facebook iframe apps written using web2py. There are a few caveats which are not web2py specific. The biggest is that, using the new GraphAPI the developer has been stripped nearly entirely of efficient methods of doing anything but querying

Re: [web2py] Broken web2py Layout on IE6

2010-11-26 Thread Branko Vukelic
On Fri, Nov 26, 2010 at 3:56 PM, Alexandre Augusto wrote: > Although I ask myself, if web2py should also enforce people to not use > IE6 or it should > have an administrative interface that works cross-browsers Short answer is no, and no. Here's why. 1. Google discontinued support for IE6 on mos

Re: [web2py] Re: Anyone with experience developing Facebook IFrame app using Web2Py?

2010-11-26 Thread Michele Comitini
Jeff, If you want you can send me your version of the auth module. So we can merge it thanks mic 2010/11/26 berubejd : > I have a couple of applications (unpublished) which are Facebook > iframe apps written using web2py. > > There are a few caveats which are not web2py specific.  The biggest i

Re: [web2py] Re: Debugging my app

2010-11-26 Thread Lorin Rivers
Thanks, I ended up rebuilding my web2py project and now it works. On Nov 26, 2010, at 11:13 , mr.freeze wrote: > You have to right click on your project and choose Refresh to reflect > external changes. Do you see a green dot next to your breakpoint? > Double click in the gray border to the left

[web2py] Using Jython with web2py

2010-11-26 Thread pierreth
Hello, I tried to use Jython with web2py. I am telling the story in my blog: http://pierrethibault.posterous.com/using-sqlite-with-java-on-linux So far, I have this error: Traceback (most recent call last): File "/media/pierreth-backup/work/web2py/gluon/restricted.py", line 188, in restricted

Re: [web2py] Bug in model validator (require vs requires) ?

2010-11-26 Thread Branko Vukelic
It is valid if you assigned something to it. That's how Python works. 2010/11/26 António Ramos : > I got no error when i save my model. > It sould give some error because > db.database.field.require is not valid > I think. > António > 2010/11/26 Richard Vézina >> >> And what will happen if we

[web2py] passing json from javascript to controller

2010-11-26 Thread b0j3
Hi! I'm trying to call controller from javascript using the jquery load: $.post("todb",{"name": in_name,"desc": in_desc, "location": in_loc}); The problem is that I don't know how to get the json valu passed to todb controller. I've tried @service.json decorator, adding variable to the function

Re: [web2py] Development Questions

2010-11-26 Thread Lorin Rivers
On Nov 26, 2010, at 16:35 , Steve Shepherd wrote: > IF someone could help with some examples of answers would be great. Someone less ignorant than I should answer that. > 2. How do I trace through code. line by line and then inspect values in > variables or objects This I just solved for mys

[web2py] Re: Using Jython with web2py

2010-11-26 Thread mdipierro
The instructions are here: http://web2py.com/book/default/chapter/12#Jython Make sure you have zxJDBC. It works (some of us have tested it) but there are some know problems and I would not recommend it in production. One problem is a known problem with Java regular expression parses that Sun mark

[web2py] Re: onvalidation only called if there are no form errors

2010-11-26 Thread mdipierro
Consider this case: db.define_table('numbers',Field('a','integre'),Field('b','integer')) def validate(form): if form.vars.a+form.vars.b>100: form.errors.b="a+b must not exceed 100" form=crud.create(db.numbers,onvalidation=validate) Before the change the function validate is not called

[web2py] Re: passing json from javascript to controller

2010-11-26 Thread mdipierro
On Nov 26, 5:33 pm, b0j3 wrote: > Hi! > > I'm trying to call controller from javascript using the jquery load: > > $.post("todb",{"name": in_name,"desc": in_desc, "location": in_loc}); this is not sending json. The values will be in request.name.is_name, etc. > > The problem is that I don't know

Re: [web2py] Re: AppEngine turning off the routes logging

2010-11-26 Thread Jonathan Lundell
On Nov 26, 2010, at 10:44 AM, Wikus van de Merwe wrote: > > On Nov 19, 4:18 pm, Luci3n wrote: >> I've set my routes logging to be false, but on app engine every call >> about 10 / 15 debug logs are written, how can a switch them off. >> Here's my routes.py > > Your routes.py is not relevant here

[web2py] Re: onvalidation only called if there are no form errors

2010-11-26 Thread mr.freeze
Good point. Here is my use case: db.define_table('cars', Field('make'), Field('model'), Field('year'), Field('catalytic_converter_type',requires = IS_IN_SET('one','two','three'), comment='for cars later than 1975')) I want catalytic_converter_type to be required if the car year is

Re: [web2py] Development Questions

2010-11-26 Thread Branko Vukelic
On Sat, Nov 27, 2010 at 12:39 AM, Lorin Rivers wrote: > > Someone less ignorant than I should answer that. Not me. :) >> 2. How do I trace through code. line by line and then inspect values in >> variables or objects > > This I just solved for myself. > > The short answer for #2 is Eclipse wit

Re: [web2py] documentation flow

2010-11-26 Thread Branko Vukelic
On Fri, Nov 26, 2010 at 4:54 PM, oncle_bob wrote: > I like web2py product but I don't recommend it. The documentation and To each their own, eh? :) > features flow is too spreaded and too speeded. Why don't you publish > the book and documentation in html files, it's easier to check > features a

[web2py] [pypy-dev] PyPy 1.4 released

2010-11-26 Thread Phyo Arkar
I think its time try to give web2py on pypy 1.4 a try! its production quality they said. -- Forwarded message -- From: Maciej Fijalkowski Date: Fri, 26 Nov 2010 20:23:45 +0200 Subject: [pypy-dev] PyPy 1.4 released To: PyPy Dev , "" , python-annou...@python.org ===

Re: [web2py] Re: Problem starting server web2py

2010-11-26 Thread Marcos Vinhal
even installing this version the problem continues 2010/11/26 mdipierro > Try install web2py nightly built from he download page. It should not > have this dependency any more. > > On Nov 26, 7:48 am, Marcos Vinhal wrote: > > Which file do I install? > > > > 2010/11/26 Bruno Rocha > > > > > >

[web2py] Re: documentation flow

2010-11-26 Thread DenesL
The book navigation could be improved, and I mentioned this recently to Massimo; specially for the majority of us that still depend on it. For example, the general index entries do a search of the term instead of taking you directly to where it is defined, not very efficient. If I want to find som

[web2py] Re: Development Questions

2010-11-26 Thread DenesL
On Nov 26, 5:35 pm, Steve Shepherd wrote: > IF someone could help with some examples of answers would be great. > > 1. Where should we put common functions that will be called by different > parts. > For example I am wanting to use a Soundex function to add as a computed > field. > Where should

Re: [web2py] Re: documentation flow

2010-11-26 Thread Phyo Arkar
i guess he dont even bother to read homepage well :D On 11/27/10, DenesL wrote: > > The book navigation could be improved, and I mentioned this recently > to Massimo; specially for the majority of us that still depend on it. > For example, the general index entries do a search of the term instead

[web2py] elFinder web file manager

2010-11-26 Thread Carlos
Hi, I'm wondering what ever happened with elFinder web file manager?: http://elrte.org/elfinder/ http://groups.google.com/group/web2py/browse_thread/thread/3af7b48d3267fd59/09847d81ae92ef26 Is it already integrated with web2py?, for all types of users (admin, appadmin, endusers)?. Is anybody a

[web2py] Re: onvalidation only called if there are no form errors

2010-11-26 Thread DenesL
You can always change requires on the fly def test(): if request.vars.year: try: y = int(request.vars.year) except 'ValueError': y = 0 if y > 1975: db.cars.catalytic_converter_type.requires = IS_IN_SET(['one','two','three'], error_message='cars later than 1975 must

[web2py] Re: elFinder web file manager

2010-11-26 Thread mdipierro
It is not integrated but there was a plugin for it. If somebody could post a list to it (and host it on google code somewhere) I would post a link from appliances. It could be used for admin2. On Nov 26, 9:15 pm, Carlos wrote: > Hi, > > I'm wondering what ever happened with elFinder web file mana