[web2py] Re: JS question

2010-08-09 Thread Rob
Massimo, You go above and beyond! Thanks you so much for the through explanation. This second version is much much cleaner then the version before it - thanks for hacking trunk to add the change! Now I have to integrate it and make sure I understand how everything works! -Rob On Aug 8, 4:32 

[web2py] Re: Book in Italian, Spanish, Portuguese, Chinese and Russian (sort of)

2010-08-09 Thread Zhe Li
English-Chinese is far far from okay:) Cheers, Zhe On Aug 9, 3:10 am, mdipierro mdipie...@cs.depaul.edu wrote: I have been playing with google translate and I managed to get a complete translation of the book in Italian, Spanish, Portuguese, Chinese and Russian. DISCLAMER: - The

[web2py] Re: Book in Italian, Spanish, Portuguese, Chinese and Russian (sort of)

2010-08-09 Thread mdipierro
Yes. we will do what you say as soon as 3rd ed is final. Before the end of the month. On Aug 8, 8:38 pm, Zoom.Quiet zoom.qu...@gmail.com wrote: On Mon, Aug 9, 2010 at 09:10, mdipierro mdipie...@cs.depaul.edu wrote: I have been playing with google translate and I managed to get a complete

Re: [web2py] Book in Italian, Spanish, Portuguese, Chinese and Russian (sort of)

2010-08-09 Thread R. Strusberg
Massimo, Latinux Press begin a formal translation of the book into Spanish. The final version will be redistribute with the same license. However, It is possible that our editorial team make some design changes for the Spanish edition. Ricardo Strusberg 2010/8/8 mdipierro

[web2py] Clear memcache on GAE

2010-08-09 Thread Jérémie
Hello everyone, First of all, thank you Massimo and all the contributors for this great framework and all the documentation and support. I am kind of new on web2py and i am trying to use cache on Google App Engine. Thanks to Robin's contribution (gae_memcache.py), i can use cache.ram on GAE but

[web2py] Re: Book in Italian, Spanish, Portuguese, Chinese and Russian (sort of)

2010-08-09 Thread mdipierro
Please email me personally about this. It is important to make sure we are in sync with the 3rd edition and we are still editing it online. On Aug 8, 11:33 pm, R. Strusberg strusb...@gmail.com wrote: Massimo, Latinux Press begin a formal translation of the book into Spanish. The final version

Re: [web2py] Re: LOAD and redirect

2010-08-09 Thread Julius Minka
Yes, now I see. It is browser issue. I am on Ubuntu Linux 10.04. It works on Firefox, Chromium, Konqueror. it doesn't on Opera 10.60 and Epiphany, Midori (both are based on WebKit rendering engine) Hope this helps. Julius V Sobota, 7. august 2010 o 16:29 -0700, mdipierro napísal(a): I am

[web2py] Re: LOAD and redirect

2010-08-09 Thread mdipierro
If you ding out what the problem is perhaps we can improve the code and make it more cross-browser compatible. On Aug 9, 3:27 am, Julius Minka j...@minka.sk wrote: Yes, now I see. It is browser issue. I am on Ubuntu Linux 10.04. It works on Firefox, Chromium, Konqueror. it doesn't on Opera

Re: [web2py] Re: LOAD and redirect

2010-08-09 Thread Julius Minka
I am not able to fix this, but I am willing to test it again if needed. Julius V Pondelok, 9. august 2010 o 01:28 -0700, mdipierro napísal(a): If you ding out what the problem is perhaps we can improve the code and make it more cross-browser compatible. On Aug 9, 3:27 am, Julius Minka

[web2py] Re: doc2py - php.net like python module documentation

2010-08-09 Thread selecta
default color is now black the expanding of the tree is a bug caused by the async jquery treeview widget the objects that can be expandable do have a plus sign and are expandable, however on clicking on the plus the requested object is loaded and may not contain expandable information thus the

[web2py] Re: LOAD and redirect

2010-08-09 Thread mdipierro
Does any of the browsers with problem have a debug feature that allow you to see if there is JS error? On Aug 9, 3:48 am, Julius Minka j...@minka.sk wrote: I am not able to fix this, but I am willing to test it again if needed. Julius V Pondelok, 9. august 2010 o 01:28 -0700, mdipierro

[web2py] Using web2py auth from Tornado

