To serve images statically:
Field('image', 'upload', uploadfolder=request.folder+'static/uploads')
img src={{=URL('static','uploads', args=item.image)}}
If there's a workaround other than modifying the core file, I'd like to know
as I'm also facing the same issue.
Any updates?
as a workaround I am using response.js and setting the correct value of
checkbox from js.
Hi Guys,
I've tried several GTD programs and cannot find any other better than
this one. Of course, as any other program, it is not perfect. For
example it could be slow on netbooks... and I guess than on a cell
phone it could be much more slower (I've never tried) and it leaks an
UI for small
sorry guys I've posted on the wrong group !
On Apr 25, 9:02 am, sebastian sebastianov...@gmail.com wrote:
Hi Guys,
I've tried several GTD programs and cannot find any other better than
this one. Of course, as any other program, it is not perfect. For
example it could be slow on
We have similar login/register forms at Radbox (http://radbox.me ). Both
register and login forms are default provided by web2py enclosed by div and
styled using css on enclosing div.
e.g.
div class=authform style=display: none;
{{=auth.login()}}
this is the error im gettin when i run janrain after i have entered my
username and password
Traceback (most recent call last):
.
.
.
File /usr/lib/python2.6/urllib2.py, line 391, in open
response = self._open(req, data)
File /usr/lib/python2.6/urllib2.py, line 409, in _open
Hello web2py users,
I'm working on an application that involves image uploads to be
deployed on the Google App Engine.
I have a table that looks like:
db.define_table('submission',
Field('image', 'upload', uploadfield=myblob),
Field('myblob', 'blob'))
and a form like this:
form =
Hi,
Is there a way to select a range of ids from database ?
Actually I use db(db.articles.id20).select(limitby=(20, 30))
But I found the SQL keyword 'between' that permits to select a range
of data between two values.
Thanks
... autos.out='T' and autos.out='F' ... ?
On Apr 25, 12:34 am, cyber vlad.mul...@gmail.com wrote:
I used to use construction like this:
rows_count=db(db.autos.out=='T').count(), but my real query consists
of many conditions. So I decided to use executesql.
By the way, I wrote the code:
With db._lastsql I saw that limitby apply an offset, sorry for this
question
On Apr 25, 1:18 pm, Alexandre Strzelewicz
strzelewicz.alexan...@gmail.com wrote:
Hi,
Is there a way to select a range of ids from database ?
Actually I use db(db.articles.id20).select(limitby=(20, 30))
But I found
do
form = SQLFORM.factory(
Field('image',
'upload',uploadfield=os.path.join(request.folder,'uploads'),
requires=IS_UPLOAD_FILENAME(extension='jpg|jpeg|bmp|png')),
)
On Apr 25, 2:46 am, krmboya krmb...@gmail.com wrote:
Hello web2py users,
I'm working on an application that
So the solution to multiple forms using LOAD is to define a formname... I
guess...
right this is the solution for multiple forms (for all pages, not just
LOADed pages)
this patch fixes something different:
ONE form, multiple submit buttons
Thanks a bunch, Massimo.
On Apr 25, 3:25 pm, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
do
form = SQLFORM.factory(
Field('image',
'upload',uploadfield=os.path.join(request.folder,'uploads'),
requires=IS_UPLOAD_FILENAME(extension='jpg|jpeg|bmp|png')),
)
On Apr
On 25 abr, 09:18, Alexandre Strzelewicz
strzelewicz.alexan...@gmail.com wrote:
Hi,
Is there a way to select a range of ids from database ?
Actually I use db(db.articles.id20).select(limitby=(20, 30))
But I found the SQL keyword 'between' that permits to select a range
of data between two
greeting ..
Problems in implementing cas
at home everything works fine.
but today I just get to work and need to show
the project to my boss ..
not working properly ..
after you login .. cas IP redirects the client machine, instead of the IP
of the site thatmakes the login request ..
please
sorry for the image are very small and do not show the problem
The following is better
http://imgur.com/kcU7Y
http://imgur.com/QiGUX
Hello everybody,
web2py 1.95.1 is out with lots of improvements and bug fixes:
## 1.95.1
- Google MySQL support (experimental)
- pip support, thanks lifeeth
- better setup_exe.py, thanks meredyk
- importved pyfpdf
- domain check in email_auth.py, thanks Gyuris
- added change_password_onvalidation
On Mon, Apr 25, 2011 at 3:28 AM, Ab... abhinav.s...@radbox.me wrote:
If there's a workaround other than modifying the core file, I'd like to
know as I'm also facing the same issue.
You can pass your own labels, and the colon will be removed
formm = SQLFORM(db.yourtable, labels=
great job, massimo n the others, i've download n test it. thank you so much.
On Mon, Apr 25, 2011 at 9:06 PM, Massimo Di Pierro
mdipie...@cs.depaul.eduwrote:
Hello everybody,
web2py 1.95.1 is out with lots of improvements and bug fixes:
## 1.95.1
- Google MySQL support (experimental)
- pip
Also available at the cheese shop
To install:
pip install web2py
To upgrade:
pip install web2py --upgrade
--
Praneeth
IRC: lifeeth
On Mon, Apr 25, 2011 at 7:49 PM, Stifan Kristi
steve.van.chris...@gmail.com wrote:
great job, massimo n the others, i've download n test it. thank you so
hi,
thank you Massimo,
please tell us more about Google MySQL
does it support GROUP BY and JOINs ?
I need to know that for a library I am working on...
I cannot tell you much because Google has not yet released the service
publicly. I can tell you I have tested it (they gave me early access
for the test) and it supports normal mysql syntax including GROUP BY,
JOINs, transactions and web2py automatic migrations.
We should just call it GoogleSQL
If you want to use the default labels specified in the table definition, you
can manually remove the colons from the labels via the server-side DOM (see
http://web2py.com/book/default/chapter/05#Server-side-DOM-and-Parsing).
Specifically, SQLFORM constructs each label as follows:
I was wondering if in future versions, will have support for models and
controllers in subfolders. For example:
+-models
+--model01
+model01.py
+--model02.py
+--model03.py
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*
2011/4/25
this has been discussed and I support it. We just have to agree on the
exact syntax since we want to allow dependencies in non-alphabetical
order and conditional execution.
On Apr 25, 10:01 am, Gilson Filho cont...@gilsondev.com wrote:
I was wondering if in future versions, will have support for
On Apr 25, 1:05 am, pbreit pbreitenb...@gmail.com wrote:
To serve images statically:
Field('image', 'upload', uploadfolder=request.folder+'static/uploads')
img src={{=URL('static','uploads', args=item.image)}}
Can please go into the book?
Thanks.
- importved pyfpdf
Is there any more info about the improved pyfpdf?
Kenneth
- domain check in email_auth.py, thanks Gyuris
- added change_password_onvalidation and change_password_onaccept
- DAL(...,migrate_enabled=True)
- login_methods/loginza.py, thanks Vladimir
- bpython shell support,
On Mon, Apr 25, 2011 at 3:05 AM, pbreit pbreitenb...@gmail.com wrote:
To serve images statically:
Field('image', 'upload', uploadfolder=request.folder+'static/uploads')
img src={{=URL('static','uploads', args=item.image)}}
I guess it only bypass teh download function, which has a little
The static folder needs to be configured already. If youre iamges don't need
any processing (auth) it seems a better way to go.
i am using janrain which basically allows third party authentication
in web2py and i have a problem with gettin the user information when
soemone signs in... first of all i have noticed that in windows
janrain is not that effective as u have to manipulate a token but in
linux it works fine
Dear Friends,
As you may recall, I wrote before mentioning that I am working on a
project for a databases class (an e-store). We were successful at
implementing the model and some of the functions and views. However,
we are stuck trying to figure out how to implement the following types
of
Hi All,
I'm making a website for elections,
so i have table for Governorates definition, then region definition
related to Governorate
also i created a table for nominees which is related to each region
and each region can have more than one nominee.
also i have a table for voters who is living
Look up the pyfpdf project on google code. I upgraded on March 30.
On Apr 25, 10:35 am, Kenneth Lundström kenneth.t.lundst...@gmail.com
wrote:
- importved pyfpdf
Is there any more info about the improved pyfpdf?
Kenneth
- domain check in email_auth.py, thanks Gyuris
- added
Did you see this?
http://vimeo.com/20768689
The functionality you need is implemented as an example via ajax.
Massimo
On Apr 25, 11:46 am, JoshC joshua.aaron.ca...@gmail.com wrote:
Dear Friends,
As you may recall, I wrote before mentioning that I am working on a
project for a databases
I would do something like this:
db.define_table('nominee',Field('name'),Field('region_id',db.Regions))
def get_nominees():
region_id = request.vars.region_id
return TAG[''](*[OPTION(r.name,_value=r.id) for r in
db(db.nominee.region_id=region_id).select()])
def get_form():
script=
Maybe try it like this:
A(' Add to cart', _href=URL('add_to_cart', vars={'item': i.item, 'page':
request.function}))
A bit of stylistic advice:
toys = db(db...
return dict(toys=toys)
{{for toy in toys:}}
{{=toy.name}}
etc.
nice share, massimo, i want to learn it, but your video is too fast, i've
already tried to pause it many times, but it seems i lost some part, could
you share the code please?
thank you so much in advance
On Tue, Apr 26, 2011 at 12:15 AM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
And I just noticed that you are going to run into some intricacy with how to
implement the quantity selector.
You'll either need to create a form for each toy (in which case each toy
will also have its own add to cart button) or you will have to identify
each quantity form field which might
Hi every one! I have a web2py app running on a windows server, I'm
using MySQL trough XAMPP 1.7.3 (MYSQL Version = 5.1.41), and
everything works more than fine.
But today I made an upgrade to XAMPP 1.7.4 (MYSQL Version = 5.5.8) and
nothing works!
At the first time I run the web2py app It shows
I have databases/* in my .hgignore file but I was wondering how I might keep
track of schema changes in version control. Should I only ignore *.sqlite?
In gluon/sqlhtml.py
Line 944:
It reads raise RuntimeError, 'formsyle not supported'
instead of raise RuntimeError, 'formstyle not supported'
This error is the one raise whenever an unsupported value is passed to
the formstyle argument of the SQLFORM function.
Hi there,
I'm triying to deploy a W2P project based on Wiki_Plugin. I just
installed the plugin, I did some tests using sqlite, then I wanted to
deploy the code over my server based on PostgreSQL, I did the same and
it worked with migrations set to True, but wiki plugins has a comment
where I
BTW I tried with migration set to False locally with SqLite and it
worked without issues.
Oscar.
On 25 abr, 16:32, Oscar oscar.m...@gmail.com wrote:
Hi there,
I'm triying to deploy a W2P project based on Wiki_Plugin. I just
installed the plugin, I did some tests using sqlite, then I wanted
Sorry again,
The error is: ProgrammingError: relation auth_user already exists
Oscar.
On 25 abr, 16:34, Oscar oscar.m...@gmail.com wrote:
BTW I tried with migration set to False locally with SqLite and it
worked without issues.
Oscar.
On 25 abr, 16:32, Oscar oscar.m...@gmail.com wrote:
looking at the generated form from my database using SQLFORM(). I
would like to know the meaning of w2p_fl, w2p_fp and w2p_fc.
I´m using pyfpdf to create bills and would like to include a barcode.
The barcode should be in Code 128C and the Interleaved 2of5 NT that
pyfpdf is using does not work.
I found this site http://barcode128.blogspot.com/ that let you create
Code 128 barcodes with PIL. I succeeded in printing a
http://martin.tecnodoc.com.ar/default/post/2011/04/25/16_web2py-powerpack-on-dotcloud
--
http://martin.tecnodoc.com.ar
Hi Jose,
Here is the problem:
File /usr/home/jose/web2py/gluon/shell.py, line 210, in run
bpython.embed(locals_=_env)
I don't know the problem but it has nothing to do with the new
importer. The old importer has the same behavior.
On 23 avr, 22:54, Jose jjac...@gmail.com wrote:
Hi
I
Hi!
On my way to learning Web2Py, I was wondering to know if the template
engine provided by Web2Py allow executing some python code.
I plan to use it as a wildcard website for my users and they will
have the possibility to change the template of their website.
With that in mind, it's important
Hello,
I am writing this message to know if some users are still experiencing
problems with the new importer available in the trunk version.
Please tell us if everything is OK or you are having problems.
Thank you.
I just added to trunk...
span id=therequantity/span
{{=A('add
product',callback=URL('add_product',args='id'),target='there))}}
On Apr 25, 2:53 pm, pbreit pbreitenb...@gmail.com wrote:
And I just noticed that you are going to run into some intricacy with how to
implement the quantity selector.
What is the error exactly?
On Apr 25, 3:01 pm, Ialejandro ialejandr...@gmail.com wrote:
Hi every one! I have a web2py app running on a windows server, I'm
using MySQL trough XAMPP 1.7.3 (MYSQL Version = 5.1.41), and
everything works more than fine.
But today I made an upgrade to XAMPP 1.7.4
yes
On Apr 25, 3:03 pm, pbreit pbreitenb...@gmail.com wrote:
I have databases/* in my .hgignore file but I was wondering how I might keep
track of schema changes in version control. Should I only ignore *.sqlite?
if you want to upload files larger than 1 mb, take a look at this slice:
http://web2pyslices.com/main/slices/take_slice/63
On a new database you should run at least once with migrate=True and
then you can set migrate=False and it should work.
If you are getting the errors below I assume you have migrate=True and
missing database/*.table files. You must have deleted them.
In this case you must run with
On Monday, April 25, 2011 5:02:54 PM UTC-4, Pystar wrote:
looking at the generated form from my database using SQLFORM(). I
would like to know the meaning of w2p_fl, w2p_fp and w2p_fc.
Looks like w2p_fl and w2p_fc are the CSS classes of the TD elements for the
field label and field
I am going to post a link on reddit. :-)
On Apr 25, 4:21 pm, Martín Mulone mulone.mar...@gmail.com wrote:
http://martin.tecnodoc.com.ar/default/post/2011/04/25/16_web2py-power...
--
http://martin.tecnodoc.com.ar
Interesting. Possible to support a post with vars?
If you put the customizable html files under /static folder, the users will
not be able to run any Python command.
Are you to giving access to views files for users to edit? or just store CSS
and some html in a DB to build the pages?
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
On
On click it always submits via POST but the vars are passed via
URL(,vars=...) as GET vars. For more complex scenarions it may be
better be more explicit.
On Apr 25, 5:37 pm, pbreit pbreitenb...@gmail.com wrote:
Interesting. Possible to support a post with vars?
CLEANUP() seems to be removing more characters than the Book would suggest.
It just removes all characters whose decimal ASCII codes are not in the
list [10, 13, 32-127]
However the regex is '[^ \n\w]' which I think is more like alphanumeric plus
underscore. Is that right?
Hi Massimo,
I have seen migrate=T/F, but not migrate_enabled=T/F
Is this new, or something PostgreSQL specific?
Thanks,
Mart :)
On Apr 25, 6:09 pm, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
On a new database you should run at least once with migrate=True and
then you can set
Sure, I'll throw it in (i have broken several things today, so why
not ;) )
I would be curious to know what the changes are?
Thanks,
Mart :)
On Apr 25, 6:03 pm, pierreth pierre.thibau...@gmail.com wrote:
Hello,
I am writing this message to know if some users are still experiencing
problems
New in 1.95.1 as of today:
https://groups.google.com/d/topic/web2py/oer8IeJ6dc8/discussion
On Apr 25, 2011, at 5:05 PM, mart wrote:
Sure, I'll throw it in (i have broken several things today, so why
not ;) )
I would be curious to know what the changes are?
The basic idea is that the regular import statement will import from an
application's modules directory. Previously, it was
On Monday, April 25, 2011 8:02:48 PM UTC-4, mart wrote:
Hi Massimo,
I have seen migrate=T/F, but not migrate_enabled=T/F
If you specify DAL(..., migrate_enabled=False), it will turn off all
migrations, regardless of how the 'migrate' argument is set in individual
tables -- so it's a
how cool! so if all looks good, will we need to make a switch or will
both be supported for a while?
Thanks,
Mart :)
On Apr 25, 8:09 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Apr 25, 2011, at 5:05 PM, mart wrote:
Sure, I'll throw it in (i have broken several things today, so why
What I need to know is how to get information from the view to the
controllers and database. I wasn't able to figure out how to use this
for instance:
URL('a', 'c', 'f', args=['x', 'y'], vars=dict(z='t'))
How do you access what is saved in the dict from the view on the
controller side?
On Apr
nice! I searched the book, but couldn't find a reference to
'migrate_enabled'.
Thanks for the info, will come in handy! :)
On Apr 25, 8:20 pm, Anthony abasta...@gmail.com wrote:
On Monday, April 25, 2011 8:02:48 PM UTC-4, mart wrote:
Hi Massimo,
I have seen migrate=T/F, but not
In f(), request.args(0) will be 'x', request.args(1) will be 'y' and
request.vars.z will be 't'.
http://web2py.com/book/default/chapter/04#request
On Monday, April 25, 2011 8:47:17 PM UTC-4, JoshC wrote:
What I need to know is how to get information from the view to the
controllers and database. I wasn't able to figure out how to use this
for instance:
URL('a', 'c', 'f', args=['x', 'y'], vars=dict(z='t'))
How do you access what
Anthony, thank you. I see there that it gives the syntax for accessing
args (request.args(i)), but it doesn't for vars (the dict). This is
the problem I had earlier. What is the syntax for accessing vars? Like
this?
request.vars(key)
On Apr 25, 9:18 pm, Anthony abasta...@gmail.com wrote:
On
Ok, I see. THANKS A LOT everyone :)
Josh
On Apr 25, 9:18 pm, Anthony abasta...@gmail.com wrote:
On Monday, April 25, 2011 8:47:17 PM UTC-4, JoshC wrote:
What I need to know is how to get information from the view to the
controllers and database. I wasn't able to figure out how to use this
True. It should do what the book says.
On Apr 25, 6:43 pm, pbreit pbreitenb...@gmail.com wrote:
CLEANUP() seems to be removing more characters than the Book would suggest.
It just removes all characters whose decimal ASCII codes are not in the
list [10, 13, 32-127]
However the regex is '[^
both will be supported for backward compatibility
On Apr 25, 7:44 pm, mart msenecal...@gmail.com wrote:
how cool! so if all looks good, will we need to make a switch or will
both be supported for a while?
Thanks,
Mart :)
On Apr 25, 8:09 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Apr 25, 2011, at 6:49 PM, Massimo Di Pierro wrote:
True. It should do what the book says.
Except that we should probably change the definition to exclude 127, seems to
me.
On Apr 25, 6:43 pm, pbreit pbreitenb...@gmail.com wrote:
CLEANUP() seems to be removing more characters than the
well seems their effected my an epic level ec2 outage. that sucks
cause ive been wanting to try them (or possibly kodingen.com as well).
Hope it's fixed soon.
On Apr 25, 3:10 pm, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
I am going to post a link on reddit. :-)
On Apr 25, 4:21 pm,
I agree.
On Apr 25, 8:59 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Apr 25, 2011, at 6:49 PM, Massimo Di Pierro wrote:
True. It should do what the book says.
Except that we should probably change the definition to exclude 127, seems to
me.
On Apr 25, 6:43 pm, pbreit
On 25 avr, 20:44, mart msenecal...@gmail.com wrote:
how cool! so if all looks good, will we need to make a switch or will
both be supported for a while?
Thanks,
Mart :)
The new import function changes how things are loaded when a module is
imported from models, controllers or modules (the
Cool! I will test it now! Thank you for the improvement.
Web2py is getting better every 2 weeks \o/
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
On Mon, Apr 25, 2011 at 11:53 PM, pierreth pierre.thibau...@gmail.comwrote:
On 25 avr, 20:44, mart msenecal...@gmail.com wrote:
how
How do I pass labels to auth forms ?
On Apr 25, 7:55 pm, Anthony abasta...@gmail.com wrote:
If you want to use the default labels specified in the table definition, you
can manually remove the colons from the labels via the server-side DOM
I am having this problem in 1.95.1 in OS X:
DeepSpace9:web2py julio$ python web2py.py -S qastack
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.95.1 (2011-04-25 17:55:16)
Database drivers available: SQLite3, pymysql
WARNING:web2py:import IPython error;
Oui! tres cool!
Just did fist pass and no issues as far as keeping the existing stuff
working as well! :) Now will go for pass 2 by changing some import
statements and adding few for testing.
Thanks,
Mart :)
On Apr 25, 11:06 pm, Bruno Rocha rochacbr...@gmail.com wrote:
Cool! I will test it
Not tested yet, but I guess you can do.
def user():
db.auth_user.first_name.label = Name Label
db.auth_user.last_name.label = Family Name
return dict(form=Auth())
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
On Tue, Apr 26, 2011 at 1:05 AM, Ab...
trunk or stable?
On Apr 25, 11:07 pm, Julio Schwarzbeck ju...@techfuel.net wrote:
I am having this problem in 1.95.1 in OS X:
DeepSpace9:web2py julio$ python web2py.py -S qastack
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.95.1 (2011-04-25
It's my mistake. Of course, autos.out='T' and autos.svh='F'.
Thanks!
On 25 апр, 16:21, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
... autos.out='T' and autos.out='F' ... ?
On Apr 25, 12:34 am, cyber vlad.mul...@gmail.com wrote:
I used to use construction like this:
88 matches
Mail list logo