With 1.95.1 is the same :(
I upgraded to this version, then plugin_wiki is broken, it return an error
at menu.py sating that attribute str has not xml method.
Oscar.
Thank you for your reply,
On 25 abr, 18:09, Massimo Di Pierro
wrote:
> On a new database you should run at least once with migrate=True and
> then you can set migrate=False and it should work.
I did it, and didn't work.
> If you are getting the errors below I assume you have migrate=True and
>
It's my mistake. Of course, autos.out='T' and autos.svh='F'.
Thanks!
On 25 апр, 16:21, Massimo Di Pierro
wrote:
> ... autos.out='T' and autos.out='F' ... ?
>
> On Apr 25, 12:34 am, cyber wrote:
>
>
>
>
>
>
>
> > I used to use construction like this:
> > rows_count=db(db.autos.out=='T').count()
trunk or stable?
On Apr 25, 11:07 pm, Julio Schwarzbeck 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 17:55:16)
> Data
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... wrote:
> How do
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 wrote:
> Cool! I will test it now! Thank you for the
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;
How do I pass labels to auth forms ?
On Apr 25, 7:55 pm, Anthony 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
> (seehttp://web2py.com/book/default/chapter/05#Server-side-DOM-and-Pars
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 wrote:
> On 25 avr, 20:44, mart wrote:
> > how cool! so if all looks good, will we need to mak
On 25 avr, 20:44, mart 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 "modules"
directory
I agree.
On Apr 25, 8:59 pm, Jonathan Lundell 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
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
wrote:
> I am going to post a link on reddit. :-)
>
> On Apr 25, 4:21 pm, Martín Mulone 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 wrote:
>> CLEANUP() seems to be removing more characters than the Book would sugges
both will be supported for backward compatibility
On Apr 25, 7:44 pm, mart 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 wrote:
>
>
>
>
>
>
>
> > On Apr 25, 2011, at 5
True. It should do what the book says.
On Apr 25, 6:43 pm, pbreit 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 '[^ \n\w]' which I
Ok, I see. THANKS A LOT everyone :)
Josh
On Apr 25, 9:18 pm, Anthony 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
> > for instan
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 wrote:
> On Monday, April 25, 201
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 acces
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
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 wrote:
> 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
>
>
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 2
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 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
> > not ;) )
>
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
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,
New in 1.95.1 as of today:
https://groups.google.com/d/topic/web2py/oer8IeJ6dc8/discussion
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 wrote:
> Hello,
>
> I am writing this message to know if some users are still experiencing
> problems with the new importer a
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
wrote:
> On a new database you should run at least once with migrate=True and
> then you can set migrate=False and it should wor
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?
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 wrote:
> 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 Mon
Interesting. Possible to support a post with vars?
I am going to post a link on reddit. :-)
On Apr 25, 4:21 pm, Martín Mulone wrote:
> http://martin.tecnodoc.com.ar/default/post/2011/04/25/16_web2py-power...
>
> --
> http://martin.tecnodoc.com.ar
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 fiel
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
DAL(,migra
if you want to upload files larger than 1 mb, take a look at this slice:
http://web2pyslices.com/main/slices/take_slice/63
yes
On Apr 25, 3:03 pm, pbreit 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?
What is the error exactly?
On Apr 25, 3:01 pm, Ialejandro 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 (MYSQL Version =
I just added to trunk...
quantity
{{=A('add
product',callback=URL('add_product',args='id'),target='there))}}
On Apr 25, 2:53 pm, pbreit 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 for
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.
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
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 wrote:
> Hi
>
> I edited the
http://martin.tecnodoc.com.ar/default/post/2011/04/25/16_web2py-powerpack-on-dotcloud
--
http://martin.tecnodoc.com.ar
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
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".
Sorry again,
The error is: ProgrammingError: relation "auth_user" already exists
Oscar.
On 25 abr, 16:34, Oscar wrote:
> BTW I tried with migration set to False locally with SqLite and it
> worked without issues.
>
> Oscar.
>
> On 25 abr, 16:32, Oscar wrote:
>
>
>
>
>
>
>
> > Hi there,
>
> >
BTW I tried with migration set to False locally with SqLite and it
worked without issues.
Oscar.
On 25 abr, 16:32, Oscar 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 to
> deploy the c
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 must
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.
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?
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 m
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 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 make
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:
>
A bit of stylistic advice:
toys = db(db...
return dict(toys=toys)
{{for toy in toys:}}
{{=toy.name}}
etc.
Maybe try it like this:
A(' Add to cart', _href=URL('add_to_cart', vars={'item': i.item, 'page':
request.function}))
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="""
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 wrote:
> 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
Look up the pyfpdf project on google code. I upgraded on March 30.
On Apr 25, 10:35 am, Kenneth Lundström
wrote:
> > - importved pyfpdf
>
> Is there any more info about the improved pyfpdf?
>
> Kenneth
>
>
>
>
>
>
>
> > - domain check in email_auth.py, thanks Gyuris
> > - added change_password_o
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
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 require
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 without
The "static" folder needs to be configured already. If youre iamges don't need
any processing (auth) it seems a better way to go.
On Mon, Apr 25, 2011 at 3:05 AM, pbreit wrote:
> To serve images statically:
>
> Field('image', 'upload', uploadfolder=request.folder+'static/uploads')
>
>
>
I guess it only bypass teh download function, which has a little gain of
speed, bit, I am not sure the images will be served statically u
> - 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 Apr 25, 1:05 am, pbreit wrote:
> To serve images statically:
>
> Field('image', 'upload', uploadfolder=request.folder+'static/uploads')
>
>
Can please go into the book?
Thanks.
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 wrote:
> I was wondering if in future versions, will have support for models and
> control
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 Massimo
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:
l
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 si
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...
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
wrote:
> great job, massimo n the others, i've download n test it. thank you so much.
>
> On Mon, Apr 25, 2011
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
wrote:
> 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 l
On Mon, Apr 25, 2011 at 3:28 AM, Ab... 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= dict(field1='My Field', field2='O
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
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
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 ..
pleas
On 25 abr, 09:18, Alexandre Strzelewicz
wrote:
> Hi,
>
> Is there a way to select a range of ids from database ?
>
> Actually I use db(db.articles.id>20).select(limitby=(20, 30))
>
> But I found the SQL keyword 'between' that permits to select a range
> of data between two values.
>
> Thanks
Yo
Thanks a bunch, Massimo.
On Apr 25, 3:25 pm, Massimo Di Pierro
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 25, 2:46 am, krmb
> 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
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 wrote:
> Hello web2py users,
> I'm working on an application that involves image u
With db._lastsql I saw that limitby apply an offset, sorry for this
question
On Apr 25, 1:18 pm, Alexandre Strzelewicz
wrote:
> Hi,
>
> Is there a way to select a range of ids from database ?
>
> Actually I use db(db.articles.id>20).select(limitby=(20, 30))
>
> But I found the SQL keyword 'betwee
... autos.out='T' and autos.out='F' ... ?
On Apr 25, 12:34 am, cyber 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:
> rows_count = db.e
Hi,
Is there a way to select a range of ids from database ?
Actually I use db(db.articles.id>20).select(limitby=(20, 30))
But I found the SQL keyword 'between' that permits to select a range
of data between two values.
Thanks
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 = SQLFO
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
'
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.
{{=auth.login()}}
{{=A('Forgot password?',
_href=URL(request.applicat
sorry guys I've posted on the wrong group !
On Apr 25, 9:02 am, sebastian 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 netbooks... and I guess tha
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 scr
88 matches
Mail list logo