[web2py] Re: Background process scheduler and GAE

2012-02-02 Thread Douglas Ross
Thanks very much, I will have a look. Doug On Feb 2, 10:22 am, howesc how...@umich.edu wrote: use the GAE taskqueues for background processes.  i also recommend looking at GAE backend instances for background tasks.

Re: [web2py] Any bored developers want to help?

2012-02-02 Thread Sebastian E. Ovide
did you use web2py for ethicaldeal.com and youadworld.com ? On Thu, Feb 2, 2012 at 3:32 AM, Bruce Wade bruce.w...@gmail.com wrote: Hi, I am currently using web2py to build a fitness portal, that allows members to: 1. track their food consumption 2. calculate the

Re: [web2py] Webfaction account with multiple apps under 1 web2py install

2012-02-02 Thread Vasile Ermicioi
I will show what I use in routes.py I have: routes_in = ( #('/admin/(.*)', '/admin/$1'), ('(.*):https?://(www\.)?site1\.com:(.*)/', '/site1/'), ('(.*):https?://(www\.)?site2\.com:(.*)/', '/site2/'), ) after you change routes.py you need to restart your server (apache, or whatever you

Re: [web2py] Webfaction account with multiple apps under 1 web2py install

2012-02-02 Thread Martín Mulone
Read: http://web2py.com/books/default/chapter/29/4#URL-rewrite Take a look to the router.py in web2py root folder, to use it you have to rename it to routes.py 1. 2. 3. 4. 5. 6. 7. 8. routers = dict( BASE = dict( domains = { 'domain1.com' : 'app1', 'domain2.com' :

Re: [web2py] Any bored developers want to help?

2012-02-02 Thread Bruce Wade
No, used cakephp for ethicaldeal, and used pyramid for youadworld, however for the last month I have been porting youadworld.com to web2py and the new version is much much much better then the current live one. I will update the development version of the site later today and provide a link to see

Re: [web2py] Webfaction account with multiple apps under 1 web2py install

2012-02-02 Thread Jim Steil
Wow, beautiful and simple. Thanks Martin, I really appreciate it. -Jim On 2/2/2012 4:26 AM, Martín Mulone wrote: Read: http://web2py.com/books/default/chapter/29/4#URL-rewrite Take a look to the router.py in web2py root folder, to use it you have to rename it to routes.py 1. 2. 3. 4.

Re: [web2py] Webfaction account with multiple apps under 1 web2py install

2012-02-02 Thread Jim Steil
Vasile - Thanks for the reply - However, with my aversion to regular expressions, I chose to use the solution that Martin provided. Thanks again. -Jim On 2/2/2012 3:22 AM, Vasile Ermicioi wrote: I will show what I use in routes.py I have: routes_in = ( #('/admin/(.*)', '/admin/$1'),

[web2py] Re: bootstrap 2

2012-02-02 Thread GoldenTiger
I have been following Addy Osmani for years, he has a lot of greats js projects, do not lose track of him, sure he will be usefull many more times On 1 feb, 19:31, Martín Mulone mulone.mar...@gmail.com wrote: tell me if you need help 2012/2/1 Bruno Rocha rochacbr...@gmail.com I am

[web2py] Re: bootstrap 2

2012-02-02 Thread GoldenTiger
I have been following Addy Osmani for years, he has a lot of greats js projects, do not lose track of him, sure he will be usefull many more times check this http://vimeo.com/35924671 On 2 feb, 15:53, GoldenTiger goldenboy...@gmail.com wrote: I have been following Addy Osmani for years, he has a

[web2py] Only 2 Weeks Left! -- Web2py Application Exhibition Version 3.0

2012-02-02 Thread NetAdmin
There are 2 weeks left for submissions for the Web2py Application Exhibition Version 3.0 For more information, see the pinned message at the top of this group. ( http://groups.google.com/group/web2py/t/466b21110dbd2d32 ) Good Luck! mr.netad...@gmail.com

[web2py] Opinions, please: best way to set up multiple apps on one site?

2012-02-02 Thread Cliff
I plan to port a suite of applications from PHP to Web2py. Even though it's a group of applications, I'm thinking the best solution is to lump them all into one app. I have used the cooperating applications design described in the manual and I want to do something else this time. The only

[web2py] Re: Opinions, please: best way to set up multiple apps on one site?

2012-02-02 Thread Ross Peoples
I have used the plugin approach before with success on a medium-sized app. You just have to design them properly or the plugins will rely on each other, which kind of defeats the purpose.

[web2py] Re: Opinions, please: best way to set up multiple apps on one site?

2012-02-02 Thread Cliff
Ross, Thanks for the idea. I haven't really thought about plugins. The plugins would share some data, mostly the auth tables, but some others as well. Is that what you mean by rely on each other? Thank you, Cliff Kachinske On Feb 2, 10:48 am, Ross Peoples ross.peop...@gmail.com wrote: I

[web2py] Re: Opinions, please: best way to set up multiple apps on one site?

2012-02-02 Thread Ross Peoples
If they are only sharing the auth table, then it's not a big deal, since the auth tables are there by default. But plugins are meant to be completely isolated from each other, completely unaware that other plugins exist. Putting core logic (accessing data) into modules and using more generic

Re: [web2py] Webfaction account with multiple apps under 1 web2py install

2012-02-02 Thread Vasile Ermicioi
Vasile - Thanks for the reply - However, with my aversion to regular expressions, I chose to use the solution that Martin provided. no problem :)

[web2py] Re: Anybody want to join me

2012-02-02 Thread howesc
i don't have much time to be a constant help, but feel free to post questions about web2py/GAE. i've got apps big and small running, and have made a crap-ton of mistakes so i try my best to answer those questions as they come up!

[web2py] Re: Opinions, please: best way to set up multiple apps on one site?

2012-02-02 Thread Cliff
I saw your post on that. I have the thread bookmarked. On Feb 2, 11:05 am, Ross Peoples ross.peop...@gmail.com wrote: If they are only sharing the auth table, then it's not a big deal, since the auth tables are there by default. But plugins are meant to be completely isolated from each other,

[web2py] Re: using radio widget can't receive the empty submit

2012-02-02 Thread DenesL
Your view does not include the default layout which in turn includes the response.flash, so you have to put it in your view somewhere: {{=response.flash}} On Feb 1, 9:11 pm, Dan ideall...@googlemail.com wrote: Hi Denesl, Thanks for the hints. I got the sumbit info from the xform.     Storage

[web2py] Deploying on windows - login works locally but not remotely

2012-02-02 Thread Jim Steil
Hi I have an app that I'm deploying on a different windows box on our internal network. I can connect to the app from a browser on that server without any problems. I can login with no problems and do what I want. When I go to a remote machine to connect to it, I can connect just fine

[web2py] Re: WHERE equivalent in query?

2012-02-02 Thread shartha
Thanks. =) On Feb 2, 12:33 am, Johann Spies johann.sp...@gmail.com wrote: On 2 February 2012 07:40, shartha m.mirghorb...@gmail.com wrote: I have two databases as follows: db.define_table('city',    Field('name'),    Field('state'),    format = '%(name)s' )

[web2py] Re: Deploying on windows - login works locally but not remotely

2012-02-02 Thread Anthony
Do you have an actual /views/default/user.html view, or are you relying on generic.html to show the login form? If the latter, not that by default, the 'welcome' app only enables generic views for local requests. Anthony On Thursday, February 2, 2012 1:04:43 PM UTC-5, Jim S wrote: Hi I

[web2py] How to replace this native query with DAL

2012-02-02 Thread Bruce Wade
Need a little assistance in this last query condition syntax. now = datetime.now() h = 72 seconds = h*3600 if not self.reg_time or (now-self.reg_time).total_seconds() seconds and self.enabled==True: sqlstr = select sum(happen_amount) from cash_journal

Re: [web2py] Re: Deploying on windows - login works locally but not remotely

2012-02-02 Thread Jim Steil
You are good! Is this done because of a security concern? Would 'best practice' dictate that I not use the generic views. -Jim On 2/2/2012 12:14 PM, Anthony wrote: Do you have an actual /views/default/user.html view, or are you relying on generic.html to show the login form? If the

Re: [web2py] Re: Deploying on windows - login works locally but not remotely

2012-02-02 Thread Carlos Costa
I think their purpose is for prototyping. 2012/2/2 Jim Steil j...@qlf.com: You are good! Is this done because of a security concern?  Would 'best practice' dictate that I not use the generic views.     -Jim On 2/2/2012 12:14 PM, Anthony wrote: Do you have an actual

[web2py] Error writing an auth_event

2012-02-02 Thread pbreit
My code is erroring and it looks like the culprit is the logging of an auth_event. It's happening on a lightly customized auth_user Profile update. Traceback (most recent call last): File /opt/web2py/gluon/restricted.py, line 204, in restricted exec ccode in environment File

Re: [web2py] Error writing an auth_event

2012-02-02 Thread Carlos Costa
Hard to guess withou the model, but looks like its related to the membership. 2012/2/2 pbreit pbreitenb...@gmail.com My code is erroring and it looks like the culprit is the logging of an auth_event. It's happening on a lightly customized auth_user Profile update. Traceback (most recent

Re: [web2py] Error writing an auth_event

2012-02-02 Thread pbreit
I'm not really using memberships and I have auto group creation turned off: auth.settings.create_user_groups = False It works OK in my dev environment so it has something to do with my production data. One thing I noticed is that it looks like it might be trying to validate NOT_IN_DB. Since

Re: [web2py] Re: Deploying on windows - login works locally but not remotely

2012-02-02 Thread Anthony
On Thursday, February 2, 2012 1:34:33 PM UTC-5, Jim S wrote: You are good! Is this done because of a security concern? Would 'best practice' dictate that I not use the generic views. Yes, it's a security concern. generic.json in particular will reveal everything passed to the view,

Re: [web2py] Error writing an auth_event

2012-02-02 Thread Carlos Costa
Looking the code above, elif is hit when len(rows) = 0. So I am stuck here, how could it retrive any value if the lenght is zero? Must look this whole code to understand it. 2012/2/2 pbreit pbreitenb...@gmail.com I'm not really using memberships and I have auto group creation turned off:

[web2py] Debugging in web2py

2012-02-02 Thread Web2Py Freak
Dear All , how can i use debugging in web2py are they any easy to use debugging tools ?

Re: [web2py] Re: Deploying on windows - login works locally but not remotely

2012-02-02 Thread Jim Steil
Thanks again Anthony. I will get that cleaned up. -Jim On 2/2/2012 1:46 PM, Anthony wrote: On Thursday, February 2, 2012 1:34:33 PM UTC-5, Jim S wrote: You are good! Is this done because of a security concern? Would 'best practice' dictate that I not use the generic views.

[web2py] Re: Debugging in web2py

2012-02-02 Thread Ross Peoples
Run web2py from console, and put import pdb; pdb.set_trace() right above the line of code where you want to start debugging. From there, use n to go to the next line, s to step into the next line, and c to continue execution. Good luck!

[web2py] Re: Debugging in web2py

2012-02-02 Thread Ross Peoples
Forgot to mention that when the debugger pauses on a line of code, besides using the key commands mentioned before, you can run single-line Python commands as if you were in an interactive session. This allows you to inspect variables and such. For example, once the debugger pauses and

[web2py] Re: Debugging in web2py

2012-02-02 Thread Web2Py Freak
What i want to do is to use debugging in an application that i integrated with PayPal and its working on Apache , i get some vars in the url from paypal and am trying to save them in the database but something happens .. so any ideas how can i debug that !!

Re: [web2py] Re: Debugging in web2py

2012-02-02 Thread Mariano Reingart
With apache, you can try a remote debugger like winpdb. I'm working on a simple approach for web2py based on a simple debugger (qdb, an enhancement to pdb). Please see the following page for further instructions: http://code.google.com/p/rad2py/wiki/QdbRemotePythonDebugger Basically: * copy

[web2py] Re: Server side validation with ajax but without form

2012-02-02 Thread Chris
Is there an equivalent of of validate_and_update for update_record?

[web2py] DAL Limitations with aggregate and union queries

2012-02-02 Thread BrendanC
I have a simple use case as follows: Given an employee table containing names and salaries, I want to retrieve the highest and lowest salaries *AND* the corresponding employee info. Ideally I'd like to do this in a single database request since in the real world we like to minimize the number

[web2py] Hide fields in Forms...

2012-02-02 Thread Peter Pan
Hello, want to hide certan Fields in Forms derived from Tables. I already tried everything but i cant make it happen. Here's the link with my source code: http://pastebin.com/V8MAE4en I already tried to set the Fields parent and created_by from the task-Table to readable/writeable = False but

[web2py] problem with character encoding

2012-02-02 Thread peter
I am reading some text from a web site, using f=urllib.urlopen(), and then s=f.read() I then extract a bit of 's' as s1, s1 contains Na Ponta Do Pé The é is encoded in a single byte as 0XE9. If I do IS_SLUG.urlify(s1) it throws and error because 0XE9 is not a valid character. I believe the

Re: [web2py] problem with character encoding

2012-02-02 Thread Jonathan Lundell
On Feb 2, 2012, at 2:24 PM, peter wrote: I am reading some text from a web site, using f=urllib.urlopen(), and then s=f.read() I then extract a bit of 's' as s1, s1 contains Na Ponta Do Pé The é is encoded in a single byte as 0XE9. If I do IS_SLUG.urlify(s1) it throws and error

Re: [web2py] Re: problem with character encoding

2012-02-02 Thread Jonathan Lundell
On Feb 2, 2012, at 3:45 PM, peter wrote: Thanks for the quick reply s1=s1.decode('Latin-1') does not help, is that what you had in mind? Try 'latin-1'

Re: [web2py] Error writing an auth_event

2012-02-02 Thread pbreit
I moved form = auth() to the top of the function which seems to have fixed it (I have some other code in the user() function that required me to create the form before the return).

[web2py] Re: Debugging in web2py

2012-02-02 Thread pbreit
Logging is helpful. https://groups.google.com/d/msg/web2py/CI5JGc8yZw8/K3v9nSWi2dYJ

[web2py] Re: Hide fields in Forms...

2012-02-02 Thread pbreit
This is a tricky one even for native English speakers: it's writable.

Re: [web2py] Re: Server side validation with ajax but without form

2012-02-02 Thread Bruno Rocha
On Thu, Feb 2, 2012 at 7:59 PM, Chris partyonais...@gmail.com wrote: Is there an equivalent of of validate_and_update for update_record? not yet, but it is was on roadmap, but I forgot to send the patch ( I guess I have it here somewhere) Row.validate_and_update_record() I will try to find,

[web2py] Re: Minify (compress) response HTML

2012-02-02 Thread Kernc
Sorry for late reply, didn't get any notification by email due to my list preferences. It could send me a follow-up on the thread I posted... Oh, well... Minification before gzipping still does make a difference: this is my index.html: $ wc -c minified.html 4827 minified.html $ wc -c

[web2py] Re: problem with character encoding

2012-02-02 Thread peter
I did On Feb 2, 11:58 pm, Jonathan Lundell jlund...@pobox.com wrote: On Feb 2, 2012, at 3:45 PM, peter wrote: Thanks for the quick reply s1=s1.decode('Latin-1') does not help, is that what you had in mind? Try 'latin-1'

[web2py] Re: problem with character encoding

2012-02-02 Thread peter
Okay, your telling me it was latin-1 was really useful. Following that I did some more googling, and s1=s1=s1.decode('Latin-1').encode('utf-8') finally does the trick. Thanks Peter On Feb 2, 11:58 pm, Jonathan Lundell jlund...@pobox.com wrote: On Feb 2, 2012, at 3:45 PM, peter wrote:

[web2py] Re: problem with character encoding

2012-02-02 Thread peter
I of course mean s1=s1.decode('Latin-1').encode('utf-8') On Feb 3, 3:48 am, peter peterchutchin...@gmail.com wrote: Okay, your telling me it was latin-1 was really useful. Following that I did some more googling, and s1=s1=s1.decode('Latin-1').encode('utf-8') finally does the trick.

[web2py] How to get a dropdown in self referencing table, create form?

2012-02-02 Thread Edward Shave
I have defined the following self referencing table. db.define_table( 'account', Field('name'), Field('asset','boolean', default=False), *Field('transfer','reference account'),* format = '%(name)s', singular = 'Account', plural = 'Accounts', ) How to get a

[web2py] Re: Minify (compress) response HTML

2012-02-02 Thread Massimo Di Pierro
OK, let's add a minifier in contrib. On Feb 2, 8:16 pm, Kernc kernc...@gmail.com wrote: Sorry for late reply, didn't get any notification by email due to my list preferences. It could send me a follow-up on the thread I posted... Oh, well... Minification before gzipping still does make a

[web2py] Re: How to get a dropdown in self referencing table, create form?

2012-02-02 Thread Edward Shave
Found this works following definition db.account.transfer.requires = IS_IN_DB(db,db.account.id,'%(name)s')