2010-08-09 Thread huimies
Hi, I've set up web2py using tornado server like this: web2py_app = tornado.wsgi.WSGIContainer(gluon.main.appfactory(logfilename=None, profilerfilename=None)) application = tornado.web.Application([ (r/async, MyHandler), (r.*, FallbackHandler, dict(fallback=web2py_app)),

[web2py] Re: Using web2py auth from Tornado

2010-08-09 Thread mdipierro
I am not familiar with Tornado but it seems to me this line web2py_app = tornado.wsgi.WSGIContainer(gluon.main.appfactory(logfilename=None, profilerfilename=None)) is wrapping everything in WSGI app. Your app should still be a web2py and you should be allowed to define auth in your models as

[web2py] Re: Using web2py auth from Tornado

2010-08-09 Thread huimies
Yes, that works, but I mean I need to do this inside MyHandler. And that isn't web2py any more.

[web2py] Re: Using web2py auth from Tornado

2010-08-09 Thread mdipierro
why? Is the handler executed at every request? You are right that handler does not see Request, Response, etc and you cannot define Auth there. You can get the cookie session_id, try open the corresponding session file, unpickle and look for auth in there. Ugly but I cannot think of a better way.

[web2py] Re: Autocompletion Widget

2010-08-09 Thread villas
Thanks Massimo, I can do that. Only slight issue is the computed field physically takes space in the database. I was a bit puzzled why a virtualfield would not work because I thought it was introduced for precisely this kind of use. -- D On Aug 9, 1:54 am, mdipierro mdipie...@cs.depaul.edu

[web2py] Re: epub version of official book?

2010-08-09 Thread mdipierro
Perhaps some of you have experience with this and can give me advice. http://www.lulu.com/services/distribution/ says You can choose ONE distribution option per book. 1. globalREAD does Amazon but not Apple 2. iBookstore does Apple but not Amazon Both require an ISBN and even if I purchase my

[web2py] Re: Book in Italian, Spanish, Portuguese, Chinese and Russian (sort of)

2010-08-09 Thread Martin.Mulone
great!. I dont know about that. On 9 ago, 01:33, R. Strusberg strusb...@gmail.com wrote: Massimo, Latinux Press begin a formal translation of the book into Spanish. The final version will be redistribute with the same license.  However, It is possible that our editorial team make some design

[web2py] Re: Autocompletion Widget

2010-08-09 Thread mdipierro
The problem is that when you autocomplete you may have lots of records so search has to be done based on DB content. If you were to use virtual fields (computed on the fly by web2py) the search would be done client-side in memory. It would be faster but would not work for large record sets.

[web2py] Re: Using web2py auth from Tornado

2010-08-09 Thread huimies
Yes, that's what I have done and I got the logged in user's id. My colleague just got an excellent idea of exposing a json api in our web2py app for checking permissions. Then tornado handlers can query permissions through http and we don't have this problem. I just wonder if there are some

[web2py] Re: Using web2py auth from Tornado

2010-08-09 Thread mdipierro
On Aug 9, 5:14 am, huimies huim...@gmail.com wrote: Yes, that's what I have done and I got the logged in user's id. My colleague just got an excellent idea of exposing a json api in our web2py app for checking permissions. Then tornado handlers can query permissions through http and we

Re: [web2py] Re: LOAD and redirect

2010-08-09 Thread Julius Minka
I didn't get any JS error. Details: Epiphany has Webinspector which allowed me to run JS with debugging enabled. It didn't throw any error while doing that. Opera has its Dragonfly which does similar things. Neither it reported any error. Just to note: Opera behaves differently from Epiphany.

[web2py] capitalize all letters inside input

2010-08-09 Thread sarsar
Hi . I think the question is more about python than web2py , but i am asking here . I want to capitalize all user input , before storing the answer , so everything is in capital letters . How can i do it with custom forms or sqlform . Thanks Sarados

[web2py] Error when executing select command

2010-08-09 Thread Kenneth
I don´t understand what am I doing wrong. command: days = db((db.troop_place_day.day == 2)(db.troop_place_day.troop_place == 21)).select() gives this error: Traceback (most recent call last): File gluon/restricted.py, line 178, in restricted exec ccode in environment File

[web2py] Re: capitalize all letters inside input

2010-08-09 Thread mdipierro
Field(...,requires=IS_UPPER()) On Aug 9, 6:30 am, sarsar sarsara...@gmail.com wrote: Hi . I think the question is more about python than web2py , but i am asking here . I want to capitalize all user input , before storing the answer , so everything is in capital letters . How can i do it

