[web2py] Re: web2py code style consistency

2010-02-01 Thread Richard
There are few catch-all except left and they should be removed. $ grep except: gluon/*py | wc -l 133 On Feb 1, 2:28 pm, mdipierro mdipie...@cs.depaul.edu wrote: We have done throught many pep8 revisions but things like this happen. I will take patches to clean-up. There are few catch-all

[web2py] improved functionality for fetch()

2010-02-01 Thread Richard
If I understand correctly, fetch() was added to web2py because at the time GAE did not support urllib2. Now GAE does support urllib2 which makes fetch() sort of redundant, but we need to keep it for backward compatibility. I found that urllib2 on GAE does not handle cookies as normal, so have

[web2py] Re: about image uploads

2010-02-01 Thread pistacchio
hi massimo, thanks for the suggestion, i'll try it as soon as i can. shouldn't this be added to the framework as a standard feature? i think retrieving images by their url is a common task. On Jan 31, 8:28 pm, mdipierro mdipie...@cs.depaul.edu wrote: I would do: def show():     import os    

[web2py] Re: plug-in webfolder

2010-02-01 Thread selecta
ok its done, new version and screenshot up http://jaguar.biologie.hu-berlin.de/~fkrause/web2py.plugin.webfolder.w2p http://jaguar.biologie.hu-berlin.de/~fkrause/screenshot_webfolder.png On Jan 31, 11:55 pm, selecta gr...@delarue-berlin.de wrote: yes, good idea, will do that as soon as i find

[web2py] Re: web2py code style consistency

2010-02-01 Thread selecta
you could use pylint to check for style consistency automatically On Feb 1, 9:33 am, Richard richar...@gmail.com wrote: There are few catch-all except left and they should be removed. $ grep except: gluon/*py | wc -l 133 On Feb 1, 2:28 pm, mdipierro mdipie...@cs.depaul.edu wrote: We

Re: [web2py] Re: Yet another installation problem

2010-02-01 Thread tiago almeida
Do you have easy_install instaled? Try easy_install -U hashlib (without 2.3). Does it give you the same error? -- On Sun, Jan 31, 2010 at 12:17 PM, weheh richard_gor...@verizon.net wrote: Oh, I forgot to mention that I ran easy_install-2.3 -U hashlib and the OS returned

[web2py] Re: plug-in webfolder

2010-02-01 Thread villas
One of the best examples of a picture being worth a thousand words! Thanks. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to

[web2py] How can I change database records together?

2010-02-01 Thread Carl
If I want a planet record to point to another planet record? If I use the following... db.define_table('planet', Field('radius', 'integer'), Field('previous_planet', db.planet, requires=IS_NULL_OR (IS_IN_DB(db,db.planet.id,'%(id)s' I get KeyError: 'planet'

[web2py] The state of the wiki and documentation in general

2010-02-01 Thread tiago almeida
Hello all, I really like web2py but allow me to say that the documentation in general is a bit lacking. For instance, the wiki looks to be unmantained for a long time. Also, I don't see a way to create pages there. As someone pointed out a few days ago, having only the pdf as a documentation

[web2py] Re: Code that used to work now fails in 1.74.8 -- Part 2 [SOLVED]

2010-02-01 Thread weheh
Thanks, that did the trick. All fixed. On Feb 1, 12:33 am, mdipierro mdipie...@cs.depaul.edu wrote: yes, same problem as above. On Jan 31, 10:29 pm, weheh richard_gor...@verizon.net wrote: After I dropped the assignment__tmp column, I still got a ticket from web2py and this time it's

[web2py] Re: Yet another installation problem

2010-02-01 Thread weheh
I suspect it may be because you don't have python 2.5 installed. What OS? On Feb 1, 6:23 am, tiago almeida tiago.b.alme...@gmail.com wrote: Do you have easy_install instaled? Try easy_install -U hashlib (without 2.3). Does it give you the same error? -- On Sun, Jan 31, 2010 at

[web2py] Reading JSON file every minute

2010-02-01 Thread Al
Hi, I am using web2py to build an application to read a few .JSON files which are updated periodically (every 300s), the information within the files will be decoded and used to update a database as well update some screens. As I am new to all web2py and python, could anyone tell me how I can

[web2py] Re: How can I change database records together?

2010-02-01 Thread weheh
Try this: db.defint_table(... Field('previous_planet','reference planet'), ...) Then after the table definition: db.planet.previous_planet.requires=IS_NULL_OR(IS_IN_DB (db.db.planet.id)) On Feb 1, 7:12 am, Carl carl.ro...@gmail.com wrote: If I want a planet record to point to another planet

[web2py] Re: plugin to sort database records with the mouse via ajax

2010-02-01 Thread selecta
cool I want to have that but the link is dead! On Jan 31, 6:03 pm, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/plugins -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to

[web2py] Re: routes.py SUCKS [or not]

2010-02-01 Thread Tamas
Sorry for the late reply, but it does not work still. Here are my settings: routes_in=[ ('/w2p/', '/myapp/default/index/'), ('/w2p/(?Pa.*)$','/ \ga')] routes_out=[('/(?Pa.*)$','/w2p/\ga')] I still get unknown ticket on plain /w2p/ On Jan 29, 9:31 pm, mdipierro mdipie...@cs.depaul.edu wrote:

[web2py] Re: Importing large amounts of data incremently gets slower...

2010-02-01 Thread mdipierro
Are you using sqlite? Do the other apps use the same database engine? Is the showdown during the imports or also after the imports are computed? On Feb 1, 12:54 am, Jason Brower encomp...@gmail.com wrote: It's interesting, but now that my little import tool works.. I have noticed with very

[web2py] Re: plugin to sort database records with the mouse via ajax

2010-02-01 Thread selecta
sorry my mistake, link is up, strange wlan here On Feb 1, 2:34 pm, selecta gr...@delarue-berlin.de wrote: cool I want to have that but the link is dead! On Jan 31, 6:03 pm, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/plugins -- You received this message because you are

[web2py] Re: Decode field in one to many relation

2010-02-01 Thread mdipierro
what db? The left=... only works on rdbms, not on GAE. On Feb 1, 1:50 am, ceriox cer...@gmail.com wrote: thanks for help but for the first solution i have a syntax error Traceback (most recent call last):   File gluon/restricted.py, line 171, in restricted   File

[web2py] Re: improved functionality for fetch()

2010-02-01 Thread mdipierro
Good points. Perhaps we should integrate your function with fetch. On Feb 1, 2:38 am, Richard richar...@gmail.com wrote: If I understand correctly, fetch() was added to web2py because at the time GAE did not support urllib2. Now GAE does support urllib2 which makes fetch() sort of redundant,

[web2py] Re: about image uploads

2010-02-01 Thread mdipierro
yes but it assumes 1) you know which table and field 2) no authentication. While the idea is general the implentation is specific. As you can see, it can be done in a few lines. The current mechanism that uses the download() is more general and should be preferred. On Feb 1, 3:19 am, pistacchio

[web2py] Re: response.render without layout

2010-02-01 Thread mdipierro
I just tried and work well In views/test.html {{=myvar}} In views/default/test2.html {{=outstr}} In controllers/default.py def test2(): # note test2.html does not exist outstr = response.render('test.html',dict(myvar='MyVarTest')) return dict(outstr=outstr) No layout. Just

[web2py] Re: plug-in webfolder

2010-02-01 Thread mdipierro
:-) On Feb 1, 5:46 am, villas villa...@gmail.com wrote: One of the best examples of a picture being worth a thousand words! Thanks. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com.

[web2py] Re: The state of the wiki and documentation in general

2010-02-01 Thread DenesL
Hi tiago, On Feb 1, 7:45 am, tiago almeida tiago.b.alme...@gmail.com wrote: Hello all, I really like web2py but allow me to say that the documentation in general is a bit lacking. For instance, the wiki looks to be unmantained for a long time. Also, I don't see a way to create pages there.

[web2py] Re: Custom form doesn't submit

2010-02-01 Thread DenesL
On Jan 29, 12:50 am, Adi aditya.sa...@gmail.com wrote: Ok, I removed the SELECT entirely to see if the form submits, but it still doesn't. Now I'm doing this: 1. created a read-only SQLFORM 2. did form[0].append(TR(my custom form fields here, Add another button)) But the Add Another

[web2py] Re: Reading JSON file every minute

2010-02-01 Thread Brian M
Use simplejson to decode the JSON file into the appropriate array, dictionary whatever. It's included in contrib. On Feb 1, 3:22 am, Al albertsec...@gmail.com wrote: Hi, I am using web2py to build an application to read a few  .JSON files which are updated periodically (every 300s), the

Re: [web2py] Re: The state of the wiki and documentation in general

2010-02-01 Thread tiago almeida
Hi, thank you for your reply. On Mon, Feb 1, 2010 at 2:43 PM, DenesL denes1...@yahoo.ca wrote: Hi tiago, On Feb 1, 7:45 am, tiago almeida tiago.b.alme...@gmail.com wrote: Hello all, I really like web2py but allow me to say that the documentation in general is a bit lacking. For

[web2py] Re: Reading JSON file every minute

2010-02-01 Thread mdipierro
python web2py.py -S yourapp -M import glob from gluon.contrib.simplejson import load for f in glob.glob('*.json'): data = load(open(f,'rb'0)) db.yourtable.insert(**data) ### ### assuming the json data is a dictionary with the same keys as the columns in db.yourtable. On Feb 1, 3:22 

[web2py] Re: response.render without layout [SOLVED]

2010-02-01 Thread villas
Gotcha! I have to put the response.render file in app/views/ and not in app/views/default/ Thanks for clarifying. --D -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe

Re: [web2py] Re: Global Variable Available Across Sessions

2010-02-01 Thread Thadeus Burgess
Why not use a chained cache.disk inside a cache.ram. This way it caches to both, so if it doesn't have cached in ram, it can always pull from the disk. I'm curious, what is the object your trying to cache ? I would think any object that had to persist in a thread-safe way like your requirements

[web2py] Re: How can I change database records together?

2010-02-01 Thread Carl
ah... a 'forward' reference;excellent! thanks weheh On Feb 1, 1:32 pm, weheh richard_gor...@verizon.net wrote: Try this: db.defint_table(... Field('previous_planet','reference planet'), ...) Then after the table definition: db.planet.previous_planet.requires=IS_NULL_OR(IS_IN_DB

[web2py] Re: Custom form doesn't submit

2010-02-01 Thread Adi
Instead of customizing an SQLFORM, I've made my own FORM and handled the insert in form.accepts. Works as expected. On Feb 1, 7:55 pm, DenesL denes1...@yahoo.ca wrote: On Jan 29, 12:50 am, Adi aditya.sa...@gmail.com wrote: Ok, I removed the SELECT entirely to see if the form submits, but it

Re: [web2py] Re: jquery tools

2010-02-01 Thread Albert Abril
As said at jQuery TOOLS web: Other JavaScript UI libraries focus on desktop-like features such as drag-and-drop, sliders, sortable tables or draggable windows. They are meant to build rich internet applications (RIAs) such as email clients, task managers, CRM software, image organizers or feed

[web2py] web2py help resources

2010-02-01 Thread DenesL
Primary source of help: web2py groups - http://groups.google.com/group/web2py/topics http://groups.google.com/group/web2py-developers/topics http://groups.google.com/group/web2py-users-brazil/topics Tips on searching the users group

[web2py] Re: help to make a complex model

2010-02-01 Thread Leandro - ProfessionalIT
Massimo, db.define_table('product cost',         Field('quote_products_id', db.quote_products, requires=IS_IN_DB (db, 'quote_products.id', lambda row: row.product.description')), This field generate a error of string expected.         Field('quote_products_id', db.quote_products,

[web2py] Plugin

2010-02-01 Thread K.R.Arun
Will some one tell me, how to make a plugin? For example a layout plugin, or an OAuth plugin, or anything like that. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe

[web2py] Re: help to make a complex model

2010-02-01 Thread mdipierro
I think you have an old web2py version. On Feb 1, 10:37 am, Leandro - ProfessionalIT lsever...@gmail.com wrote: Massimo, db.define_table('product cost',         Field('quote_products_id', db.quote_products, requires=IS_IN_DB (db, 'quote_products.id', lambda row:

[web2py] more plugins posted (with demo)

2010-02-01 Thread mdipierro
http://web2py.com/plugins -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit

Re: [web2py] Re: Global Variable Available Across Sessions

2010-02-01 Thread Thadeus Burgess
Sounds nasty. reading from the disk will always be faster than querying that database again. It seems the following should work for you then? t=cache.ram('from_sql_server',lambda:cache.disk('from_sql_server', lambda:myobject(),time_expire=5),time_expire=5) This way if

Re: [web2py] Plugin

2010-02-01 Thread Thadeus Burgess
Create your models/controllers/views/static files etc everything as you normally would, But append the word plugin_ in front of it so models/plugin_test.py controllers/plugin_test.py views/plugin_test/index.html static/plugin_test/logo.png But also follow the database/global def namespace

[web2py] Re: help to make a complex model

2010-02-01 Thread Leandro - ProfessionalIT
Massimo, After update my web2py with the last source version(tar.gz) I'm receiving this error message: OperationalError: parameter standard_conforming_strings cannot be changed Ps: My database is postgreSQL. -- You received this message because you are subscribed to the Google Groups

[web2py] Re: help to make a complex model

2010-02-01 Thread mdipierro
This is bad. You have postgresql = 8.1. It does not follow the official SQL convention for string escaping and does not allow changing it. Your web2py app is vulnerable to serious SQL injections unless you upgrade to postgresql 8.2 or later. On Feb 1, 11:58 am, Leandro - ProfessionalIT

[web2py] Re: How can I change database records together?

2010-02-01 Thread villas
If you wish to create a table which can refer to itself, see the manual: 6.13 Self-Reference and Aliases page 177. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from

[web2py] Questions on Auth

2010-02-01 Thread sveinh
Hi I'd like to report two things I have encountered regarding authentication: 1) Login with no (or wrong) password I have made no changes to the source, open the Welcome application, register a new user, then login. When logging in, I use the same e- mail as when registering, and password blank.

Re: [web2py] Re: Copy tables from existing table

2010-02-01 Thread Thadeus Burgess
So if I wanted to copy tables over, but set unique=False I ended up with the following audit_table = [copy.copy(f) for f in table] for i in range(len(audit_table)): audit_table[i].unique = False db.define_table(table.table_name + '_auditlog', Audit.audit_template,

[web2py] Webgrid so strange!

2010-02-01 Thread yamandu
First: I tried to write comment on web2pyslices but it gives me an error. Well, I got webgrid working. Then stopped. I restarted web2py and it worked again. And now it stopped again no matter what I do. The error is the following: NameError: global name 'T' is not defined on line 32:

[web2py] Re: Questions on Auth

2010-02-01 Thread mdipierro
Entering panic mode! You are correct about 1). There is a major bug in 1.74.8. One line in tools.py appears to be missing. I must have accidentally while applying the remember me patch. I have fixed this in trunk. I have posted 1.74.9. !!! EVERYONE PLEASE UPGRADE. THIS IS A MAJOR SECURITY ISSUE

[web2py] Re: gecko/webkit problem

2010-02-01 Thread Tomas Pelka
Tomas Pelka wrote: Hi everybody, have a weird problem with displaying my page in gecko. Seems that my response._vars are displayed even if they shouldn't be. Same as I type {{=BEAUTIFY(response._vars)}} into my view. Should be more obvious from attached screenshots(same page in gescko vs

[web2py] EMERGENCY! Major security hole in 1.74.8 fixed in 1.74.9.

2010-02-01 Thread mdipierro
User sveinh has discovered a major security hole in 1.74.8. This is really major and you should immediately upgrade to 1.74.9. I apologize for this. Massimo -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to

[web2py] Re: gecko/webkit problem

2010-02-01 Thread mdipierro
What do you mean? if response.flash='' it does not show. On Feb 1, 1:55 pm, Tomas Pelka tompe...@gmail.com wrote: Tomas Pelka wrote: Hi everybody, have a weird problem with displaying my page in gecko. Seems that my response._vars are displayed even if they shouldn't be. Same as I type

Re: [web2py] EMERGENCY! Major security hole in 1.74.8 fixed in 1.74.9.

2010-02-01 Thread Thadeus Burgess
Does this apply to = 1.74.7? -Thadeus On Mon, Feb 1, 2010 at 1:56 PM, mdipierro mdipie...@cs.depaul.edu wrote: User sveinh has discovered a major security hole in 1.74.8. This is really major and you should immediately upgrade to 1.74.9. I apologize for this. Massimo -- You received

Re: [web2py] Re: gecko/webkit problem

2010-02-01 Thread Tomas Pelka
mdipierro wrote: What do you mean? if response.flash='' it does not show. Dooh, of course. Thank you. On Feb 1, 1:55 pm, Tomas Pelka tompe...@gmail.com wrote: Tomas Pelka wrote: Hi everybody, have a weird problem with displaying my page in gecko. Seems that my response._vars are

Re: [web2py] EMERGENCY! Major security hole in 1.74.8 fixed in 1.74.9.

2010-02-01 Thread Timothy Farrell
Which version was the bug introduced in? My production environment runs an older version than my dev environment. On 2/1/2010 1:56 PM, mdipierro wrote: User sveinh has discovered a major security hole in 1.74.8. This is really major and you should immediately upgrade to 1.74.9. I apologize

Re: [web2py] Re: How can I change database records together?

2010-02-01 Thread Carl
thanks Villas. I had missed this in the second edition. On 1 February 2010 18:42, villas villa...@gmail.com wrote: If you wish to create a table which can refer to itself,  see the manual: 6.13 Self-Reference and Aliases  page 177. -- You received this message because you are subscribed to

[web2py] Re: EMERGENCY! Major security hole in 1.74.8 fixed in 1.74.9.

2010-02-01 Thread mdipierro
I am trying to find out. I know it is not in 1.74.1. On Feb 1, 3:23 pm, Timothy Farrell tfarr...@swgen.com wrote: Which version was the bug introduced in?  My production environment runs an older version than my dev environment. On 2/1/2010 1:56 PM, mdipierro wrote: User sveinh has

[web2py] DAL migration problem

2010-02-01 Thread baloan
Hello, I'm using PostgreSQL. Changing db.py from db.define_table('position', Field(day, 'date', unique = True), Field(quantity, double), ) to db.define_table('position', Field(date, 'date', unique = True),

[web2py] Re: Questions on Auth

2010-02-01 Thread sveinh
Hi Thanks for the update. Regarding 2), I'm not talking about auth-tokens in Session, but whatever other tokens the programmer has entered into session. Should these not also be cleared? sveinh On Feb 1, 8:49 pm, mdipierro mdipie...@cs.depaul.edu wrote: Entering panic mode! You are correct

Re: [web2py] Re: EMERGENCY! Major security hole in 1.74.8 fixed in 1.74.9.

2010-02-01 Thread Timothy Farrell
If you know where it is in the code you can always: bzr blame filename That will give you the revision number. From that you should be able to determine the date and then version number. On 2/1/2010 3:36 PM, mdipierro wrote: I am trying to find out. I know it is not in 1.74.1. On Feb 1,

[web2py] Re: EMERGENCY! Major security hole in 1.74.8 fixed in 1.74.9.

2010-02-01 Thread mdipierro
I runs some tests. This affects 1.74.8 and 1.74.7 ONLY. It does not affect previous versions. Massimo -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group,

Re: [web2py] Re: Questions on Auth

2010-02-01 Thread Thadeus Burgess
Not necessarily, what if you set session tokens to visitors as well ? You would not want to clear these out. Since a session is not tied to auth, a session is tied to the client visiting the website, you should clear these out manually in your logout function. -Thadeus On Mon, Feb 1, 2010

[web2py] Re: DAL migration problem

2010-02-01 Thread mdipierro
Hi Andreas, you have Field(date, 'date', unique = True) date is a reserved keyword and cannot be the name of a field/ column. Massimo On Feb 1, 3:37 pm, baloan balo...@googlemail.com wrote: Hello, I'm using PostgreSQL. Changing db.py from db.define_table('position',                

[web2py] Extra cron processes under Ubuntu 9.10 and Snow Leopard after upgrade to 1.74.9

2010-02-01 Thread MikeEllis
Just upgraded to 1.74.9 After restarting the server I noticed two persistent cron processes. My app isn't using cron. App seems to be running fine, just wondering why the extra processes. I'm sure they've never been there before. Similar results after upgrading under Snow Leopard on a Mac.

[web2py] Re: EMERGENCY! Major security hole in 1.74.8 fixed in 1.74.9.

2010-02-01 Thread mr.freeze
Can you give us details on the exploit? I would like to run my own tests. If you don't want to disclose it publicly, can you send an email? On Feb 1, 3:42 pm, mdipierro mdipie...@cs.depaul.edu wrote: I runs some tests. This affects 1.74.8 and 1.74.7 ONLY. It does not affect previous versions.

[web2py] Re: The state of the wiki and documentation in general

2010-02-01 Thread Christopher Steel
Hi Tiago, Your right, things are a bit scattered around. That was one of my first observations as well. That said a wealth of documentation can be found, but it is scattered. The following list of resources that gets updated fairly regularly (a big Thank You Denesl!) should get you started. Go

[web2py] Re: Extra cron processes under Ubuntu 9.10 and Snow Leopard after upgrade to 1.74.9

2010-02-01 Thread mdipierro
This should have worked before but somehow did not. If you are not using cron: nohup python web2py/web2py.py -N -argrap -i173.203.204.205 You just told us your admin password. Please check it. Use nohup python web2py/web2py.py -N -a 'recycle' -i173.203.204.205 so that it does not

Re: [web2py] Re: Extra cron processes under Ubuntu 9.10 and Snow Leopard after upgrade to 1.74.9

2010-02-01 Thread Thadeus Burgess
we might have his admin password, but he doesn't have ssl!! :) -Thadeus On Mon, Feb 1, 2010 at 3:57 PM, mdipierro mdipie...@cs.depaul.edu wrote: 173.203.204.205 -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send

[web2py] Re: Questions on Auth

2010-02-01 Thread sveinh
Hi Thanks for the reply. I see your point. Would using auth.settings.logout_next be a good place to do this? -sveinh On Feb 1, 10:42 pm, Thadeus Burgess thade...@thadeusb.com wrote: Not necessarily, what if you set session tokens to visitors as well ? You would not want to clear these out.

Re: [web2py] Re: Questions on Auth

2010-02-01 Thread Wes James
I downloaded your latest source and moved my app in to place and I get: exec(\'from applications.%s.modules.t2 import T2\' % request.application) File string, line 1, in module ImportError: No module named applications.cnrsa.modules.t2 I move it back to 1.74.8 - no problem. -wes On Mon, Feb 1,

[web2py] Re: Questions on Auth

2010-02-01 Thread mdipierro
please tell us more: binary source windows mac python version On Feb 1, 4:07 pm, Wes James compte...@gmail.com wrote: I downloaded your latest source and moved my app in to place and I get: exec(\'from applications.%s.modules.t2 import T2\' % request.application) File string, line 1, in

Re: [web2py] Re: Questions on Auth

2010-02-01 Thread Wes James
This one: http://www.web2py.com/examples/static/web2py_src.zip On Mon, Feb 1, 2010 at 3:12 PM, mdipierro mdipie...@cs.depaul.edu wrote: please tell us more: binary source windows mac python version On Feb 1, 4:07 pm, Wes James compte...@gmail.com wrote: I downloaded your latest source and

[web2py] Re: Questions on Auth

2010-02-01 Thread mdipierro
This should work but, assuming the file is there you can also do T2 = local_import('t2').T2 It is cleaner On Feb 1, 4:07 pm, Wes James compte...@gmail.com wrote: I downloaded your latest source and moved my app in to place and I get: exec(\'from applications.%s.modules.t2 import T2\' %

[web2py] Re: Extra cron processes under Ubuntu 9.10 and Snow Leopard after upgrade to 1.74.9

2010-02-01 Thread MikeEllis
Thanks for catching that, Massimo. The pw is changed. Actually, I will be using cron in the near future when we start processing gobs of real data, but it's good to be reminded of how to turn it off. Cheers, Mike On Feb 1, 5:00 pm, Thadeus Burgess thade...@thadeusb.com wrote: we might have his

[web2py] Re: Extra cron processes under Ubuntu 9.10 and Snow Leopard after upgrade to 1.74.9

2010-02-01 Thread MikeEllis
One funniness remains. I can't kill the web2py process with -SIGTERM any more. Have break out the heavy artillery and use -9. Also, killing the web2py process doesn't croak the cron processes. Have to kill them individually. Cheers, Mike On Feb 1, 5:00 pm, Thadeus Burgess

[web2py] Re: Extra cron processes under Ubuntu 9.10 and Snow Leopard after upgrade to 1.74.9

2010-02-01 Thread mdipierro
I notice that too but I cannot figure out why yet. I am not sure that killing the main web2py process should also kill the cron processes. I think I know how to change that but I am not sure what the preferred behavior should be. On Feb 1, 4:48 pm, MikeEllis michael.f.el...@gmail.com wrote: One

[web2py] compile app error

2010-02-01 Thread Wes James
When I try to compile my app with 1.74.9 I get: Cannot compile: there are errors in your app. Debug it, correct errors and try again. I've been poking around my app, but haven't come across any errors in the code. Is it possible to put what file the error was in in a later version of appamin?

Re: [web2py] compile app error

2010-02-01 Thread Thadeus Burgess
It might be a permission issue. If web2py does not have permissions to save to the folder it cannot compile. -Thadeus On Mon, Feb 1, 2010 at 5:09 PM, Wes James compte...@gmail.com wrote: When I try to compile my app with 1.74.9 I get: Cannot compile: there are errors in your app. Debug

[web2py] Re: compile app error

2010-02-01 Thread mdipierro
I think I just added tat to trunk. Please give it a try. No matter how hard I try I cannot write an app that cannot compiled. Massimo On Feb 1, 5:09 pm, Wes James compte...@gmail.com wrote: When I try to compile my app with 1.74.9 I get: Cannot compile: there are errors in your app. Debug it,

[web2py] Re: DAL migration problem

2010-02-01 Thread Richard
I just experienced the same problem using app on Google App Engine, which wasted some time - it will be neat when the new DAL takes care of these problems! (It will, right?) On Feb 2, 8:48 am, mdipierro mdipie...@cs.depaul.edu wrote: Hi Andreas, you have Field(date, 'date', unique = True)

[web2py] Re: Extra cron processes under Ubuntu 9.10 and Snow Leopard after upgrade to 1.74.9

2010-02-01 Thread mdipierro
I did found a problem with cron and I just fixed it in trunk. Could you please check that? Massimo On Feb 1, 4:58 pm, mdipierro mdipie...@cs.depaul.edu wrote: I notice that too but I cannot figure out why yet. I am not sure that killing the main web2py process should also kill the cron

[web2py] Re: Extra cron processes under Ubuntu 9.10 and Snow Leopard after upgrade to 1.74.9

2010-02-01 Thread MikeEllis
It's a interesting question. If the cron processes are children of the the main process, then I'd vote for having the main process send a SIGTERM to each child and wait() for a reasonable length of time before giving up. Makes things easier to manage. Obviously, a cron process written by a user

[web2py] Re: more plugins posted (with demo)

2010-02-01 Thread Richard
Very neat! (Change Layout link is broken) On Feb 2, 4:27 am, mdipierro mdipie...@cs.depaul.edu wrote: http://web2py.com/plugins -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To

[web2py] Re: DAL migration problem

2010-02-01 Thread mdipierro
The first version of the new DAL is just a more modular version of the current DAL. It will be easy to add this feature when done. On Feb 1, 5:42 pm, Richard richar...@gmail.com wrote: I just experienced the same problem using app on Google App Engine, which wasted some time - it will be neat

[web2py] Re: Extra cron processes under Ubuntu 9.10 and Snow Leopard after upgrade to 1.74.9

2010-02-01 Thread mdipierro
Achipa is helping refactor cron. This should go in the todo list. On Feb 1, 5:51 pm, MikeEllis michael.f.el...@gmail.com wrote: It's a interesting question.  If the cron processes are children of the the main process, then I'd vote for having the main process send a SIGTERM to each child and

[web2py] Re: Extra cron processes under Ubuntu 9.10 and Snow Leopard after upgrade to 1.74.9

2010-02-01 Thread MikeEllis
It will be tomorrow before I can try it. Have a concert to go to tonight. Cheers, Mike On Feb 1, 6:43 pm, mdipierro mdipie...@cs.depaul.edu wrote: I did found a problem with cron and I just fixed it in trunk. Could you please check that? Massimo On Feb 1, 4:58 pm, mdipierro

[web2py] Re: more plugins posted (with demo)

2010-02-01 Thread mdipierro
oops. gone. it did not belong there. On Feb 1, 5:51 pm, Richard richar...@gmail.com wrote: Very neat! (Change Layout link is broken) On Feb 2, 4:27 am, mdipierro mdipie...@cs.depaul.edu wrote: http://web2py.com/plugins -- You received this message because you are subscribed to the

Re: [web2py] Re: The state of the wiki and documentation in general

2010-02-01 Thread tiago almeida
Thanks for replying. I bought the book and I agree, it's great. But what I'm asking is some help from the community to start an official wiki, because the one that exists is not openly editable, or at least, make it openly editable What would be great for the web2py project (and its users) is if

[web2py] Re: The state of the wiki and documentation in general

2010-02-01 Thread mdipierro
This issue comes up very often. Currently we have: web2py.com/AlterEgo wiki.web2py.com web2pyslices.com In the past people have volunteered to setup moimoin and trac. I always agreed to link a new resource to the main web page. I do not think this is a technological problem. I think there is not

[web2py] Re: compile app error

2010-02-01 Thread mdipierro
was this solved? Massimo On Feb 1, 5:09 pm, Wes James compte...@gmail.com wrote: When I try to compile my app with 1.74.9 I get: Cannot compile: there are errors in your app. Debug it, correct errors and try again. I've been poking around my app, but haven't come across any errors in the

[web2py] request for beta testers for a web2py application

2010-02-01 Thread coolaid
The site provides editing and proofreading services. The service is designed with non-native English speakers in mind and offers very fast turn-around times (think business emails and blog posts). http://standardminds.com I'm offering free proofreading to beta testers! PM me for a coupon.

Re: [web2py] Re: compile app error

2010-02-01 Thread Wes James
I tried it just before I left work and it did not help. The permissions are set right too. I'll look more at it tomorrow. -wes On Mon, Feb 1, 2010 at 6:39 PM, mdipierro mdipie...@cs.depaul.edu wrote: was this solved? Massimo On Feb 1, 5:09 pm, Wes James compte...@gmail.com wrote: When I

Re: [web2py] Re: The state of the wiki and documentation in general

2010-02-01 Thread Thadeus Burgess
Because the web2py community is made up of people who use python for real world work and have real world jobs to make money. Django fanboys have nothing better to do all day than write docs in their parents basement:) -Thadeus On Mon, Feb 1, 2010 at 6:21 PM, mdipierro mdipie...@cs.depaul.edu

[web2py] Re: Webgrid so strange!

2010-02-01 Thread mr.freeze
Hmmm...The error you got was related to encoding: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 57: ordinal not in range(128)' What language are you using? Can you post some code? On Feb 1, 1:25 pm, yamandu yamandu.co...@gmail.com wrote: First: I tried to write comment on

[web2py] Re: Mobile devices + web2py

2010-02-01 Thread John Divon
Hi All, We have found a little bug in this function. Should use the following line : if request.env.http_accept and request.env.http_accept.find('text/ vnd.wap.wml')=0: instead: if request.env.http_accept and request.env.http_accept.find('text/ vnd.wap.wml'): Cheers. On Jan 28, 9:25 pm,

[web2py] Re: The state of the wiki and documentation in general

2010-02-01 Thread mdipierro
LOL On Feb 1, 9:42 pm, Thadeus Burgess thade...@thadeusb.com wrote: Because the web2py community is made up of people who use python for real world work and have real world jobs to make money. Django fanboys have nothing better to do all day than write docs in their parents basement:)