Thanks very much, I will have a look.
Doug
On Feb 2, 10:22 am, howesc wrote:
> use the GAE taskqueues for background processes. i also recommend looking
> at GAE backend instances for background tasks.
did you use web2py for ethicaldeal.com and youadworld.com ?
On Thu, Feb 2, 2012 at 3:32 AM, Bruce Wade wrote:
> Hi,
>
> I am currently using web2py to build a fitness portal, that allows members
> to:
>
>1. track their food consumption
>2. calculate the calories/fat/protein etc..,
>
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 use
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' : 'a
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
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.
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'),
('(
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 wrote:
> tell me if you need help
>
> 2012/2/1 Bruno Rocha
>
>
>
>
>
>
>
>
>
> > I am working to port web2py grid lay
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 wrote:
> I have been following Addy Osmani for years, he has a lot of greats js
> pr
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
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 prob
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.
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 wrote:
> I have used the plugin ap
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
p
>
> Vasile - Thanks for the reply - However, with my aversion to regular
> expressions, I chose to use the solution that Martin provided.
no problem :)
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!
I saw your post on that.
I have the thread bookmarked.
On Feb 2, 11:05 am, Ross Peoples 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, completely unaware
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 wrote:
> Hi Denesl,
> Thanks for the hints. I got the sumbit info from the xform.
> '_formname': 'xform'}>
> But
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
and
Thanks. =)
On Feb 2, 12:33 am, Johann Spies wrote:
> On 2 February 2012 07:40, shartha wrote:
>
>
>
>
>
>
>
>
>
> > I have two databases as follows:
>
> > db.define_table('city',
> > Field('name'),
> > Field('state'),
> > format = '%(name)s'
> > )
>
> > db.define_table('users',
> > Fi
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
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_journ
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 latt
I think their purpose is for prototyping.
2012/2/2 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.ht
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 "/opt/web
Hard to guess withou the model, but looks like its related to the
membership.
2012/2/2 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):
> Fil
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 it
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,
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
> I'm not really using memberships and I have auto group creation turned off:
>
> auth.settings.create_use
Dear All ,
how can i use debugging in web2py are they any easy to use debugging
tools ?
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.
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!
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 displays
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 !!
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 qd
Is there an equivalent of of validate_and_update for update_record?
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 o
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 = Fals
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
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
Thanks for the quick reply
s1=s1.decode('Latin-1')
does not help, is that what you had in mind?
Peter
On Feb 2, 10:38 pm, Jonathan Lundell wrote:
> 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
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'
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).
Logging is helpful.
https://groups.google.com/d/msg/web2py/CI5JGc8yZw8/K3v9nSWi2dYJ
This is a tricky one even for native English speakers: it's "writable".
On Thu, Feb 2, 2012 at 7:59 PM, Chris 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, but anyway it can be im
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 nonminified.
I did
On Feb 2, 11:58 pm, Jonathan Lundell 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'
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 wrote:
> On Feb 2, 2012, at 3:45 PM, peter wrote:
>
> > Thanks for the quic
I of course mean
s1=s1.decode('Latin-1').encode('utf-8')
On Feb 3, 3:48 am, peter 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.
>
> Thanks
>
> Peter
>
> On
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
OK, let's add a minifier in contrib.
On Feb 2, 8:16 pm, Kernc 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 difference:
> thi
Found this works following definition
db.account.transfer.requires = IS_IN_DB(db,db.account.id,'%(name)s')
53 matches
Mail list logo