[web2py] New server

2010-08-09 Thread Kenneth
Hello, I´m in the process of starting a newer server for my web2py applications and would like to hear your comments about what to use. Anything about hardware that I should remeber? As linux version I´m planing on using CentOS 5.5 as we use it on all our servers. Webserver: Apache and database

Re: [web2py] New server

2010-08-09 Thread Jason Brower
2.6 or even 2.7 are better. Tehy do have improvements and features I like. Like better speed and sorted dictionaries. :) BR, Jason Brower On Mon, 2010-08-09 at 05:05 -0700, Kenneth wrote: Hello, I´m in the process of starting a newer server for my web2py applications and would like to

Re: [web2py] New server

2010-08-09 Thread Julius Minka
V Pondelok, 9. august 2010 o 05:05 -0700, Kenneth napísal(a): Hello, I´m in the process of starting a newer server for my web2py applications and would like to hear your comments about what to use. Anything about hardware that I should remeber? As linux version I´m planing on using

[web2py] Re: New server

2010-08-09 Thread Martin.Mulone
Mine ubuntu server 8.04 hardy heron, with apache2 mod_wsgi, web2py in production. Work very well. On Aug 9, 9:31 am, Julius Minka j...@minka.sk wrote: V Pondelok, 9. august 2010 o 05:05 -0700, Kenneth napísal(a): Hello, I´m in the process of starting a newer server for my web2py

[web2py] Re: Error when executing select command

2010-08-09 Thread Martin.Mulone
change with: db.troop_place_day.day()==2 if I not wrong On Aug 9, 8:31 am, Kenneth kenneth.t.lundst...@gmail.com wrote: I don´t understand what am I doing wrong. command: days = db((db.troop_place_day.day == 2)(db.troop_place_day.troop_place == 21)).select() gives this error: Traceback

[web2py] Re: Error when executing select command

2010-08-09 Thread mdipierro
You have the problem described here: http://web2py.com/book/default/chapter/06#Fixing-Broken-Migrations The first one of them. On Aug 9, 6:31 am, Kenneth kenneth.t.lundst...@gmail.com wrote: I don´t understand what am I doing wrong. command: days = db((db.troop_place_day.day ==

[web2py] Re: Error when executing select command

2010-08-09 Thread mdipierro
Ignore my response. Martin is right. On Aug 9, 7:45 am, mdipierro mdipie...@cs.depaul.edu wrote: You have the problem described here: http://web2py.com/book/default/chapter/06#Fixing-Broken-Migrations The first one of them. On Aug 9, 6:31 am, Kenneth kenneth.t.lundst...@gmail.com wrote:

Re: [web2py] Re: Error when executing select command

2010-08-09 Thread Kenneth Lundström
Now I´m getting: Traceback(most recent call last): Filegluon/restricted.py,line178,inrestricted execccodeinenvironment File/data/domains/exp-kal.nudata.fi/applications/init/controllers/troop.py https://exp-kal.nudata.fi/admin/default/edit/init/controllers/troop.py,line2195,inmodule

[web2py] Re: crud + hidden fields that need to go into the DB?

2010-08-09 Thread Martin.Mulone
I think you need to put in your field: writable=False, readable=False Field('Latitude', 'double', writable=False, readable=False)), Field('Longitude', 'double', writable=False, readable=False)) On Aug 8, 2:21 am, Rob r...@rmdashr.com wrote: I have a model that has a 'Address', 'Lat' and Lon'

[web2py] use plugin_wiki for comments

2010-08-09 Thread selecta
I wonder if I can use the plugin wiki, or at least the code that creates and parses the pages to create non threaded comments? Anyone done that already? How would I start? In case you want to know - I want to add this to doc2py

[web2py] Re: Error when executing select command

2010-08-09 Thread Martin.Mulone
because you define in db as time, and need to be datetime. I think On Aug 9, 9:51 am, Kenneth Lundström kenneth.t.lundst...@gmail.com wrote: Now I�m getting: Traceback(most recent call last):    Filegluon/restricted.py,line178,inrestricted      execccodeinenvironment    

[web2py] Re: Error when executing select command

