Yeah! :)
On Feb 19, 7:00 am, mr.freeze nat...@freezable.com wrote:
You can now request a slice on web2pyslices.com. You will be notified
if someone creates a slice based on your request. There will
eventually be a hall of fame to honor those who have created the most
slices and responded to
Hi,
Short answer is: use web2py :-)
I've had similar issue some time ago with collection of pictures.
I defined function (say 'movePictures') which iterate through all
pictures in source directory (other then 'uploads') and used web2py
DAL to insert them into database (and uploads directory) and
how can I tell crud to redirect to an url that displays the created
item (of course only on successful creations)
my controller looks like that
def edit_method():
if not request.args:
return dict(form = crud.create(db_method), method = None)
#something with next/onvalidate/... here?
Also, I couldn't find a link to the epydocs ? Where did that go? It
was really great!
under http://web2py.com/examples/default/docs
i can see
http://web2py.com/examples/static/epydoc/index.html
or just go to
http://127.0.0.1:8000/examples/static/epydoc/index.html
--
You received this
Look here http://www.lshift.net/blog/2008/11/05/simple-inter-process-locks.
It seems to be a solution for that problem.
On Thu, Feb 18, 2010 at 11:45 PM, Michael Toomim too...@gmail.com wrote:
Ah! That sounds great! I will try using gluon's portalocker.
On Feb 18, 3:41 pm, mdipierro
+1
On Feb 19, 12:00 am, mr.freeze nat...@freezable.com wrote:
You can now request a slice on web2pyslices.com. You will be notified
if someone creates a slice based on your request. There will
eventually be a hall of fame to honor those who have created the most
slices and responded to the
You can do it both ways.
If you choose to retain the original names you will have to create
your own download action.
def mydownload(): return
response.stream(open(os.path.join(request.folder,'upload','/'.join(request.args)),'rb'))
You lose the ability to enforce granular access control.
I
def redirect_parent(url):
def tmp(form):
response.headers['web2py-component-
command']=document.location='%s' % url
raise HTTP(200)
return tmp
def edit_method():
if not request.args:
return dict(form = crud.create(db_method), method = None)
method =
What do you mean by setting an ID?
On Feb 19, 2:05 am, arnaud arnaud.masse...@gmail.com wrote:
Hi,
I'm newbie with python and Web2Py. My problem : I want customize my
register form.
This is my code
#model
auth_table = db.define_table(auth.settings.table_user_name,
Field('first_name',
I assume you are using a custom form in the view. web2py expects those
fields that are in the form. web2py does not know that the field value
is not present because you chose not to display it.
Before
form = SQLFORM(db.user, session.currentUserID)
you should do
Hi!
I'm deploying a test aplication on GAE and almost everything woks
fine, although I can't access appadmin.
When i try to access through https the application fails and i can see
the following error in the dashboard logs:
In FILE: /base/data/home/apps/professorsecaib/1.339995859017462670/
I do not know. I have never seen this that function is
straightforward:
from google.appengine.api import users
users.create_login_url(request.env.path_info)
and you get a GAE error
File /base/python_lib/versions/1/google/appengine/api/users.py, line 179,
in
Hi there,
I upgrade from web2py 1.74.8 to latest trunk and then my admin can not
login normally, instead it generates error ticket. Tracing down the
bug, I found the reason and cure.
1. Since rev 146, web2py uses the browser's prefer language as the
default language setting. It is good. My
In my app I had:
auth=Auth(globals(),db) # authentication/
authorization
auth.define_tables() # creates all needed
tables
crud=Crud(globals(),db)
Which worked wonderfully. Then I got the great idea to add some custom
fields to the auth
I fixed what you suggested in trunk, please check it. I did not remove
zh-cn.py but I removed those lines that do not have a translation.
Massimo
On Feb 19, 7:09 am, Iceberg iceb...@21cn.com wrote:
Hi there,
I upgrade from web2py 1.74.8 to latest trunk and then my admin can not
login
Hello.
I'm trying to use 'exists' keyword from the DB2 database. I know that web2py
doesn't support that natively so I tried to pass the additional condition in
as a string.
However I struck a problem that the same table used in the same query 3
times (query greatly simplified here but it still
The line
auth_table = db.define_table(
should be
auth.settings.table_user = db.define_table(
so that the following auth.define_tables() knows it is there already.
On Feb 19, 7:45 am, G. Clifford Williams
g.clifford.willi...@gmail.com wrote:
In my app I had:
auth=Auth(globals(),db)
On a second though. It does not have to be so complex. web2py should
just find the table. I modifed the code in trunk and now you can just
do
db.define_table('auth_user',...)
Please check it.
On Feb 19, 7:49 am, mdipierro mdipie...@cs.depaul.edu wrote:
The line
auth_table =
+1
--
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 this group at
John,
Thank you for the suggestions.
When I use the SERVER command, I get can't bind to port errors
The other issues you mention all seem OK.
r...@x:/etc/lighttpd# /etc/init.d/lighttpd restart
Syntax OK
* Stopping web server
lighttpd [ OK ]
Syntax OK
Nice!
On Fri, Feb 19, 2010 at 6:00 AM, mr.freeze nat...@freezable.com wrote:
You can now request a slice on web2pyslices.com. You will be notified
if someone creates a slice based on your request. There will
eventually be a hall of fame to honor those who have created the most
slices and
New features not documented in the printed version of the 2nd ed. book
as highlights in release order sequence:
1.75.4
- bug fix in BEAUTIFY
1.75.3
*** skip, use 1.75.4 ***
- better BEAUTIFY
- Linux PAM (Pluggable Authentication Modules) support
Not if you like Python.
On 2/18/2010 6:59 PM, Thadeus Burgess wrote:
http://www.coderun.com/
-Thadeus
On Thu, Feb 18, 2010 at 8:43 AM, Timothy Farrelltfarr...@swgen.com wrote:
kodingen uses Bespin at its core. Try using it in IE and you get this:
Tested the latest changes locally on dev_appserver.
All went smoothly in that only one difference from local Web2py
tripped up the process.
Pickling lists into strings and storing them in the database:
dev_appserver barked when a pickled string contained '\n' was inserted
into a field of type
I'd rather not fix this in sql but fix in dal if that's ok. You have
solution for now.
On Feb 19, 7:48 am, Alexey Nezhdanov snak...@gmail.com wrote:
Hello.
I'm trying to use 'exists' keyword from the DB2 database. I know that web2py
doesn't support that natively so I tried to pass the
:)
An IDE like approach would make the web editor much more appealing, if
we had a list of files in a tree structure (using jquery tree) instead
of having to constantly click back/forward to change files, or have a
firefox tab open for each file you want to edit.
-Thadeus
On Fri, Feb 19,
I am not convinced. The current approach is easier for new user and
people with no MVC experience. Everybody else it probably using a
shell and emacs.
Anyway. Nothing prevents users from creating another admin interface.
It is just an app.
If it works we can incorporate in the official admin.
aha
form=SQLFORM(.,_id='thisformid')
or
form['_id'] = 'thisformid'
the latter works with crud forms too. Remember that
class SQLFORM(FORM): ... is a helper.
On Feb 19, 11:03 am, Thadeus Burgess thade...@thadeusb.com wrote:
he wants a HTML CSS id on the form.
-Thadeus
On Fri, Feb 19,
Yes but with crud, or in his case auth.register_form()
-Thadeus
On Fri, Feb 19, 2010 at 11:31 AM, mdipierro mdipie...@cs.depaul.edu wrote:
aha
form=SQLFORM(.,_id='thisformid')
or
form['_id'] = 'thisformid'
the latter works with crud forms too. Remember that
class
It is the same
def register():
form=auth.register_form()
form['_id'] = 'my_form_id'
return dict(form=form)
On Feb 19, 11:42 am, Thadeus Burgess thade...@thadeusb.com wrote:
Yes but with crud, or in his case auth.register_form()
-Thadeus
On Fri, Feb 19, 2010 at 11:31 AM, mdipierro
I avoided the 'address already in use' errors by using port 8000
Still getting 404 - File not found
I found this in the lighttpd error log, which looks like it might have
something to do with my problem
2010-02-19 12:44:40: (server.c.931) WARNING: unknown config-key:
url.rewrite-once (ignored)
Found it !!!
I needed to include the mod_rewrite module.
Everything seems to be working now
On Feb 19, 9:22 am, raven ravenspo...@yahoo.com wrote:
John,
Thank you for the suggestions.
When I use the SERVER command, I get can't bind to port errors
Now that I have web2py working with lighttpd, instead of its own web
server,
my application runs much, much faster and requires just over half as
much memory
( 39M for web2py, python and lighttpd instead of 63M ) leaving me
plenty of room in my 64M system
This is great!
Without lighttpd
top -
I tried this the command line option: '
python web2py.py --upgrade yes'
and it just doesnt work for me. why is 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 from
I don't see a way to control the field width (how it appears on the
page) in the Field() option. Is the only way to do this is by
iterating through and adding the info in the list for the input field?
oh - wait, never mind - it just hit me to use css...
thx,
-wes
--
You received this message
Massimo,
I just looked at the input of a StringListProperty inpuot on a gae
rendered page and it has
input .. class=google.appengine.ext.db.StringListProperty
object at 0x83d13e41bcefbaf0
-wes
--
You received this message because you are subscribed to the Google Groups
web2py-users
You would have a similar memory footprint running apache/mod_wsgi.
Mind you I am also running Ruby (mod_passenger) as well as mod_wsgi,
so the memory usage is a tiny bit higher because of the extra ruby
processes.
free -m
total used free sharedbuffers cached
The other day when I was inputtung data in to a gae app, the data was
going in fine. Today I have to keep submitting the same data again
and again, because it never shows up, until it finally does Any
idea why?
thx,
-wes
--
You received this message because you are subscribed to the
I see now. If I use appadmin there are problems. If I use:
http://web2pyapi.appspot.com/ide/default/data/create/ideModelAPI
it works fine.
-wes
On Fri, Feb 19, 2010 at 2:51 PM, Wes James compte...@gmail.com wrote:
The other day when I was inputtung data in to a gae app, the data was
going
I have limitby(0,10) in the controller and I have 12 items in the db
right now, but all twelve are showing
http://web2pyapi.appspot.com/ide/default/models
It also is working with StringListProperty and searches can be done on
partial words.
Does web2py limitby work on gae?
thx,
-wes
--
You
That import comes from the google app engine API package that you
download from google. when running the dev_appserver it's in your
environment. if not running dev_appserver you can find the files
where you installed the GAE code.
web2py gae select syntax is the same as for any other DB, just
Ah, yes - it's in GoogleAppEngineLauncher.app... on macs
thx,
-wes
On Thu, Feb 18, 2010 at 4:46 PM, Wes James compte...@gmail.com wrote:
Hmm. I see:
from google.appengine.ext import db as gae
in gql.py
but if I run python from the cli and do:
from google.appengine.ext import db as gae
I have a window that was opened by a link. I have it go to a
controller, but once I am finished, I would like to close the window.
Is this possible to do from the controller via a URL() or something?
--
You received this message because you are subscribed to the Google Groups
web2py-users
Would it be possible to start/stop/monitor such a background process
from admin? If so, it would seem to be generically useful and a
powerful compliment to cron. A plug-in perhaps?
On Feb 19, 10:06 am, mdipierro mdipie...@cs.depaul.edu wrote:
I would not use cron for this. cron starts a job
This is not needed any more since default apps are upgraded
automatically. This was discussed on this list and decided this way.
On Feb 19, 3:15 pm, Pystar aitoehi...@gmail.com wrote:
I tried this the command line option: '
python web2py.py --upgrade yes'
and it just doesnt work for me. why is
gr.. this needs fixing. Tonight.
On Feb 19, 3:31 pm, Wes James compte...@gmail.com wrote:
Massimo,
I just looked at the input of a StringListProperty inpuot on a gae
rendered page and it has
input .. class=google.appengine.ext.db.StringListProperty
object at 0x83d13e41bcefbaf0
It should but I'll take a second look.
On Feb 19, 5:13 pm, Wes James compte...@gmail.com wrote:
I have limitby(0,10) in the controller and I have 12 items in the db
right now, but all twelve are showing
http://web2pyapi.appspot.com/ide/default/models
It also is working with
I've got an application that seems to run fine in a standalone web2py
environment but is having an issue with GAE. I just get Internal
Error in the browser. The GAE log shows the subject SyntaxError:
2010-02-19 18:08:19 Running command: ['C:\\Python25\\pythonw.exe', 'C:
\\Program
You could use javascript for this. The command is 'top.close()'
For example, say you want the window to close as soon as the
controller has done it's work...
script type=text/javascript
$(document).ready(function() {
top.close();
});
/script
Alternatively if you wanted more control, you could
This is the relevant code in gql.py
if not isinstance(items,list):
...
if attributes.get('limitby', None):
(lmin, lmax) = attributes['limitby']
(limit, offset) = (lmax - lmin, lmin)
items = items.fetch(limit,
I think I fixed it. Please check trunk.
On Feb 19, 3:31 pm, Wes James compte...@gmail.com wrote:
Massimo,
I just looked at the input of a StringListProperty inpuot on a gae
rendered page and it has
input .. class=google.appengine.ext.db.StringListProperty
object at 0x83d13e41bcefbaf0
Sounds like I will just need to have it be a javascript dialog box
later.
On Feb 19, 5:12 pm, Russell russell.mcmur...@gmail.com wrote:
You could use javascript for this. The command is 'top.close()'
For example, say you want the window to close as soon as the
controller has done it's
You could totally do a jqueryui dialog box, and use ajax to get the request :)
-Thadeus
On Fri, Feb 19, 2010 at 8:03 PM, waTR r...@devshell.org wrote:
Sounds like I will just need to have it be a javascript dialog box
later.
On Feb 19, 5:12 pm, Russell russell.mcmur...@gmail.com wrote:
This
ERROR2010-02-20 01:08:41,890 restricted.py:143] Traceback (most
recent call last):
File W:\web2py_lin\gluon\restricted.py, line 173, in restricted
exec ccode in environment
File W:\web2py_lin\applications\canyonezt/views/default/user.html,
line 38, in module
File
Why not use stackoverflow.com with #web2py tag?
On Feb 19, 1:23 am, Anand Vaidya anandvaidya...@gmail.com wrote:
Looks nice. Costs atleast $129 per month
Regards
Anand
On Feb 19, 1:02 pm, minh mdn0...@gmail.com wrote:
Just throwing this out there...
I think StackExchange.com would
May not be what you're looking for but you can inject javascript from
a controller with this:
http://www.web2pyslices.com/main/slices/take_slice/8
On Feb 19, 5:52 pm, waTR r...@devshell.org wrote:
I have a window that was opened by a link. I have it go to a
controller, but once I am finished,
how to this [1] with webpy?
[1] http://www.vimeo.com/9526668
--
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
Thanks a bunch... it didn't occur to me to look in layout.html, and
that's where the problem was. The other half of the problem was that
it appears the GAE development environment doesn't seem to want to
pick up changes dynamically like the standalone web2py environment...
dev_appserver.py seems
I do not accept the data below as complete for comparative purposes
since we do not know what the memory use by Apache proper itself is.
The figures we are using to add up memory use for web2py are resident
memory (RSS) for
web server for web2py
+ python for web2py
+ database for web2py
RSS for
hmm, i've looked through appcfg.py and I don't see a way to download
the whole gae app. I left it up on my work system and I was going to
pull down a version to check this. Is there a way to pull down a
version?
-wes
On Fri, Feb 19, 2010 at 6:44 PM, mdipierro mdipie...@cs.depaul.edu wrote:
I
the favicon is not an error. Some browser look for that file in order
to display a web site icon close to the url. Perhaps you should have
one.
On Feb 19, 9:09 pm, reyelts reye...@gmail.com wrote:
Thanks a bunch... it didn't occur to me to look in layout.html, and
that's where the problem was.
Happy ?
ps aux | grep apache ps aux | grep wsgi ps aux | grep
postgres ps aux | grep python
USER PID %CPU %MEMVSZ RSS TTY STAT START TIME COMMAND
root 3878 0.6 1.4 145136 7528 ?Ss 22:49 0:00
/usr/sbin/apache2 -k start
www-data 3950 0.0 1.2 145288 6360
Apache: 6360
web2py: 21244
Postgres: 26693
Total of 27MB, during peak hours of this site. PostgreSQL is
negligible since you can pick your database.
-Thadeus
On Fri, Feb 19, 2010 at 10:55 PM, Thadeus Burgess thade...@thadeusb.com wrote:
ww-data 3950 0.0 1.2 145288 6360 ? S
so that means that i just have to unpack the new version of web2py
over my old instalation and the upgrade is done automatically?
On Feb 20, 2:06 am, mdipierro mdipie...@cs.depaul.edu wrote:
This is not needed any more since default apps are upgraded
automatically. This was discussed on this
On Feb 19, 8:54 pm, Jose jjac...@gmail.com wrote:
how to this [1] with webpy?
[1]http://www.vimeo.com/9526668
Here is complete code:
db.define_table('organization',Field('name',notnull=True,unique=True),format='%
(name)s')
yes for admin, welcome, examples.
If you want to upgrade appadmin and web2py_ajax for you apps you copy
the files from welcome/ manually. This was the same before because you
have to be careful not to break your apps.
On Feb 19, 11:47 pm, Pystar aitoehi...@gmail.com wrote:
so that means that i
Here is a little better with a title in the modal and some comments of
explanation
# create a model
db.define_table('organization',Field('name',notnull=True,unique=True),format='%
(name)s')
db.define_table('person',Field('name'),Field('organization',db.organization))
# create link that open a
Reposted here since there are some indentation issues with google:
http://www.web2py.com/AlterEgo/default/show/258
On Feb 20, 12:01 am, mdipierro mdipie...@cs.depaul.edu wrote:
Here is a little better with a title in the modal and some comments of
explanation
# create a model
please do. I could use this.
On Feb 19, 11:35 pm, John Heenan johnmhee...@gmail.com wrote:
Thanks.
From below we get the following resident memory use (RSS) for Apache
with mod_wgsi and web2py (using Postgre database)
13,888 Apache (=7528+6360)
5,612 Some process associated with Apache for
If the only discussion here is tight vps, then postgresql results
should not even come into matter in your bottom line. Taking out 20MB
for the postgres process, and add 5 mb for a sqlite in the
python/web2py process, thats an extra 15 mb you can play around with.
Also, configuring apache to run
En even better solution.
Drop this code in your model somewhere:
def ajax_create(field,
value='create',
title='Add a new organizaiton',
height=100, width=600):
if not field.type.startswith('reference'):
raise SyntaxError, can only be
71 matches
Mail list logo