Boy, I kinda like that thing.
http://robhudson.github.com/django-debug-toolbar/
BR,
Jason Brower
Some time ago I built a web application in which we left room for
users to enter a tagline, since most users struggled to come up with a
tagline, we provided them with the following description:
A tagline is a slogan in which you state what your company/product/
service does or is and in what in d
Debian packages for 1.94.4 are already available where usual:
http://people.debian.org/~jredrejo/web2py/lenny/ (for python2.5)
or
http://people.debian.org/~jredrejo/web2py/squeeze/ (for python >> 2.5)
Regards.
On Thu, Mar 17, 2011 at 7:49 PM, pbreit wrote:
> I just copied my parameters_8000.py to parameters_443.py
>
> I think it needs to be 443 since that's the https port.
>
> So:
>
> web2py$ cp parameters_8000.py parameters_443.py
>
That did it. I now have access to the administrative interface. With
I have had trouble with 1.94.4 as follows:
- Start the develop server of the web2py
- Browse the admin application site
- Log-in the site
- Click to a link of my application site (which uses a database
session)
- browse the admin application site again
- Then, cannot log-in the site because someho
I have had trouble with 1.94.4 as follows:
- Start the develop server of the web2py
- Browse the admin application site
- Log-in the site
- Click a link to my application site (which uses a database
session)
- browse the admin application site again
- Then, cannot log-in the site because somehow th
has anyone expanded caching of web2py and contribs/gae_memcache.py..?
for example:
1. I'd like to be able to call a wrapper that calls Web2py/clear() or
GAE/delete()
2. Cover the exceptions that GAE memcache can throw (e.g., during read-
only maintenance sessions)
3. I'm happy to skip the use of
Massimo, thanks for your correction, but I need code like that:
**
* def work(i): *
*row=db(db.autos.id==i).select() *
*return dict(row=row)*
**
In this case "i" is a variable fr
http://.../default/work?number=3
In controller
i = request.vars.number
> row=db(db.autos.id==i).select()
Em 18/03/2011, às 08:16, cyber escreveu:
> Massimo, thanks for your correction, but I need code like that:
>
> **
> * def work(i):
WOW!
It works! It's so simple - I can't believe.
Thank you.
**
On 18 мар, 14:34, rochacbruno wrote:
> http://.../default/work?number=3
>
> In controller
>
> i = request.vars.number
>
> > row=db(db.autos.id==i).select()
>
> Em 18/03/2011, às 08:16, cyber escreveu:
>
>
>
>
>
>
>
> > Massim
On Mar 17, 4:55 pm, cyber wrote:
> Hi there!
>
> I need a hint of how to get variable value from view to my function in
> controller.
>
> My code in controller:
> ***
> * def work():
> * row=db.exe
Are other people having the same problem? Are you sure it is with
1.94.4. Can you try delete all sessions files?
On Mar 18, 5:59 am, kenji4569 wrote:
> I have had trouble with 1.94.4 as follows:
> - Start the develop server of the web2py
> - Browse the admin application site
> - Log-in the site
>
Instead of
row=db(db.autos.id==i).select().first()
you can also do
row=db.autos(i)
On Mar 18, 6:34 am, rochacbruno wrote:
> http://.../default/work?number=3
>
> In controller
>
> i = request.vars.number
>
> > row=db(db.autos.id==i).select()
>
> Em 18/03/2011, às 08:16, cyber escreveu:
>
>
>
show-off! ;)
On Mar 18, 8:32 am, Massimo Di Pierro
wrote:
> http://vimeo.com/21185623
Hi Massimo,
I did once more try to setup web2py using mod_wsgi in something
different than /, in my case /ruamel
To be sure I temporarily deactivated the WSGIScriptAlias for /
Although the welcome page on http://localhost/ruamel tells me it works
it doesn't look like that since the page has no C
It wasn't me. My robot made it. I just posted it.
On Mar 18, 8:26 am, DenesL wrote:
> show-off! ;)
>
> On Mar 18, 8:32 am, Massimo Di Pierro
> wrote:
>
>
>
>
>
>
>
> >http://vimeo.com/21185623
*WOW*! This is the best answer to all criticism against web2py
*Talk is cheap, Show the code!*
I created a custom shorten link, because I am sure this link will be very
used to answer threads : http://bit.ly/web2pykickass
On Fri, Mar 18, 2011 at 9:32 AM, Massimo Di Pierro <
massimo.dipie...@gma
I have had apps "freeze" last night where I needed to kill the tab and
open fresh. First time it happens. Don't know if related, but maybe
not a coincidence... I'm on macosX
Thanks,
Mart :)
On Mar 18, 8:23 am, Massimo Di Pierro
wrote:
> Are other people having the same problem? Are you sure it
Very nice.
I'm sure the claim that the web2py template engine is "the best" will not
generate any controversy. ;)
Anthony
On Friday, March 18, 2011 8:32:19 AM UTC-4, Massimo Di Pierro wrote:
> http://vimeo.com/21185623
That would be pretty cool. You sometimes have to jump through a few hoops to
see all the variables and SQL code.
reddit thread:
http://www.reddit.com/r/Python/comments/g6e5s/on_web2py_with_tornado_cherrypy_paste_mako/
On Mar 18, 4:52 pm, Anthony wrote:
> Very nice.
>
> I'm sure the claim that the web2py template engine is "the best" will not
> generate any controversy. ;)
>
> Anthony
>
> On Friday, March 1
I had the browser freeze... not web2py. I thought the problem was with
google chrome beta on MacOSX. What browser are you using?
On Mar 18, 9:31 am, mart wrote:
> I have had apps "freeze" last night where I needed to kill the tab and
> open fresh. First time it happens. Don't know if related, but
The demonstrated modularity is impressive. I also looked at the recent
reddit link. I must say the DAL is amazing. I've done Perl
professionally for 12 years with a focus on database processing and I
wish I had had DAL at my disposal.
I would like to discuss one thing said in this video - "the web
On Mar 18, 8:54 am, Terrence Brannon wrote:
> The demonstrated modularity is impressive. I also looked at the recent
> reddit link. I must say the DAL is amazing. I've done Perl
> professionally for 12 years with a focus on database processing and I
> wish I had had DAL at my disposal.
>
> I wou
I just upgraded from 1.91.6 to 1.94.4 through the admin interface. The
problem is still reproducible when deleting all session files. But,
the problem does not occur when I comment out a "session.connect"
method in my application, indicating that the database session is
somewhat related. I use Cent
Can you show the complete session.connect(...) statement?
On Mar 18, 10:53 am, kenji4569 wrote:
> I just upgraded from 1.91.6 to 1.94.4 through the admin interface. The
> problem is still reproducible when deleting all session files. But,
> the problem does not occur when I comment out a "session
session.connect(request, response, masterapp=masterapp, db=db)
where masterapp is my application name, and use the method in a module
file.
On 3月19日, 午前12:57, Massimo Di Pierro
wrote:
> Can you show the complete session.connect(...) statement?
>
> On Mar 18, 10:53 am, kenji4569 wrote:
>
>
>
>
>
I think this is a bug introduced in 1.94.* I will fix it later
tonight.
On Mar 18, 11:01 am, kenji4569 wrote:
> session.connect(request, response, masterapp=masterapp, db=db)
> where masterapp is my application name, and use the method in a module
> file.
>
> On 3月19日, 午前12:57, Massimo Di Pierro
On Mar 18, 2011, at 9:01 AM, kenji4569 wrote:
>
> session.connect(request, response, masterapp=masterapp, db=db)
> where masterapp is my application name, and use the method in a module
> file.
If it's in a module (vs model) file, where are you invoking it from?
>
> On 3月19日, 午前12:57, Massimo
> If it's in a module (vs model) file, where are you invoking it from?
I define it in a helper function of a module file, and invoke the
function in a model file.
On 3月19日, 午前1:13, Jonathan Lundell wrote:
> On Mar 18, 2011, at 9:01 AM, kenji4569 wrote:
>
>
>
> > session.connect(request, response,
Given a user ID with ID of 1
and a group with ID of 1 and role = "Super Admin"
and an entry in auth_membership to tie the two together so that user 1 is a
member of group 1 I can do:
auth.has_membership(1,1)
True
but if I do:
auth.has_membership(1, role="Super admin")
False
(I'm runni
Another very useful video - thanks for putting these out! Clever use of
decorators for template support.
While we're on the topic of using web2py features outside of web2py:
I have a package with library code, command line scripts, etc. -- let's call
it "mypackage"
Let's say I also have a web2
Yup. Found out about it at my new job where I am programming in Django.
BR,
Jason Brower
On 03/18/2011 05:01 PM, Ross Peoples wrote:
That would be pretty cool. You sometimes have to jump through a few
hoops to see all the variables and SQL code.
On Fri, Mar 18, 2011 at 11:32 AM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
>
>
> On Mar 18, 8:54 am, Terrence Brannon wrote:
> > I dont think the HTML created with
> > web2py's template system is well-formed is it?
> >
> >
> > {{ for row: in rows }} < breaks well-formedness?
>
"Super Admin" != "Super admin"
On Mar 18, 11:51 am, Tom Atkins wrote:
> Given a user ID with ID of 1
> and a group with ID of 1 and role = "Super Admin"
> and an entry in auth_membership to tie the two together so that user 1 is a
> member of group 1 I can do:
>
> auth.has_membership(1,1)
>
Thanks - that was only a typo in the example though... I just worked out my
stupid error, I needed to use:
auth.has_membership(user_id=1, role="Super admin")
maybe too many pints on St. Patrick's day yesterday ;-)
On 18 March 2011 18:17, Massimo Di Pierro wrote:
> "Super Admin" != "Super admin
amazed! I am still new to web2py with a cakephp background and I am
very sorry to did not come across to web2py sooner.
Just for curiousity: What program/environment you use to create these
videos?
On márc. 18, 13:32, Massimo Di Pierro
wrote:
> http://vimeo.com/21185623
On Friday, March 18, 2011 11:47:50 AM UTC-4, metaperl wrote:
>
>
>
> On Fri, Mar 18, 2011 at 11:32 AM, Massimo Di Pierro > wrote:
>
>>
>>
>> On Mar 18, 8:54 am, Terrence Brannon wrote:
>> > I dont think the HTML created with
>> > web2py's template system is well-formed is it?
>> >
>> >
>> > {{
OK my brain is still failing me today:
What's the best way to return the details of all users who have a specific
role?
I have something like:
for row in db(db.auth_user).select():
if auth.has_membership(user_id=row.id, role=('Super admin')):
# do something
but can't help
I would think a join could get you there in one query. Something like:
users = db((db.auth_user.id==db.auth_membership.user_id) &
(db.auth_membership.group_id==db.auth_group.id) &
(db.auth_group.role=='Super admin')).select()
for user in user:
#do something
The
That should be:
for user in users: #2nd plural
Christian,
Thanks
yes, as a GAE user you *need* to have app.yaml, index.yaml, and queue.yaml
> in your source control (right now they get overwritten on upgrade so you
> want them backed up). most people also need to have routes.py in their
> source control.
>
Ok. It seems that I need to have t
Hi,
I hg clone web2py and then set up a second repository for my app. So I can
> update web2py and my app independently.
I am using git, but no problem.
Which directory do you have as the root for the app repository? web2py or
web2py/applications/myapp
Thanks
Dave
--
Dave Warnock: http://4
On Mar 18, 2011, at 12:31 PM, David Warnock wrote:
> Christian,
>
> Thanks
>
> yes, as a GAE user you *need* to have app.yaml, index.yaml, and queue.yaml in
> your source control (right now they get overwritten on upgrade so you want
> them backed up). most people also need to have routes.py i
Thank you - yes the double hit on the database was what made it seem
inelegant to me.
Your joined query works fine and I can work with the return data. Any
further improvements gratefully received! Hoping Massimo has an undocumented
super 1 liner! ;-)
For web2py, web2py is root. For my app, myapp is root.
Pulling from web2py repository will leave my app alone.
I do this as well. I have all my misc files in private and then in my setup
and deploy Fabric scripts to "rm /var/web2py/routes.py; cp routes.py
var/web2py/routes.py"
Linking actually sounds like a better way to go?
If you have given explicit permission to the group:
group_id=auth.add_group('Super Admin')
auth.add_permission(group_id, 'read', db.mytable)
then you can do:
for row in db(auth.accessible_query('read',
db.mytable)).select(db.mytable.ALL): print row
in the case being discussed mytable is auth_us
Thanks,
This is unfortunately quite heavy to redefine the tables with
define_table, but it works.
I did not yet tried for the tables without primary key.
Regards,
On Mar 9, 6:42 am, cjrh wrote:
> On Mar 8, 9:26 pm, Pivert wrote:
>
> > - My first problem was a major typo in the documentation. F
I apologize, the 1.94.1-4 has had problems with sessions because of
recent major refactoring. The latest reported here:
http://groups.google.com/group/web2py/msg/59f3716c4dcbdf47
Jonathan figured out the problem and submitted a patch. It passes my
tests.
Please check it and hopefully the issue is
I wonder how useful it would be to have a wizard to help pull all the common
bulding blocks without the predone welcome application.
That is, it contains the html but with no body content and the files and
feature installed and ready to use. This provides us with the ability for
more variety in our
In [step 3 of the application wizard](http://imgur.com/Xrk2U) one is
supposed to enter the fields for a table.
It uses a tremendous of text to describe field entry - with no link to
the corresponding part of the book.
Wouldnt a series of checkboxes for things like null, primary key, be
nice? And
The archives have 3 instances of this problem, but their solutions do
not apply to me. Here is a link to the ticket for the failed
application creation:
http://static.livingcosmos.org/tmp/127.0.0.1.2011-03-18.17-17-30.156fa84f-4485-4a40-937d-6bb44d73d60f.html
All I tried to do was create a single
I think the windows version is still 1.94.4, not 1.94.5
2011/3/18 Massimo Di Pierro
> I apologize, the 1.94.1-4 has had problems with sessions because of
> recent major refactoring. The latest reported here:
>
> http://groups.google.com/group/web2py/msg/59f3716c4dcbdf47
>
> Jonathan figured out
For the moment, I want to build a non-auth application. How hard is it
to add user authentication later?
Dare I say it's not too difficult?
The book says 'db(accessible_query(...)...' -- should it say 'db(auth.
accessible_query(...)...'?
http://web2py.com/book/default/chapter/08?search=accessible_query
On Friday, March 18, 2011 4:08:18 PM UTC-4, Massimo Di Pierro wrote:
> If you have given explicit permission to the group:
>
> g
web2py shell transcript of session resulting in no records in sqlite
storage.db file after doing an insert with no error:
[thequietcenter@ubuntu ~/prg/yinyogaworks] ../web2py/web2py.py --
shell=tmp
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.94.4 (20
if I use the upgrade that comes with admin (and I tried twice), I
still get
Version 1.94.4 (2011-03-18 02:53:34.
If I use mine, I can get:
Select option:
1) check for updates on web2py.com
2) check for updates and install latest available release
3) upgrade from a local copy
4
Richard,
if your query only orders or filters on a single property no index is
required (GAE actually does build an index, but those are auto-generated and
do not need to be specified in your index.yaml).
some queries that need indexes (assume for a moment that the proper tables
are defined):
>> maybe too many pints on St. Patrick's day yesterday ;-)
Tom, you're right -- I've felt terrible today, and I'm blaming the
Irish! :-)
Great fun though...!
villas: tonight I went through the edits you made, and just about everything
looks like it was correctly added to the book, including these two IS_DATE
corrections. Thanks for your work on this!
Kevin
Basically you would need to add this to model
from gluon.tools import Auth
auth=Auth(globals(),db)
auth.define_tables()
and this to controller
def user(): return dict(form=auth())
then decorate the actions as usual
@auth.requires_login()
You may want to customize some settings
auth.settings.
can you please try again?
On Mar 18, 6:49 pm, mart wrote:
> if I use the upgrade that comes with admin (and I tried twice), I
> still get
> Version 1.94.4 (2011-03-18 02:53:34.
>
> If I use mine, I can get:
>
> Select option:
> 1) check for updates on web2py.com
> 2) check for updates
works for me :)
On Sat, Mar 19, 2011 at 5:07 AM, Anthony wrote:
>
http://www.downforeveryoneorjustme.com/web2py.com
Em 19/03/2011, às 01:54, Marin Pranjic escreveu:
> works for me :)
>
> On Sat, Mar 19, 2011 at 5:07 AM, Anthony wrote:
>
I notice that "enterprise" still appears in http://twitpic.com/4awuyv
Will it be removed? I am removing it from portuguese translation.
The problem is now resolved.
Thank you for your quick response.
Kenji
On 3月19日, 午前5:28, Massimo Di Pierro
wrote:
> I apologize, the 1.94.1-4 has had problems with sessions because of
> recent major refactoring. The latest reported here:
>
> http://groups.google.com/group/web2py/msg/59f3716c4dcbd
69 matches
Mail list logo