2010-08-09 Thread Martin.Mulone
Sorry my mistake, now i view your definition db.define_table('troop_place_day', db.Field('troop_place', db.troop_place, required=True), db.Field('day', 'integer'), db.Field('starts', 'time', requires=IS_TIME()), db.Field('ends', 'time', requires=IS_TIME())) 'day' you have as an

[web2py] Re: use plugin_wiki for comments

2010-08-09 Thread mdipierro
Just install plugin_wiki and in your pages add {{=plugin_wiki.widget('comments',table='mytable',record_id=myrecord)}} where you are attaching the comments to the item db.mytable.id==myrecord On Aug 9, 7:58 am, selecta gr...@delarue-berlin.de wrote: I wonder if I can use the plugin wiki, or at

[web2py] Re: Error when executing select command

2010-08-09 Thread mdipierro
This is still an option: On Aug 9, 7:45 am, mdipierro mdipie...@cs.depaul.edu wrote: You have the problem described here: http://web2py.com/book/default/chapter/06#Fixing-Broken-Migrations The first one of them. On Aug 9, 6:31 am, Kenneth kenneth.t.lundst...@gmail.com wrote: I don´t

[web2py] Re: Why is routes.py not recommended for production?

2010-08-09 Thread mwolfe02
Great! I was hoping to do my rewrites in web2py for all the same reasons Vasile mentioned. As to Jonathan's point about serving static files, I am using webfaction to host my site and the best practice there is to serve static files from a dedicated nginx server whose sole purpose is to serve

[web2py] Re: WOW!!

2010-08-09 Thread david.waldrop
Sorry to keep adding to this thread, but I think this is still related. Now that I have the separate database in separate folders I have an issue when I delete a community. Not with how to delete the folder, but rather where to place the code. The code below never seems to execute the

Re: [web2py] New server

2010-08-09 Thread Thadeus Burgess
I use Ubuntu, Apache, Python 2.6, PostgreSQL, mod_wsgi. For the love of god don't use CentOS for python web applications. Just make sure to follow ALL of the web2py performance enhancements. * Compile the app * Sessions to database * Make sure all database tables are designed to be thread safe

[web2py] Re: use plugin_wiki for comments

2010-08-09 Thread selecta
thanks, i understand, i will try it I noticed that line 132 of controllers/plugin_wiki.py should probably read return A(T('login to comment'), _href=auth.settings.login_url) On Aug 9, 3:15 pm, mdipierro mdipie...@cs.depaul.edu wrote: Just install plugin_wiki and in your pages add

[web2py] Re: use plugin_wiki for comments

2010-08-09 Thread selecta
I tried it but it is not quite what I want I want comments that can be edited like wiki entries In doc2py I want to allow the uses to add comments that contain source code or videos, for that I want the functionalities that the wiki editor has for comments also I do not have a db table and a

[web2py] Conditional menu

2010-08-09 Thread Johann Spies
I see Cube2py does it but I can' t figure out how. I have the following in my menu: [T('Login'), False, URL(request.application,'default','user'), []], [T('Logout'), False, URL(request.application,'default','user/logout'), []], I want only 'Login' or ' Logout' to be visible

[web2py] Re: WOW!!

2010-08-09 Thread mdipierro
It may be becase the folder is not empty and rmdir does not work if the folder is not empty On Aug 9, 8:23 am, david.waldrop david.wald...@gmail.com wrote: Sorry to keep adding to this thread, but I think this is still related. Now that I have the separate database in separate folders I have

[web2py] Re: Conditional menu

2010-08-09 Thread mdipierro
response.menu=[] if not auth.user: response.menu.append([T('Login'), False, URL(request.application,'default','user'), []]) else: response.menu.append([T('Logout'), False, URL(request.application,'default','user/logout'), []]) On Aug 9, 9:04 am, Johann Spies

[web2py] Re: New server

2010-08-09 Thread mdipierro
For the love of god don't use CentOS for python web applications. I may have to use it for a project (got no choice). Any advice? Massimo

Re: [web2py] Re: New server

2010-08-09 Thread Vasile Ermicioi
I use CentOS + python2.7 + web2py + gevent.pywsgi works great, I could help with installation if you need

Re: [web2py] Re: Conditional menu

2010-08-09 Thread Johann Spies
Thanks! Regards Johann --     Be not deceived; God is not mocked: for whatsoever a      man soweth, that shall he also reap.                                   Galatians 6:7

Re: [web2py] Re: New server

