On Feb 6, 5:36 pm, Luther Goh Lu Feng elf...@yahoo.com wrote:
I am about to have a constructive discussion about web2py vs django
with a team member of mine before we decide whether to implement a
project. He is an expert with django while I consider myself an
intermediate web2py user.
A
On Feb 7, 6:31 am, Rupesh Pradhan rupeshkrprad...@gmail.com wrote:
Can anyone recommend a good python forum in google groups or elsewhere?
http://groups.google.com/group/comp.lang.python/topics
A couple question.
Running web2py on Windows Server 2008 R2, IIS7.5. Following the
official online book I got the site working with 127.0.0.1:8000. But I
want to add the website to IIS service so I can access it with
subdomain.mydomain.com (got other sites running this way already)
1. IIS
Sure Massimo, here it goes:
db.define_table(auth.settings.table_user_name,
Field('first_name', length=128, default=''),
Field('last_name', length=128, default=''),
Field('username', length=128, default=''),
Field('email', length=128, default='', unique=True),
Field('password',
In my opinion, the only advantages Django has are its admin interface
and the perks of a bigger and more established community, including
more stable documentation, better results when you google, a big
community on stack overflow, more name recognition (people won't
hesitate to let you do their
Hi!
I'd like to use Facebook's insights in web2py, but after adding the
meta tag for the domain to the layout.html,
the only thing I get is No admin data found..
Did anybody successfully added Insights to web2py?
Boštjan
On 6 February 2011 15:51, Massimo Di Pierro massimo.dipie...@gmail.comwrote:
The least comment in the issue thread says it is fixed after deleting
the pyc. Is that not correct?
Yes - fixed after dal.pyc was recreated with new version.
On Monday, February 7, 2011 3:48:22 AM UTC-5, Panupat wrote:
3. The online book mentioned options.py but I don't seem to have
that file anywhere in my web2py directory
http://web2py.com/book/default/chapter/11#Start-as-Windows-Service
You should find a file called 'options_std.py' in the
Traceback (most recent call last):
File /home/fkrause/Dev/web2py/gluon/restricted.py, line 188, in
restricted
exec ccode in environment
File /home/fkrause/Dev/web2py/applications/pyMantis/controllers/
default.py, line 101, in module
File /home/fkrause/Dev/web2py/gluon/globals.py, line
Hello,
Am using to plugin_datatable and i want to go to the update form
from displayed table.
E.x:
The table display a list of records ,Is there a way on clicking on a
record the update form is displayed?
Is there a way to do that ? if not , is there any idea can lead me to
the target?
It is all about JavasCRIPT.
To get selected row and perform an action i.e (javascript
window.location('') )
http://datatables.net/examples/api/select_single_row.html
http://datatables.net/examples/api/select_single_row.htmlTo show/hide
columns
http://datatables.net/examples/api/show_hide.html
i have a table with 3 fields:
title
start
end
For some reason i want to have the following; the title has to be
filled in always, but for the start and end field belongs a rule to
the fields; only 1 of the two fields can be filledin, They also can't
be either empty or filled in.
It's up to the
If I have a table and add a computed field - how do I update existing
records? I am speaking of tables with many thousands of records.
Regards
Johann
--
May grace and peace be yours in abundance through the full knowledge of God
and of Jesus our Lord! His divine power has given us everything
I have
db.define_table('article', Field('name'),,format='%(name)s')
db.define_table('lote', Field('name'),, Field('article',
db.article)
db.lote.article.requires = IS_IN_DB(db, db.article.id, '%(name)s')
And SQLFORM(db.lote,..,readonly=True) shows 'None' in field articulo
I think it is
I'm new to web2py and can't seem to find out how to create a composite
key. Specifically I'm trying to create the following tables:
db.define_table('volunteer',
Field('first_name', 'string', length=30, notnull=True),
Field('last_name', 'string', length=30, notnull=True),
Hi, I have this json service:
app/default.py
...
@service.json
def create(model, fields):
return dict(id=get_model_or_404(model).insert(**json.loads(fields)))
and I am trying to map this:
routes_in = (
('/service/$model/create', '/app/default/call/json/create?model=
$model'),
)
With this
Hi!
Check this thread:
http://groups.google.com/group/web2py/browse_thread/thread/caaf68de3fbc0baf/b9812b04ac70ba8b?lnk=gstq=Multiple+constraint#b9812b04ac70ba8b
In summary, you want to create a computed combined field, and require
that it is unique. A bit odd, but that's what you need to be able
I did it before, something like:
###
rows = db(db.table).select()
for row in rows:
row.update_record(mycomputedfield=lambda r:function(r))
###
where function(r) is the same function I used for
Thanks!
Regards
Johann
--
May grace and peace be yours in abundance through the full knowledge of God
and of Jesus our Lord! His divine power has given us everything we need for
life and godliness through the full knowledge of the one who called us by
his own glory and excellence.
Traceback (most recent call last):
File C:\web2py\gluon\restricted.py, line 188, in restricted
exec ccode in environment
File C:\web2py\applications\beta/views\default/user.html, line
136, in module
TypeError: 'str' object does not support item assignment
Posting this because it started
I just found a better way, you can point to the defined function for
compute.
rows = db(db.table).select()
for row in rows:
row.update_record( mycomputedfield =
db.mytable.mycomputefield.compute(row) )
###
I made a test now
If you are in mode 3 (code allowed) you can do ``{{=response.title}}
``:template
On Feb 7, 12:29 am, Plumo richar...@gmail.com wrote:
I also made this change to set the page title.
How can I access the page title from within a wiki page?
response.title is empty
http://msdn.microsoft.com/en-us/library/ms178195.aspx
You cannot directly delete a cookie on a user's computer. However,
you can direct the user's browser to delete the cookie by setting the
cookie's expiration date to a past date. The next time a user makes a
request to a page within the domain
I'm trying to connect to mysql, with trunk.
global name 'driver' is not defined
Martin.
--
Pablo Martín Mulone (mar...@tecnodoc.com.ar)
http://www.tecnodoc.com.ar/
Paraná, Entre Ríos, Argentina (CP 3100).
My blog: http://martin.tecnodoc.com.ar
Expert4Solution Profile:
I am very puzzled.
In gluon/dal.py there is this line:
field.length = min(field.length,self._db and
self._db._adapter.maxcharlength or INFINITY)
can you print field.length before and field.length after this
statement?
Massimo
On Feb 7, 3:06 am, Bernardo estem...@gmail.com wrote:
Sure
Looks like you have a custom auth_user table that misses the field
reset_password_key
Massimo
On Feb 7, 5:29 am, selecta gr...@delarue-berlin.de wrote:
Traceback (most recent call last):
File /home/fkrause/Dev/web2py/gluon/restricted.py, line 188, in
restricted
exec ccode in
first of all start and end and sql keywords you should choose another
name.
I suggest
db.define_table('event',Field('title'),Field('start_time'),Field('end_time'))
def exclusive(form):
if form.vars.start_time and form.vars.end_time:
form.errors.end_time = 'you already filled start
Should be fixed in trunk already. Try the nightly built.
On Feb 7, 4:46 am, Juan Antonio juanr...@gmail.com wrote:
I have
db.define_table('article', Field('name'),,format='%(name)s')
db.define_table('lote', Field('name'),, Field('article',
db.article)
db.lote.article.requires =
Done.
On 6 fév, 23:10, Massimo Di Pierro massimo.dipie...@gmail.com wrote:
can you please open an issue in googlecode?
On Feb 6, 7:06 pm, ionel ionelanton...@gmail.com wrote:
Hello,
In the controller I have a custom form that contains a password:
form = SQLFORM.factory(Field('afield',
I saw many explanations about web2py's built-in security, but does it
have some implemented security against cookie manipulation and
stealing cookies attacks? -For cases when the attacker is the user,
and when the attacker is not the user. If not, can someone provide
some recommendations for a
auth.settings.long_expiration = 3600*30 # one month
maybe 3600*30*24?
Hello,
I am happy to see that writeable false icons have been added for boolean
field in crud.read...
I am wondering to know if I should expected the same for crud.select??
Now I am having the unwriteable icons in crud.read, but not in crud.select
Thank you.
Richard
And one more question, how to change session ID after user login?
On Feb 7, 5:13 pm, devGS vitali@geniestills.com wrote:
I saw many explanations about web2py's built-in security, but does it
have some implemented security against cookie manipulation and
stealing cookies attacks? -For cases
Neither did I.
On Sat, Feb 5, 2011 at 10:30 AM, Vasile Ermicioi elff...@gmail.com wrote:
never used python2.4
Gohead!
Richard
On Mon, Feb 7, 2011 at 10:30 AM, Vinicius Assef vinicius...@gmail.comwrote:
Neither did I.
On Sat, Feb 5, 2011 at 10:30 AM, Vasile Ermicioi elff...@gmail.com
wrote:
never used python2.4
+1 for dropping support for python 2.4..
Does anybody know of a hosting company that will run web2py in a cloud
hosting environment?
On Feb 7, 2011, at 6:32 AM, Martín Mulone wrote:
I'm trying to connect to mysql, with trunk.
global name 'driver' is not defined
On dal.py line 1462, try changing driver to self.driver.
I am running in dotcloud (but it is in beta)
http://www.web2py.dotcloud.com/
http://www.web2py.dotcloud.com/also Pydra is announcing they will run
web2py very soon.
For now, I know only Google App Engine and Amazon ECM running well on a
cloud.
Bruno Rocha
http://about.me/rochacbruno/bio
How to the plan?
$$$
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*
2011/2/7 Bruno Rocha rochacbr...@gmail.com
I am running in dotcloud (but it is in beta)
http://www.web2py.dotcloud.com/
http://www.web2py.dotcloud.com/also Pydra is
affirmative, this is the bug.
Line 1462 . Have to be self.driver instead of driver.
2011/2/7 Jonathan Lundell jlund...@pobox.com
On Feb 7, 2011, at 6:32 AM, Martín Mulone wrote:
I'm trying to connect to mysql, with trunk.
global name 'driver' is not defined
On dal.py line 1462, try
On Feb 6, 2011, at 4:47 PM, Gabriel wrote:
Hi, I have this json service:
app/default.py
...
@service.json
def create(model, fields):
return dict(id=get_model_or_404(model).insert(**json.loads(fields)))
and I am trying to map this:
routes_in = (
('/service/$model/create',
We do not have a simple mechanism yet to do it. I can add it, please
open an issue on google code.
On Feb 7, 9:28 am, devGS vitali@geniestills.com wrote:
And one more question, how to change session ID after user login?
On Feb 7, 5:13 pm, devGS vitali@geniestills.com wrote:
I
Where is the prices on hosting?
On Feb 7, 11:10 am, Bruno Rocha rochacbr...@gmail.com wrote:
I am running in dotcloud (but it is in beta)
http://www.web2py.dotcloud.com/
http://www.web2py.dotcloud.com/also Pydra is announcing they will run
web2py very soon.
For now, I know only Google
oops. sorry. Will fix it tonight.
On Feb 7, 10:17 am, Martín Mulone mulone.mar...@gmail.com wrote:
affirmative, this is the bug.
Line 1462 . Have to be self.driver instead of driver.
2011/2/7 Jonathan Lundell jlund...@pobox.com
On Feb 7, 2011, at 6:32 AM, Martín Mulone wrote:
I'm
You can run on Rackspace cloud as well;
On 2/7/11 11:32 AM, stargate wrote:
Where is the prices on hosting?
On Feb 7, 11:10 am, Bruno Rocharochacbr...@gmail.com wrote:
I am running in dotcloud (but it is in beta)
http://www.web2py.dotcloud.com/
http://www.web2py.dotcloud.com/also Pydra
Thanks for your reply, I will do so.
On Feb 7, 6:31 pm, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
We do not have a simple mechanism yet to do it. I can add it, please
open an issue on google code.
On Feb 7, 9:28 am, devGS vitali@geniestills.com wrote:
And one more
Deploy Web2py on Amazon elastic computing infrastructure:
http://www.scribd.com/doc/26436821/Howto-deploy-Web2py-on-amazon-Ec2
You can get a free instance for a year: http://aws.amazon.com/free/
On Feb 8, 12:50 am, stargate kyoukh...@gmail.com wrote:
Does anybody know of a hosting company that
Hi Jonathan. It was a typo. It'd be service instead of app:
curl --data-urlencode 'fields={name: test}'
http://localhost:8000/service/person/create;
Thanks anyway.
On Mon, Feb 7, 2011 at 1:21 PM, Jonathan Lundell jlund...@pobox.com wrote:
On Feb 6, 2011, at 4:47 PM, Gabriel wrote:
Hi, I have
i suspect there is, but i have not spent the time to make it work yet. i
assume you are using google accounts on GAE for authorization?
yes you have to set your GAE app on a subdomain. but that is the *only*
supported configuration that i know of. google does not allow mapping of
naked domains as they call it to a GAE app.
about the sample entries: you must have some code (probably in one of your
models files) that adds sample entries when an empty database is detected.
not sure though without looking at the application.
your view error is provided in the traceback (though perhaps cryptic).
something in
Hello,
, is missing :
db.define_table('dog',
Field http://web2py.com/book/default/docstring/Field('small_image',
'upload'), # here
Field http://web2py.com/book/default/docstring/Field('large_image',
'upload'))
In this page :
http://web2py.com/book/default/chapter/08?search=shell
Search
Yes, we do (Hen's Teeth Network). Web2py is running great using
mod_wsgi in our Cirrus plans. I have not tried to make it work in a
Stratus plan, yet. See http://www.hens-teeth.net/html/hosting/ for
details.
For proof, visit http://web2py.hens-teeth.net/ which is an internal
RD site. We have
Thanks.
On Feb 7, 9:28 am, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
http://msdn.microsoft.com/en-us/library/ms178195.aspx
You cannot directly delete a cookie on a user's computer. However,
you can direct the user's browser to delete the cookie by setting the
cookie's expiration
On Feb 7, 2011, at 8:49 AM, Gabriel Carmona wrote:
Hi Jonathan. It was a typo. It'd be service instead of app:
curl --data-urlencode 'fields={name: test}'
http://localhost:8000/service/person/create;
Thanks anyway.
The URL rewrite logic isn't handling the case of appending a query
I'm using Version 1.91.6 (2011-01-03 17:55:14)
On Mon, Feb 7, 2011 at 2:50 PM, Jonathan Lundell jlund...@pobox.com wrote:
On Feb 7, 2011, at 8:49 AM, Gabriel Carmona wrote:
Hi Jonathan. It was a typo. It'd be service instead of app:
curl --data-urlencode 'fields={name: test}'
Why is this line
Field('password', 'password', '''length=512, ''', readable=False,
label='Password'),
should be
Field('password', 'password', length=512, readable=False,
label='Password'),
Thanks for the feedback everyone. I am happy to hear balanced view
points. For the record, we have decided to go along with django for
now, doing paired programming.
My current impression of django is that it does seem much more verbose
than web2py. I also miss the fact that I do not need to
Nobody? :-/
On Sat, Feb 5, 2011 at 12:08 PM, Tito Garrido titogarr...@gmail.com wrote:
Hi Folks,
Is there a way to configure the error ticket screen to have a good looking?
Today it just appears a white screen with the ticket number and a link...
also, can I change the invalid function
On Feb 7, 2011, at 10:02 AM, Gabriel Carmona wrote:
I'm using Version 1.91.6 (2011-01-03 17:55:14)
Thanks. I've got a working patch that hopefully we'll have time to get into
1.92.
In the current version, you'll need to avoid rewrites that add a query string;
that's broken.
On Mon, Feb
I was wondering how I can execute a custom action on verify_email
I have an external system that I want to notify once a user has
confirmed their email address;
Thanks.
Ok, now I'm using this code:
for r in [request, response]:
if r.cookies.has_key('user'):
r.cookies['user']['expires'] =
datetime.datetime.strftime(datetime.datetime(2011,1,1,0,0), %a, %d-%b-
%Y %H:%M:%S GMT)
print 'remove %s user cookie' % ('request' if r ==
@Luther Goh Lu Feng : Keep us informed. ;)
On Mon, Feb 7, 2011 at 7:37 PM, Luther Goh Lu Feng elf...@yahoo.com wrote:
Thanks for the feedback everyone. I am happy to hear balanced view
points. For the record, we have decided to go along with django for
now, doing paired programming.
My
You can define a better HTML for error ticket message in routes.py:
http://code.google.com/p/web2py/source/browse/routes.example.py#73
2011/2/7 Tito Garrido titogarr...@gmail.com
Nobody? :-/
On Sat, Feb 5, 2011 at 12:08 PM, Tito Garrido titogarr...@gmail.comwrote:
Hi Folks,
Is there a
Actually, I also have a friend using Rails who wants to do pair
programming with me so that both of us can do a thorough and objective
comparison. Need to squeeze out time for that . There are too many
things to learn in web and mobile development .
Of course, I will still continue to use web2py
On Monday, February 7, 2011 11:32:28 AM UTC-5, stargate wrote:
Where is the prices on hosting?
They're still in beta and haven't finalized their pricing yet:
http://docs.dotcloud.com/static/faq/#what-s-your-pricing
Other new options specifically for Python/WSGI hosting still in beta are:
Dear Massimo,
I've been busy today. I'll post it as soon as possible.
thanks for your help,
Bernardo
2011/2/7 Massimo Di Pierro massimo.dipie...@gmail.com
I am very puzzled.
In gluon/dal.py there is this line:
field.length = min(field.length,self._db and
self._db._adapter.maxcharlength
Dear all,
is there a way to use a default file in an upload field? Something
like:
Field('whatever', 'upload', 'default=...')
Which one is the best way to do this?
thanks a lot for your help,
Bernardo
Today all of a sudden Google Chrome (9.0.597.84-r72991) hung loading a
simple web2py page. It couldn't even render the welcome page any more. Even
a blank new profile didn't work. It just hung and reported a crashed web
page after a while (the sad dialog).
Then I tried chromium - same behaviour,
If you have an uploaded file (with name given by web2py) you can set
default='' its filename without path.
Did you try it?
On Feb 7, 1:40 pm, Bernardo estem...@gmail.com wrote:
Dear all,
is there a way to use a default file in an upload field? Something
like:
Field('whatever', 'upload',
I am using 9.0.597.84 beta on Mac with WebGL on and everything works
for me. Which os are you using?
Massimo
On Feb 7, 2:40 pm, Bernd Rothert roth...@googlemail.com wrote:
Today all of a sudden Google Chrome (9.0.597.84-r72991) hung loading a
simple web2py page. It couldn't even render the
Is there an example of how to use onaccept handler?
I tried
auth.settings.verify_email_onaccept = lambda f:_create_account(f)
def _create_account(f):
session.account = f
return
I tried on my index page to display
{{= session.account }}
But I dont think it worked.
Thanks.
On 7 Feb., 21:50, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
I am using 9.0.597.84 beta on Mac with WebGL on and everything works
for me. Which os are you using?
It's Chrome on Ubuntu 10.10 (Maverick Meerkat)! Bug reports refer to
Windows XP as well. Maybe it depends on the graphics
Thank you! The sample table is populated by db_wizard_populate.py
module. For those who had similar issue: comment all the lines in the
above file on deployment.
Your pointed me to the line that causes the view error: in user.html-
the default one, there is a line with
So if using GAE on a subdomain for a homepage would use redirect users
to the subdomain? I think i am even more confused now1
On Feb 7, 4:57 pm, howesc how...@umich.edu wrote:
yes you have to set your GAE app on a subdomain. but that is the *only*
supported configuration that i know of.
http://stackoverflow.com/questions/tagged/python
If you are after a forum written in Python: http://pyforum.org/
yes mode 3, but as mentioned response.title is empty (None).
Where do I need to define response.title for the plugin to use it? I tried
models/menu.py and controllers/plugin_wiki.py without success.
views/layout.html is able to use response.title.
I went to remove wsgihandler.py to check the logs and reloaded the
page, but the timeout issue wasn't showing up. I made some changes to
the html files to make sure that the changes made it online, and it
loaded quickly.
Maybe the issue was on the GAE side? Either way, it looks like it's
gone.
http://www.reddit.com/r/Python/comments/fh4by/special_cases_arent_special_enough_to_break_the/
You can do that in meta-code page,
create a wiki page called meta-code, this code will be executed before the
execution of any page.
2011/2/7 Plumo richar...@gmail.com
yes mode 3, but as mentioned response.title is empty (None).
Where do I need to define response.title for the plugin to use
Massimo, any plans to attend?
For those of us who cannot understand the point of this please have an
indication as to the 'rules' are that are being broken?
Just curious. If the answer would be too verbose and technical,
please just put a note saying something like 'for advanced pythonistas
only'.
Thanks. D
I cannot make, I have another conference at the same time.
On Feb 7, 4:50 pm, carlo syseng...@gmail.com wrote:
Massimo, any plans to attend?
PS. I would be great is somebody else could make it and give a talk.
On Feb 7, 4:50 pm, carlo syseng...@gmail.com wrote:
Massimo, any plans to attend?
I think this is cool
http://morepypy.blogspot.com/2011/02/pypy-faster-than-c-on-carefully-crafted.html
that would require an additional database request and replicating the logic
from controllers/plugin_wiki.py - is there no way to reuse the data from the
controller?
Ok I did it. Thanks. D
On Feb 7, 5:17 pm, Richard Vézina ml.richard.vez...@gmail.com wrote:
Hello,
, is missing :
db.define_table('dog',
Field http://web2py.com/book/default/docstring/Field('small_image',
'upload'), # here
Field
here's what i do:
in db.py:
auth.settings.verify_email_onaccept = lambda form: __afterVerify(form)
def __afterVerify(form):
# any custom actions you want, including calling funtions in
either the model or the controller
# in my case, i log in my user.
logInUser(db.auth_user[form.id])
Yes, I believe you're right, so I've changed it.
Thanks, D
On Feb 7, 3:14 pm, LightOfMooN vladsale...@yandex.ru wrote:
auth.settings.long_expiration = 3600*30 # one month
maybe 3600*30*24?
No rule is being broken. The guy just does not understand what the
code is for. I posted my response there.
On Feb 7, 5:05 pm, villas villa...@gmail.com wrote:
For those of us who cannot understand the point of this please have an
indication as to the 'rules' are that are being broken?
Just
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi all,
I'm trying to use plugin_wiki as my first approach to having a
functional web2py site and using it to publish easily some info. I tried
also Instant Press but it doesn't installed because a time out error a
got no feedback on the Spanish or
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi again,
I have an error:
El 07/02/11 19:58, Offray Vladimir Luna Cárdenas escribió:
[]
---
default_application = 'welcome'# ordinarily set in base routes.py
default_controller = 'plugin_wiki' # ordinarily set in app-specific
I saw that object 'settings' is defined at 0.py, but I didn't see any
usage of 'settings'. For instance, in db.py, instead of reusing the
0.py's 'settings', the stings are redefined, even though realize about
some modules that use 'settings' instead of db.py set variables. Can
this point be
How can I insert data from my controller to layout.html? From what I can
tell, layout.html does not have access to the dict returned from a
controller. Do I need to or can I put it in globals, response, flash?
It seems like a block could work except that it requires that the
{{include}} be
0.py is not a web2py file. It is created by the wizard. If a variable
is not used is a bug in the wizard.
Massimo
On Feb 7, 7:21 pm, devGS vitali@geniestills.com wrote:
I saw that object 'settings' is defined at 0.py, but I didn't see any
usage of 'settings'. For instance, in db.py,
But what exactly is his complaint? Would it have hurt for him to
actually, you know, explain?
---
Lars
It's a nice evidence, that Web2py does matter.
Otherwise the idiots won't care to bark against this splendid
technology.
On Feb 8, 12:15 am, Anthony abasta...@gmail.com wrote:
http://www.reddit.com/r/Python/comments/fh4by/special_cases_arent_spe...
Any ideas?
Yet again, I am mistaken. It does indeed look like templates all get jammed
together before the code is executed. I was getting some unexpected errors
which caused me to wonder.
1 - 100 of 107 matches
Mail list logo