Please post a link on that page to the bitbucket/github source code
location of that project. If it is not up on one of those, any plans
to put it up? I really feel more web2py plugins/apps need to make use
of github/bitbucket/googlecode.
On Apr 11, 8:06 pm, Thadeus Burgess
I didn't try it, but perhaps the use of virtualenv should be considered :
http://pypi.python.org/pypi/virtualenv
(http://www.doughellmann.com/docs/virtualenvwrapper/ may be considered
too)...
-Mathieu
On Sun, Apr 11, 2010 at 20:45, muybay yabyum...@gmail.com wrote:
Yikes, I was a little to
Model
db.define_table('space',
Field('name'),
Field('slug', 'string'),
Field('description','text'),
Field('photo','upload'),
Controller
def add_space():
form='ola'#crud.create(db.space)
return dict(form=form)
def create():
name = request.vars.name
slug =
Hey everyone,
Is it possible to define custom auth methods and override the existing
methods with our own? For e.g. I am making an application that
authenticates against a remote website not the existing application.
So, I just want to authenticate remotely and if it is successful, just
get the
There is an entry regarding this in the book-
http://web2py.com/book/default/section/3/6
It's almost the same stuff..
On Apr 12, 3:54 pm, Francisco Costa m...@franciscocosta.com wrote:
Model
db.define_table('space',
Field('name'),
Field('slug', 'string'),
Hello lshbit, thank you for your answer, but i think my problem is a
bit different.
I'm using a custom form as you can see in add_space.html and I use a
photo = request.vars.photo to insert the data from the form in the
database
On Apr 12, 12:28 pm, Ishbir ishbi...@gmail.com wrote:
There is an
I found the solution reading the image uploading thread.
On Apr 12, 12:47 pm, Francisco Costa m...@franciscocosta.com wrote:
Hello lshbit, thank you for your answer, but i think my problem is a
bit different.
I'm using acustomformas you can see in add_space.html and I use a
photo =
Yes. Auth is a class. You can extend it
from gluon.tools import *
class MyAuth(Auth):
def requires_login(self): .
auth=MyAuth(globals(),db)
On Apr 12, 6:21 am, Ishbir ishbi...@gmail.com wrote:
Hey everyone,
Is it possible to define custom auth methods and override the existing
To correct myself, it seems the cron in web2py no longer uses the
filesystem timestamps, but cPickles timestamps from/to the lock file.
I'm not sure why Massimo changed it, but this *is* a bigger overhead
than it was previously (as it needs to do file locking and
cPickle.load() on every single
I have one application (called base) in which I define all the tables
for three other applications. In the three applications I use the same
db.py file. In these db.py files I set migrate=False on all tables.
One of these applications is a CMS, in which I enabled Authorization
and Authentication.
Could it have anything to do with defining a custom auth_user tabel?
auth.settings.table_user=db.define_table('auth_user',
Field('bedrijf', db.bedrijf, default='',
notnull=True,ondelete='CASCADE', writable=False, readable=False),
Field('first_name', length=128, default='', notnull=True),
What are the return values and stuff? Which is the method used for
logging the user in and out; also the method for registering, I want
it to be disabled. Possible?
On Apr 12, 5:59 pm, mdipierro mdipie...@cs.depaul.edu wrote:
Yes. Auth is a class. You can extend it
from gluon.tools import *
I will
On Apr 12, 3:26 am, waTR r...@devshell.org wrote:
Please post a link on that page to the bitbucket/github source code
location of that project. If it is not up on one of those, any plans
to put it up? I really feel more web2py plugins/apps need to make use
of
There a number of problems. comments below:
On Apr 12, 5:54 am, Francisco Costa m...@franciscocosta.com wrote:
Model
db.define_table('space',
Field('name'),
Field('slug', 'string'),
Field('description','text'),
Field('photo','upload'),
Controller
def add_space():
Because they os timestamp only can only tell you when a task has
started (or stopped, depending on when it was created) it does not
contain enough information to give you a time range (time and stop).
Cron needs to know when the previous crondance started and whether is
was completed or not. The
I think web2py is trying to create a table that is already there. If
you do not have data delete everything in databases/*
On Apr 12, 8:51 am, annet annet.verm...@gmail.com wrote:
I have one application (called base) in which I define all the tables
for three other applications. In the three
auth.settings.actions_disabled.append('register')
Auth has a pluggable mechanism for alternate authentication methods.
Look into the examples in gluon/contrib/login_methods
perhaps you want one of these?
On Apr 12, 9:52 am, Ishbir ishbi...@gmail.com wrote:
What are the return values and stuff?
In the online book, section 8.2: Authorization, the line of code that
shows how to enable basic authentication reads as:
auth.settings.allow_basic_authentication = True
This needs changed to:
auth.settings.allow_basic_login = True
Also, further down the page, there is a line that reads
I installed web2py 1.76.5 at webfaction using their latest custom
installer script. I am able to login to the admin application,
however, when I Upload and Install a packed application I get the
error: unable to install application init.
I hope one of you can help me solve this problem.
Kind
Massimo,
Yes, that would solve the problem, but I do have data in the auth_xxx
tables. I had hoped there would be a more robust solution. Isn't it
possible to define the auth_event, auth- group, auth_membership,
auth_permission and auth_user in db.py just like I define all the
other tables, and
I have been insistent with GAE but now I hit a point that its
limitations are choking my app.
So I am trying with a regular shared server that I own.
The situation is: web2py must run with fastCGI in subdir like
mydomain.com/web2py.
The recipe from the book seems no to apply to my case.
I´ve
should we replace in welcome
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
with
!DOCTYPE html
pros? cons?
--
To unsubscribe, reply using remove me as the subject.
+5 4 html5
--
Thadeus
On Mon, Apr 12, 2010 at 11:59 AM, mdipierro mdipie...@cs.depaul.edu wrote:
should we replace in welcome
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
with
!DOCTYPE html
pros? cons?
--
On Apr 12, 2010, at 9:59 AM, mdipierro wrote:
should we replace in welcome
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
with
!DOCTYPE html
pros? cons?
HTML5 is still a draft, not a standard. Validation tools
I put it in trunk for now. It requires very few changes to welcome.
Take a look.
On Apr 12, 12:10 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Apr 12, 2010, at 9:59 AM, mdipierro wrote:
should we replace in welcome
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://
ps. I am not suggesting we use the new html5 features yet (like
forms). Only the doctype (google does it) and make sure it w3c
validates.
On Apr 12, 12:10 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Apr 12, 2010, at 9:59 AM, mdipierro wrote:
should we replace in welcome
!DOCTYPE html
On Apr 12, 2010, at 10:23 AM, mdipierro wrote:
ps. I am not suggesting we use the new html5 features yet (like
forms). Only the doctype (google does it) and make sure it w3c
validates.
I'm not sure that Google is the best example to follow:
good point
On Apr 12, 12:33 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Apr 12, 2010, at 10:23 AM, mdipierro wrote:
ps. I am not suggesting we use the new html5 features yet (like
forms). Only the doctype (google does it) and make sure it w3c
validates.
I'm not sure that Google is
Why do we need the time range ? If the tasks are overlapping it's
their responsibility to handle that (I know this is arguable, but
that's how 'standard' cron works). Also, we can easily store two
timestamps (slightly hackish, but mtime and ctime can be set
separately), would have to check whether
Traceback (most recent call last):
File gluon/main.py, line 478, in wsgibase
File gluon/main.py, line 193, in serve_controller
File gluon/compileapp.py, line 435, in run_controller_in
TypeError: 'NoneType' object is not callable
I make a jquery ajax call to a url that calls the following
In 1.76.3, and probably others, model files can not end with a comment
line:
Traceback (most recent call last):
File D:\web2py\hg\gluon\restricted.py, line 171, in restricted
ccode = compile(code.replace('\r\n', '\n'), layer, 'exec')
File D:/web2py/hg/applications/mssqltest/models/db.py,
Since there are over 400 layouts on web2py.com/layouts, it might be a
good idea to assign tags to the layouts. The obvious benefit to this
would be the ability to then sort through the layouts by tags (colors,
ideal usage (blog, business, restaurant, etc), etc.) and maybe even
have some type of
I just wrote a blog post about setting up web2py for use with Google
App Engine:
http://opensourcebroadcasting.blogspot.com/2010/04/setting-up-web2py-for-use-with-google.html
I hope you find this useful. Any comments or feedback are welcome.
--
To unsubscribe, reply using remove me as the
TypeError: 'NoneType' object is not callable
usually is a object not instancied.
Verify your objects and put try around to help to debug or flow your code.
2010/4/12 topher.baron topher.ba...@gmail.com
Traceback (most recent call last):
File gluon/main.py, line 478, in wsgibase
File
I should have been more explicit in my original message.
I am receiving this error after the line 'return id'.
I was writing to a debug file to find out which line of the exception
was being thrown. I was able to write to a file in every part of the
function, so I think there is a problem with
On Apr 12, 2010, at 11:52 AM, DenesL wrote:
In 1.76.3, and probably others, model files can not end with a comment
line:
Traceback (most recent call last):
File D:\web2py\hg\gluon\restricted.py, line 171, in restricted
ccode = compile(code.replace('\r\n', '\n'), layer, 'exec')
File
On Apr 12, 2:15 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Apr 12, 2010, at 11:52 AM, DenesL wrote:
In 1.76.3, and probably others, model files can not end with a comment
line:
Traceback (most recent call last):
File D:\web2py\hg\gluon\restricted.py, line 171, in restricted
Hi,
I have read that database is readonly from the GAE production
server. Is there anyother way to access and edit the database?
Thanks
--
To unsubscribe, reply using remove me as the subject.
On Apr 12, 2:39 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Apr 12, 2010, at 12:17 PM, Yarko Tymciurak wrote:
On Apr 12, 2:15 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Apr 12, 2010, at 11:52 AM, DenesL wrote:
In 1.76.3, and probably others, model files can not end with a
On Apr 12, 2010, at 12:39 PM, Jonathan Lundell wrote:
On Apr 12, 2010, at 12:17 PM, Yarko Tymciurak wrote:
On Apr 12, 2:15 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Apr 12, 2010, at 11:52 AM, DenesL wrote:
In 1.76.3, and probably others, model files can not end with a comment
Running on Windows here.
@Yarko, yes, there seems to be an additional ingredient to this.
A prerequisite seems to be the existence of a for statement somewhere.
(!?!?).
--
To unsubscribe, reply using remove me as the subject.
On Apr 12, 3:00 pm, DenesL denes1...@yahoo.ca wrote:
Running on Windows here.
@Yarko, yes, there seems to be an additional ingredient to this.
A prerequisite seems to be the existence of a for statement somewhere.
(!?!?).
Denes - I'm assuming you've found a bug (perhaps a subtle one);
I find this surprisingly humorous
office_space_reference
Its always some mundane detail!
This isn't a mundane detail Michael!
/office_space_reference
--
Thadeus
On Mon, Apr 12, 2010 at 3:59 PM, DenesL denes1...@yahoo.ca wrote:
Very simple, in db.py:
db=SQLDB(...)
On Apr 12, 1:19 pm, AchipA attila.cs...@gmail.com wrote:
Why do we need the time range ? If the tasks are overlapping it's
their responsibility to handle that (I know this is arguable, but
that's how 'standard' cron works).
This is also as it works in newcron. The problem is that if for any
I have no idea but you can stop to my office tomorrow and we will post
the solution then.
Massimo
On Apr 12, 2:05 pm, topher.baron topher.ba...@gmail.com wrote:
I should have been more explicit in my original message.
I am receiving this error after the line 'return id'.
I was writing to a
On Apr 12, 3:59 pm, DenesL denes1...@yahoo.ca wrote:
Very simple, in db.py:
db=SQLDB(...)
db.define_table('person',
Field('name')
)
s=[]
for f in db.person.fields:
s.append(db.person[f].type)
#
will fail.
It is a stupid loop, but it illustrates the problem.
Thanks Denes - this
lucky, I'm jealous!
--
Thadeus
On Mon, Apr 12, 2010 at 4:32 PM, mdipierro mdipie...@cs.depaul.edu wrote:
I have no idea but you can stop to my office tomorrow and we will post
the solution then.
Massimo
On Apr 12, 2:05 pm, topher.baron topher.ba...@gmail.com wrote:
I should have been
On Apr 12, 5:09 pm, Yarko Tymciurak resultsinsoftw...@gmail.com
wrote:
On Apr 12, 3:59 pm, DenesL denes1...@yahoo.ca wrote:
Very simple, in db.py:
db=SQLDB(...)
db.define_table('person',
Field('name')
)
s=[]
for f in db.person.fields:
s.append(db.person[f].type)
#
will
At this point in time (all?) validators generate errors for bad
stuff as well as really good stuff because most validators are very
out of date.
As Jonathan pointed out right now Google shows about 40 errors.
Running www.Web2py.com shows about 14 errors at http://validator.w3.org/
I don't think
I can reproduce
tburg...@-dev:~/Applications/web2py$ python web2py.py -S pms -M
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2010
Version 1.76.5 (2010-03-20 12:12:17)
Database drivers available: SQLite3
Traceback (most recent call last):
File
Hi Annet,
I suspect this is the same issue I had when recently installing Web2py
using a script. Y
The fix is to manually start web2py once locally. Basically ssh into
your Webfaction account and become www-data (if this is the user you
use to run web2py) and start web2py once and then shut it
LOL
On Apr 12, 5:20 pm, Thadeus Burgess thade...@thadeusb.com wrote:
lucky, I'm jealous!
--
Thadeus
On Mon, Apr 12, 2010 at 4:32 PM, mdipierro mdipie...@cs.depaul.edu wrote:
I have no idea but you can stop to my office tomorrow and we will post
the solution then.
Massimo
On Apr 12,
opps! Here you are...
In a nutshell, start we2py once locally and that should take care of
the issue.
From a local terminal:
ssh u...@webfaction_account# include port info if you have
customized your ssh access
On the remote host:
sudo su www-data # become www-data user
Is this the script you used?
http://wiki.webfaction.com/wiki/Web2py-LatestSource
On 12 avr, 11:20, annet annet.verm...@gmail.com wrote:
I installed web2py 1.76.5 at webfaction using their latest custom
installer script. I am able to login to the admin application,
however, when I Upload and
If the above does not help I noticed this in the Web Faction forums as
well, posting a link to the script you used would allow for a more
definitive answer ; )
Cheers,
Chris
Problem Description:
http://forum.webfaction.com/viewtopic.php?id=4114
Solution :
me too!
On 12 avr, 18:20, Thadeus Burgess thade...@thadeusb.com wrote:
lucky, I'm jealous!
--
Thadeus
On Mon, Apr 12, 2010 at 4:32 PM, mdipierro mdipie...@cs.depaul.edu wrote:
I have no idea but you can stop to my office tomorrow and we will post
the solution then.
Massimo
On Apr
On Apr 12, 5:51 pm, Thadeus Burgess thade...@thadeusb.com wrote:
I can reproduce
tburg...@-dev:~/Applications/web2py$ python web2py.py -S pms -M
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2010
Version 1.76.5 (2010-03-20 12:12:17)
Database drivers available:
Hi,
I was just using the default db admin page in web2py and filled in
'db.participant.mtref 41' as a query for my participant table.
Surprisingly it returned (this is just part of the output on the
screen):
participant.id participant.mtref
22149 8
It returns 49 records, 9 of which
On Apr 12, 2010, at 4:25 PM, Yarko Tymciurak wrote:
Ok - not sure why I was not able to reproduce before: I put a
breakpoint on line 179 of restricted, and sure enough code, when it
had no ending newline, would cause an error.
This seems like it is a bug with the builtin, compile() ...
Sure that db.participant.mtref is not a string? What is the type?
On Apr 12, 6:33 pm, Sven svenstrin...@gmail.com wrote:
Hi,
I was just using the default db admin page in web2py and filled in
'db.participant.mtref 41' as a query for my participant table.
Surprisingly it returned (this is
On Apr 12, 6:36 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Apr 12, 2010, at 4:25 PM, Yarko Tymciurak wrote:
Ok - not sure why I was not able to reproduce before: I put a
breakpoint on line 179 of restricted, and sure enough code, when it
had no ending newline, would cause an
I agree.
There is a reason why we strip() models and controllers but I forgot
what that was.
I do not see a problem with stripping and adding a \n.
Massimo
On Apr 12, 10:33 pm, Yarko Tymciurak resultsinsoftw...@gmail.com
wrote:
On Apr 12, 6:36 pm, Jonathan Lundell jlund...@pobox.com wrote:
Technically Yarko's patch is for gluon/restricted.py but there are
because of web2py's ability to bytecode compile and cache code on gae
compileapp also would need to be fixed.
On Apr 12, 11:27 pm, mdipierro mdipie...@cs.depaul.edu wrote:
hmmm... on a second thought we do that already in
63 matches
Mail list logo