2010-08-09 Thread Thadeus Burgess
I guess the key is, no CentOS with apache/mod_wsgi. Can't comment on other webservers since I never tried them with CentOS... just Apache. -- Thadeus On Mon, Aug 9, 2010 at 9:49 AM, Vasile Ermicioi elff...@gmail.com wrote: I use CentOS + python2.7 + web2py + gevent.pywsgi works great, I

[web2py] Re: Exporting data from GAE BigTable

2010-08-09 Thread howesc
i use the google app engine's provided bulk loader for dumping and restoring data. it's supposed to deal with keeping ID's in sync, and has been fine for me so far. the trouble with it is that you have to have the GAE SDK installed to use it - you can't do it via either the web2py interfaces or

[web2py] Managing routes.py with mercurial checkout

2010-08-09 Thread mwolfe02
I'm just looking for a best practice here. I am running web2py using a clone of the repository https://web2py.googlecode.com/hg/. This has worked really well for me. However, I just added a routes.py file. Clearly, I want to version control this file, but that requires committing the change to

[web2py] Re: WOW!!

2010-08-09 Thread david.waldrop
That may also be a problem, but the code is never getting executed. I think the crud.delete functionality does not emit forms.accept(...). IIf this is the case and I need to use the crud.ondelete mechanism I am unsure how I signal the id (or path) I want the function to ooperate on. On Aug 9,

Re: [web2py] Managing routes.py with mercurial checkout

2010-08-09 Thread Jonathan Lundell
On Aug 9, 2010, at 8:20 AM, mwolfe02 wrote: I'm just looking for a best practice here. I am running web2py using a clone of the repository https://web2py.googlecode.com/hg/. This has worked really well for me. However, I just added a routes.py file. Clearly, I want to version control this

[web2py] Re: New server

2010-08-09 Thread mdipierro
I have a machine with configuration (somebody set it up for me and it seesm to work). On Aug 9, 10:00 am, Thadeus Burgess thade...@thadeusb.com wrote: I guess the key is, no CentOS with apache/mod_wsgi. Can't comment on other webservers since I never tried them with CentOS... just Apache. --

[web2py] Re: WOW!!

2010-08-09 Thread mdipierro
You are right. crud forms should not be acceped. do this: def f(form): app=meeting.name # somehow determine which name db_path = os.path.join(request.folder,'databases',app) os.path.rmdir(db_path) # you may need to clear recursively

Re: [web2py] Managing routes.py with mercurial checkout

2010-08-09 Thread Michael Wolfe
OK, but that still leaves a link to routes.py in the web2py repository. Do you use the Pull -- Update -- Merge -- Commit approach then when you update your web2py repository? On Mon, Aug 9, 2010 at 11:40 AM, Jonathan Lundell jlund...@pobox.com wrote: On Aug 9, 2010, at 8:20 AM, mwolfe02 wrote:

Re: [web2py] Managing routes.py with mercurial checkout

2010-08-09 Thread Jonathan Lundell
On Aug 9, 2010, at 9:06 AM, Michael Wolfe wrote: OK, but that still leaves a link to routes.py in the web2py repository. Do you use the Pull -- Update -- Merge -- Commit approach then when you update your web2py repository? Actually, I misdescribed my configuration slightly. I run my app

Re: [web2py] Managing routes.py with mercurial checkout

2010-08-09 Thread Michael Wolfe
Got it. I think that makes more sense than what I'm doing now. I probably outsmarted myself a bit trying to use mercurial to maintain the copy of web2py that I'm using to run my app (in my defense, when you've got a nice hammer (mercurial), everything looks like a nail). I thought about

Re: [web2py] Managing routes.py with mercurial checkout

2010-08-09 Thread Thadeus Burgess
As far as contributions go, you will just be sending diff files in. As long as your diff is clean it should not matter what is in your repository. Massimo does not use the hg import/export commands so you don't even need to commit any contributions to your local version anyways. -- Thadeus

Re: [web2py] Python and ZK

2010-08-09 Thread Júlio Monteiro
Hello Mike, I checked this framework a long time ago and wanted to try that with Python. At that time it didn't work, but now it seems more feasible. It is a very interesting web2.0 AJAX framework that has a complete GUI set to build beautiful applications. Since web2py can run on Jython this

Re: [web2py] Re: New server

2010-08-09 Thread Thadeus Burgess
Does it have Plesk or a similar control panel installed? -- Thadeus On Mon, Aug 9, 2010 at 10:46 AM, mdipierro mdipie...@cs.depaul.edu wrote: I have a machine with configuration (somebody set it up for me and it seesm to work). On Aug 9, 10:00 am, Thadeus Burgess thade...@thadeusb.com

Re: [web2py] Re: Conditional menu

2010-08-09 Thread Thadeus Burgess
Something Ive learned. if you build your menus based on the group permissions, make sure they are logged in too. if auth.is_logged_in() and auth.has_permission('admin', auth.user.id): admin menu elif auth.is_logged_in() user menu else: guest menu -- Thadeus On Mon, Aug 9, 2010 at

[web2py] add separator to fields

2010-08-09 Thread Neveen Adel
Hello, i defined a SQLFIELD with data type double. Is there a way to make separator , in the textbox by default. Thanks in Advance Neveen Adel

[web2py] Re: Python and ZK

2010-08-09 Thread mdipierro
You can but Jython has some regex problems it inherits from Java that SUN refused to fix. This can create problems on some templates. This is not a problem with web2py specifically wit with java and jython. Anyway, give it a try and let us know. Massimo On Aug 9, 11:45 am, Júlio Monteiro

[web2py] Re: New server

2010-08-09 Thread mdipierro
no On Aug 9, 11:45 am, Thadeus Burgess thade...@thadeusb.com wrote: Does it have Plesk or a similar control panel installed? -- Thadeus On Mon, Aug 9, 2010 at 10:46 AM, mdipierro mdipie...@cs.depaul.edu wrote: I have a machine with configuration (somebody set it up for me and it seesm

[web2py] Re: add separator to fields

2010-08-09 Thread mdipierro
You can create a validator for it: class EDOUBLE(): def __call__(self,value): try: return (float(str(value or 0).replace(',','.'),None) except: return (value, 'error') def formatter(self,value): return str(value).replace('.',',') On Aug 9, 12:03 

[web2py] login method mappings

2010-08-09 Thread Matt
I have a custom login method. I would like to set the group, and names etc. I noticed the mappings for facebook in the docs, but was a little confised about how to apply it. Can I apply a mapping from within the actual login_method class, and if so how? Thanks.

[web2py] Re: WOW!!

2010-08-09 Thread david.waldrop
Thanks. I am now over the main hump and cleaning up a bit. But still have a problem. I let the user create a community as described above. The app create a new subdirectory and creats some tables within that subdirectry at community creation time. All is well up to this point. I display a

[web2py] Re: add separator to fields

2010-08-09 Thread Neveen Adel
Thanks a lot mdipierro for your reply but how to use it ? Thanks in Advance Neveen On Aug 9, 8:17 pm, mdipierro mdipie...@cs.depaul.edu wrote: You can create a validator for it: class EDOUBLE():     def __call__(self,value):          try:             return (float(str(value or

[web2py] Re: add separator to fields

2010-08-09 Thread mdipierro
Put it in a model, before you use it and use it as db.mytable.myfield.requires=EDOUBLE(),IS_FLOAT_IN_RANGE(0,1000) On Aug 9, 12:48 pm, Neveen Adel nevo.a...@gmail.com wrote: Thanks a lot mdipierro for your reply but how to use it ? Thanks in Advance Neveen On Aug 9, 8:17 pm, mdipierro

Re: [web2py] Managing routes.py with mercurial checkout

2010-08-09 Thread Michael Wolfe
Thanks, Thadeus. I'd like to contribute at some point in the future and I wanted to make sure my design decisions wouldn't make that more difficult. I know you are a regular contributor, do you use a similar approach to what Jonathan uses? ie, do you run your apps using an 'install' of a web2py

Re: [web2py] Managing routes.py with mercurial checkout

2010-08-09 Thread Thadeus Burgess
Yes. I have one checkout that I always keep at the latest version. Its easy since I just clone the tagged revisions from mercurial. I simlink all of my applications to this single web2py instance. If I need to work on web2py, I clone a brand new repository from tip and then begin working. If I

Re: [web2py] Re: New server

2010-08-09 Thread Thadeus Burgess
That might be why I had so much difficulty with CentOS. -- Thadeus On Mon, Aug 9, 2010 at 12:14 PM, mdipierro mdipie...@cs.depaul.edu wrote: no On Aug 9, 11:45 am, Thadeus Burgess thade...@thadeusb.com wrote: Does it have Plesk or a similar control panel installed? -- Thadeus On

Re: [web2py] Re: Python and ZK

2010-08-09 Thread Thadeus Burgess
It should still be fixed, the regex patterns did not get changed. -- Thadeus On Mon, Aug 9, 2010 at 12:19 PM, Jonathan Lundell jlund...@pobox.com wrote: On Aug 9, 2010, at 10:14 AM, mdipierro wrote: You can but Jython has some regex problems it inherits from Java that SUN refused to fix.

[web2py] Auth module requirements

2010-08-09 Thread david.waldrop
Currently the auth systems requires the user to enter first name and last name. Is there a way to turn this off. I see in the Reddit example these fields are replaced by alias, but note in the book that the fields are required to be in the table. Ideally I want the user to only enter an alias

[web2py] Re: Auth module requirements

2010-08-09 Thread mdipierro
You add an alias field or a username field. and you can make the fields that you do not need empty or remove them. A easy way is db.auth_user.first_name.label='alias' db.auth_user.last_name.readable=False db.auth_user.last_name.writable=False On Aug 9, 1:35 pm, david.waldrop

Re: [web2py] Re: Bug in web2py?

2010-08-09 Thread Sebastian Bassi
On Fri, Aug 6, 2010 at 1:36 PM, mdipierro mdipie...@cs.depaul.edu wrote: db.table.field.widget=lambda field,value: SQLFORM.widgets.TextWidget.widget(field,value,cols=35 rows=8) You can add any attribute you need Is this documented somewhere? I found something strange, with this:

[web2py] Doubt with THEAD helper

2010-08-09 Thread Skiros
Hello ! I have a doubt using THEAD helper. THEAD(a, b) gives me as result theadab/thead. I expected theadtha/ththb/th/thead. Why is not the same operation like TR(a, b) = trtda/ tdtdb/td/tr ?

[web2py] Re: Doubt with THEAD helper

2010-08-09 Thread Skiros
Sorry i expected theadtrtha/ththb/th/tr/thead On 9 ago, 16:19, Skiros hansen.marc...@gmail.com wrote: Hello ! I have a doubt using THEAD helper. THEAD(a, b) gives me as result theadab/thead. I expected theadtha/ththb/th/thead. Why is not the same operation like TR(a, b)  = trtda/

Re: [web2py] Re: New server

2010-08-09 Thread Kenneth Lundström
I have a clean install of CentOS 5.5, so I´ll try to write down every step of installing web2oy and make a slice of it. Kenneth That might be why I had so much difficulty with CentOS. -- Thadeus On Mon, Aug 9, 2010 at 12:14 PM, mdipierromdipie...@cs.depaul.edu wrote: no On Aug 9,

[web2py] Re: crud + hidden fields that need to go into the DB?

2010-08-09 Thread Rob
after reading: https://groups.google.com/group/web2py/browse_frm/thread/bd7b06b759c9b4ae It looks like what I can do is this: db.Dinners.Latitude.widget=lambda field,value:SQLFORM.widgets.StringWidget.widget(field,value,_type=hidden) Will this work? I'll test when I get home tonight. On Aug

[web2py] LOAD and response.files

2010-08-09 Thread Chris S
When using plugin_wiki (or just the LOAD command in general) is it possible to somehow include response.files to include custom css and js files? It would be nice if I could only load .js files which are widget specific if that widget is in use. I really don't want to have to load every .js file

[web2py] Re: Bug in web2py?

2010-08-09 Thread mdipierro
we are both missing the _ widgets are helpers. db.sugerencias.texto.widget=lambda field,value:SQLFORM.widgets.text.widget(field,value,_cols=35,_rows=8,_onKeyUp=counterUpdate('question_2434','countBody','250');) This is documented in the book. Chapter 7 On Aug 9, 1:56 pm, Sebastian Bassi

[web2py] Re: New server

2010-08-09 Thread Fred
You might look at http://www.web2py.com/AlterEgo/default/show/239 as a basis.

[web2py] Re: Doubt with THEAD helper

2010-08-09 Thread mdipierro
It is a bug. Fixed in trunk: THEAD('a','b').xml() 'theadtrtda/td/trtrtdb/td/tr/thead' On Aug 9, 2:52 pm, Skiros hansen.marc...@gmail.com wrote: Sorry i expected theadtrtha/ththb/th/tr/thead On 9 ago, 16:19, Skiros hansen.marc...@gmail.com wrote: Hello ! I have a doubt using THEAD

[web2py] Re: New server

2010-08-09 Thread mdipierro
This worked for me: http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-fedora.sh On Aug 9, 3:06 pm, Kenneth Lundström kenneth.t.lundst...@gmail.com wrote:   I have a clean install of CentOS 5.5, so I´ll try to write down every step of installing web2oy and make a slice of it.

[web2py] Re: crud + hidden fields that need to go into the DB?

2010-08-09 Thread mdipierro
You can make something like this work you should not. It is a security vulnerability to have a editable hidden field because it does not prevent the client from editing. In web2py you should never need something like this. Just make the field invisible: db.Dinners.Latitude.readable=False

[web2py] Re: LOAD and response.files

2010-08-09 Thread mdipierro
The problem with this approach is that you can longer embed widgets in regular views via {{=plugin_wiki.widget(name,**attr)}} because the response.files list would be updated after the response.files are included. Massimo On Aug 9, 4:43 pm, Chris S sanders.ch...@gmail.com wrote: When using

[web2py] reminder about last book edit

2010-08-09 Thread Massimo Di Pierro
Tomorrow is likely the last day to submit comments and corrections about the online book. Then it will be frozen to go to print. Massimo

[web2py] Re: crud + hidden fields that need to go into the DB?

2010-08-09 Thread Rob
It's probably lame, but I'm attempting to port NerdDinner to web2py (http://nerddinnerbook.s3.amazonaws.com/Part11.htm), in this section they have some javascript code that says this: //... do a bunch of stuff to get lat/lon from user entered address ... //If we've found exactly one place, that's

[web2py] Job: Paypal Mass Payment API to web2py

2010-08-09 Thread Alexandre Andrade
I need someone to implement Paypal MassPayment API (SOAP or NVP) into a web2py app. Please respond to alexandrema...@gmail.com -- Atenciosamente -- = Alexandre Andrade Hipercenter.com

[web2py] lightning speech - Web2py - A framework for human beings

2010-08-09 Thread Bruno Rocha
On August 22 will present the lightning speech (only 5 minutes) at TDC2010 ( The Developers Conference ) in São Paulo - Brazil TDC is a big event in São Paulo, with trails of speeches on various subjects related to software development. on sunday, Python will be the subject of a full day of

[web2py] Re: crud + hidden fields that need to go into the DB?

2010-08-09 Thread Martin.Mulone
You can do this in that way, or you can do that in correct way. Good programming dont hide or populate values in the client (javascript). The correct way is to populate the lat and long in server side. I dont know what values you need it. If you dont have any other way nobody prohibit to do that.

[web2py] Re: crud + hidden fields that need to go into the DB?

2010-08-09 Thread Rob
If anyone can write a tutorial using bad programming practices, it's Microsoft! I could port that portion of the code that converts address to LAT/LON values using this (server side): http://web2py.com/book/default/chapter/12#Geocoding But like I said, I'm just trying to do a straight port of

[web2py] Re: Managing routes.py with mercurial checkout

2010-08-09 Thread Rob
You could use the hg bookmark extension and keep 2 local branches. One branch for upstream code and the other branch for your own changes. Before you did a pull, you'd switch back to your upstream branch, pull, switch to local change branch, merge (or rebase) with upstream branch, etc... At

[web2py] Re: New server

2010-08-09 Thread elffikk
a few files that I used for CentOS 5+ (I can;t attach them so I provide links) http://thebookle.com/thebookle/static/install/supay.py http://thebookle.com/thebookle/static/install/www.d http://thebookle.com/thebookle/static/install/server_install.txt use commands from server_install.txt place

[web2py] Re: reminder about last book edit

2010-08-09 Thread Matt
A couple of quick thoughts on using the book. Can the online book have next page and previous page links added? This would make browsing the book easier. Also is it possible to have all in one page view? For searching within the browser rather than the site. my 2cents. Matt Massimo Di Pierro

[web2py] Making file uploads optional?

2010-08-09 Thread Tyler Laing
I'm trying to make file uploads optional, however, SQLFORM is forcing the fields to be filled. Is there any way, without javascript, to have upload fields that are visible, but optional?

  1   2   >