Hi
yet again - many thanks for this. I now realise the difference in the
queries (that [0]).
Ah well, I'm learning Web2Py slowly but surely.
I must say that I'm very impressed with the prompt response
(especially for what is probably a very basic question).
Keep up the good work
cheers
Portl
Hello,
I have already defined tables in a database.
I need to generate forms using sql form
in my code
db = DAL('sqlite://db.db')
db.define_table('logina',
Field
('uname',requires=IS_NOT_EMPTY()),
)
It complains du
http://www.devbistro.com/jobs/96952
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
web
and which python version.
usually
>>> a=8L
>>> print str(a)
8
>>> print repr(a)
8L
but there is no repr in DAL anymore.
strange
On Oct 7, 11:45 pm, "mr.freeze" wrote:
> I updated and get this MySQL error on an inner join:
> OperationalError: (1054, "Unknown column '8L' in 'where clause'")
>
>
Can you try delete everything and download it again from
http://web2py.com/examples/default/download
Massimo
On Oct 7, 11:50 pm, Sujan Shakya wrote:
> Ya, I downloaded many times, but still can't get it working.
> Btw, 2 weeks before when i checked out the svn, it was working, but
> later when
Can you show me the controller action?
Massimo
On Oct 7, 11:45 pm, "mr.freeze" wrote:
> I updated and get this MySQL error on an inner join:
> OperationalError: (1054, "Unknown column '8L' in 'where clause'")
>
> request.args(0) is 8. If I change request.args(0) to 1, the error
> changes to:
>
Ya, I downloaded many times, but still can't get it working.
Btw, 2 weeks before when i checked out the svn, it was working, but
later when i updated the svn, admin page showed the Internal Error.
And also 1 more problem I m having is, Opera shows the welcome page in
other foreign language, but i
I updated and get this MySQL error on an inner join:
OperationalError: (1054, "Unknown column '8L' in 'where clause'")
request.args(0) is 8. If I change request.args(0) to 1, the error
changes to:
OperationalError: (1054, "Unknown column '1L' in 'where clause'")
...and so on. Hope that makes se
Exciting. Thanks.
On Thu, Oct 8, 2009 at 6:10 AM, mdipierro wrote:
>
> There is lots of new stuff in trunk, in particular in sql.py.
>
> Chris Clark added Ingres support and Denes added support for legacy
> databases.
>
> While we test the new stuff please check that nothing breaks your
> code.
There is lots of new stuff in trunk, in particular in sql.py.
Chris Clark added Ingres support and Denes added support for legacy
databases.
While we test the new stuff please check that nothing breaks your
code.
Massimo
--~--~-~--~~~---~--~~
You received this me
On Wed, Oct 7, 2009 at 22:15, John Heenan wrote:
>
> On Oct 8, 1:15 am, Álvaro Justen [Turicas]
> wrote:
>> Please use:http://wiki.web2py.com/
>> (instead ofhttp://www.web2py.com/wiki- it actually will redirect to
>> former URL)
>>
> Great work.
>
> Just a small suggestion to remain in line wit
On Oct 8, 1:15 am, Álvaro Justen [Turicas]
wrote:
> Please use:http://wiki.web2py.com/
> (instead ofhttp://www.web2py.com/wiki- it actually will redirect to
> former URL)
>
Great work.
Just a small suggestion to remain in line with current wiki practices
that would make potential adopters less
On Wed, Oct 7, 2009 at 18:51, Yarko Tymciurak wrote:
> On Wed, Oct 7, 2009 at 4:48 PM, Yarko Tymciurak wrote:
>>
>> On Wed, Oct 7, 2009 at 4:20 PM, Tim Michelsen
>> wrote:
>
>
>>
>> However, I have recently seen that Bruce Eckel is thinking about using
>> MoinMoin for contributions to Pyt
On Wed, Oct 7, 2009 at 18:20, Tim Michelsen wrote:
> Hi Alvaro,
> if you need help with the sphinxification send me a mail.
> My current web2py project got stalled somehow. Therefore, please send me
> a direct mail if you have special questions to documentation. I am not
> readying this list ever
On Oct 7, 2009, at 11:49 AM, mdipierro wrote:
>
> Yes, this should be done in main using using gluon/contenttype after
> creating the Response object. I would take a patch for this.
Here's my cut at a patch to return proper headers for css files. This
does not address Eric's desire for a singl
is that the proper way to do it, having a separate controller for each
operation? The routes approach sounds more flexible.
Richard
On Oct 7, 12:23 pm, Mengu wrote:
> massimo,
>
> actually this wasn't what i am asking, but thank you for showing
> another way for it. i have my controller named a
On Wed, Oct 7, 2009 at 5:26 PM, Tim Michelsen
wrote:
>
> > However, I have recently seen that Bruce Eckel is thinking about using
> > MoinMoin for contributions to Python Pattersn & Idioms (people seemed ot
> > have a hard time ??? with editing Sphinx - though I can't imagine why -
> I think we h
> However, I have recently seen that Bruce Eckel is thinking about using
> MoinMoin for contributions to Python Pattersn & Idioms (people seemed ot
> have a hard time ??? with editing Sphinx - though I can't imagine why -
I think we have to distiguish:
Books and documentations.
docs are part o
I suggest
worksheets = db(db.worksheet.id == request.args(0)).select().as_list()
fred=worksheets[0]
now both can go in a session
On Oct 7, 4:25 pm, "portly.shor...@googlemail.com"
wrote:
> Sure:
>
> worksheet = db(db.worksheet.id == request.args(0)).select()[0]
> fred = worksheet.as_list()
On Wed, Oct 7, 2009 at 4:48 PM, Yarko Tymciurak wrote:
> On Wed, Oct 7, 2009 at 4:20 PM, Tim Michelsen > wrote:
>
> However, I have recently seen that Bruce Eckel is thinking about using
> MoinMoin for contributions to Python Pattersn & Idioms
>
I helped Bruce setup access lists in Moin,
On Wed, Oct 7, 2009 at 4:20 PM, Tim Michelsen
wrote:
>
> Hi Alvaro,
> if you need help with the sphinxification send me a mail.
> My current web2py project got stalled somehow. Therefore, please send me
> a direct mail if you have special questions to documentation. I am not
> readying this list e
Awesome, thanks a bunch!
-Thadeus
On Wed, Oct 7, 2009 at 3:42 PM, mdipierro wrote:
> tore integers. You can rep
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send
Error when registering:
http://wiki.web2py.com/_user/_register
=> 404 NOT FOUND
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To
Sure:
worksheet = db(db.worksheet.id == request.args(0)).select()[0]
fred = worksheet.as_list()
Worksheet returns a single row - hope this helps. I'm really keen to
use Web2Py.
cheers
On Oct 7, 10:20 pm, mdipierro wrote:
> Can you show us the code?
>
> On Oct 7, 3:58 pm, "portly.shor...@g
comment on page:
http://wiki.web2py.com/Documentation_HOWTO
the primer at:
http://sphinx.pocoo.org/latest/rest.html
is much better to get you started with ReST
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2
Cool
;)
On Oct 7, 7:55 am, Jon Romero wrote:
> I've just release OpenShare on bitbucket. You can see it running (and
> submit your opensource projects) here:http://openshare.emotionull.com
>
> http://bitbucket.org/jonromero/openshare/
>
> Enjoy!
--~--~-~--~~~---~--~--
Can you show us the code?
On Oct 7, 3:58 pm, "portly.shor...@googlemail.com"
wrote:
> Many thanks for such a quick answer. A second question (if I may). I
> have a second query that returns a single row - how would I store that
> in the session as trying as_list gives me an error:
>
> KeyError:
Hi Alvaro,
if you need help with the sphinxification send me a mail.
My current web2py project got stalled somehow. Therefore, please send me
a direct mail if you have special questions to documentation. I am not
readying this list every day.
Yarko wanted to add some docstring specs, but he hasn
On Oct 7, 9:58 pm, "portly.shor...@googlemail.com"
wrote:
> Many thanks for such a quick answer. A second question (if I may). I
> have a second query that returns a single row - how would I store that
> in the session as trying as_list gives me an error:
>
> KeyError: 'as_list'.
>
> many thank
Many thanks for such a quick answer. A second question (if I may). I
have a second query that returns a single row - how would I store that
in the session as trying as_list gives me an error:
KeyError: 'as_list'.
many thanks (again).
p.s I've bought the PDF of the second version of the book but
correct. multiple is intended to be used for reference fields that
store integers. You can replace:
IS_IN_SET(('Glasses', 'Soft Contacts','Hard Contacts', 'Other',
'None'))
with
IS_IN_SET(range(4),('Glasses', 'Soft Contacts','Hard Contacts',
'Other'))
None should not be an option becase you ca
Hi Thadeus,
we just need to talk about this more and get more opinions. I can be
convinced. The code you proposed does not show errors by default any
more.
That is a break of backward compatibility.
You also assume that people who do not want to display the default
errors would use one DIV for e
It seems as if there is a space in the text, then it will not pass
validation if one of the options with a space is selected.
def test():
form = SQLFORM.factory(
Field('field', requires=IS_IN_SET(('Glasses', 'Soft Contacts',
'Hard Contacts', 'Other', 'None'), multiple=True, error_m
Personally, I like the way the widget renders the error by default -
it's pretty tidy and does what you want most of the time. If you want
to remove the error from the widget you could look at the section
called "Switch off errors" on page 220 of the manual.
On Oct 8, 5:03 am, Thadeus Burgess w
But I do want to display errors... just not where web2py insists they
display.
And I think there is a solution here that will satisfy everybody, that kind
of thinking is NOT good for the growth web2py!!!
I am just not familiar enough with the base code, but I suppose I will get
familiar with it t
Could you email it to me as a zip? I have problems with rar. sorry.
On Oct 7, 11:55 am, Alex Fanjul wrote:
> Sorry, I forgot some skin files. This is new version v.1.1
> -I added some alternative fonts in css, in case you don't have "Century
> Gothic" font, (that is the original one for this pag
Yes, this should be done in main using using gluon/contenttype after
creating the Response object. I would take a patch for this.
Massimo
On Oct 7, 10:56 am, Jonathan Lundell wrote:
> On Oct 7, 2009, at 8:44 AM, Julio wrote:
>
>
>
> > This is good, specially if on your website you implement som
I doubt there is a solution here that would satisfly everybody.
If you do now want to display errors automatically do
form.errors.clear()
Massimo
On Oct 7, 12:13 pm, Thadeus Burgess wrote:
> I am attempting to patch web2py to allow support for custom errors in custom
> forms, so that the
if
rows=db().select(...)
you cannot store rows in a session because it includes an open db
connection.
You can store
rows.as_list()
On Oct 7, 1:35 pm, "portly.shor...@googlemail.com"
wrote:
> Hi - I am new to Web2py and think it is great but I'm stuck. Is there
> a limit on what i can store i
Hi - I am new to Web2py and think it is great but I'm stuck. Is there
a limit on what i can store in the Session? I want to store the the
results of a sql query (returning 40 records) in the session. When I
try I get an exception:
Traceback (most recent call last):
File "gluon/main.py", line 41
Hi,
I made an omission. Here is the original phrase:
Offray Vladimir Luna Cárdenas escribió:
> The idea of microapps on top of microblog engines is some kind of
> cyborg approach. We can build a wrapper on top of any infraestructure
> and replace with progressive as we progress, so we can, fo
I can see how to use onaccept/redirect to a different page standard
views and controllers, but with t3 how is this done?
Editing a T3 page, say you have:
{{=FORM( INPUT(_type='submit', _value='search'))}}
How would you submit to a different page. By default it comes back to
the same page.
I am attempting to patch web2py to allow support for custom errors in custom
forms, so that the widgets to auto magically render the errors when using
custom form.
Desired functionality should behave such as "{{=form.custom.errors.field}}"
and would display "must contain a
value!"
The below patch
Here's 2 more cents: http://www.loc.gov/standards/codelists/countries.xml
On Oct 7, 10:57 am, Thadeus Burgess wrote:
> Here is my 10 cents... dictionary of US States, :)
>
> http://pastebin.com/m4b73d548
>
> -Thadeus
>
> On Wed, Oct 7, 2009 at 10:21 AM, Álvaro Justen [Turicas] <
>
> alvarojus...
Hi all,
There is an idea about using small apps that can be created on top of
microblog engines[1]. I would like to create that apps in web2py. The
specific idea is to enrich a microblogging engine putting
metainformation on messages to make it more accurate in educative
context in similar wa
Sorry, I forgot some skin files. This is new version v.1.1
-I added some alternative fonts in css, in case you don't have "Century
Gothic" font, (that is the original one for this page).
alex f
El 07/10/2009 18:48, Alex Fanjul escribió:
> Here I'm sending you a Mac Theme for Web2py (its just a p
Here I'm sending you a Mac Theme for Web2py (its just a proof of
concept), just extract and sustitute all files in your application
"static" folder.
I hope you like it.
By the way Maximo, the original skin or theme (like the one im sending)
is not accesible due to the use of tables for web stru
Dear developers.
My web2py search engine needs get content from a REST API from a Java
application server.
How would I do it best with Web2py?
Has somebody any experience with web2py or python rest clietns.
I also need to implement REST Services through Web2py ? Is there any
example applicatio
Massimo, how hard would it be to implement
form.custom.errors.field
instead of having the widget render the error?
-Thadeus
On Wed, Oct 7, 2009 at 10:46 AM, Thadeus Burgess wrote:
> I have to perform a nasty hack to get around the form.errors displaying on
> each radio button!
>
> Make sure
Here is my 10 cents... dictionary of US States, :)
http://pastebin.com/m4b73d548
-Thadeus
On Wed, Oct 7, 2009 at 10:21 AM, Álvaro Justen [Turicas] <
alvarojus...@gmail.com> wrote:
>
> On Wed, Oct 7, 2009 at 11:28, Jon Romero wrote:
> >
> > Yes, you are right. And now that we have this threa
On Oct 7, 2009, at 8:44 AM, Julio wrote:
>
> This is good, specially if on your website you implement some sort of
> "skinning" allowing the users to dynamically switch "layouts" using
> the same css file, thanks for sharing this.
You're welcome.
I think it's a generally useful capability, and
Hi,
I have a application currently in PHP and already have PostgreSQL
tables etc setup for it, is there a way to
effectively use web2py to create a new front end using a DB pool from
the dbutils package and use that pool from
a controller? I don't want to create new models for the database.
I a
I have to perform a nasty hack to get around the form.errors displaying on
each radio button!
Make sure to set error_message="". Now it won't display a divs for the
error.
Manually in my view,
{{if form.errors.has_key('field'):}}
You must enter a value into this field!
}}
{{=form.custom.widget.f
This is good, specially if on your website you implement some sort of
"skinning" allowing the users to dynamically switch "layouts" using
the same css file, thanks for sharing this.
On Oct 7, 8:19 am, Jonathan Lundell wrote:
> On Oct 6, 2009, at 2:54 PM, Eric Vicenti wrote:
>
>
>
> > Thanks, mdi
Beautiful, Obrigado Alvaro!, this is an excellent app and much needed
for the community, we are truly eating our own dog food now! :)
Thanks!
Julio
On Oct 7, 8:15 am, Álvaro Justen [Turicas]
wrote:
> Hi folks,
> I'm posting this to show you that we have a "new" wiki system.
> Last weekend I ch
On Wed, Oct 7, 2009 at 11:28, Jon Romero wrote:
>
> Yes, you are right. And now that we have this thread, someone how is
> interested in adding a countries dropdown can implement it easily (I
> was searching around but didn't find anything elegant)
>
> On Oct 7, 5:08 pm, mdipierro wrote:
>> I ca
Thank you Alvaro.
I fully endorse this. This is a much needed move.
It will kill to birds with one stone: will make a better wiki app and
better documentation.
Massimo
On Oct 7, 10:15 am, Álvaro Justen [Turicas]
wrote:
> Hi folks,
> I'm posting this to show you that we have a "new" wiki system.
On Oct 6, 2009, at 2:54 PM, Eric Vicenti wrote:
>
> Thanks, mdi and Jonathan. I will borrow your __cssheaders() function,
> if you don't mind.
I should have commented it a bit first, but it's not all that subtle.
By the time the controller runs, the response has been set up as a
standard html
Hi folks,
I'm posting this to show you that we have a "new" wiki system.
Last weekend I changed some things in wiki app, like:
- Now we have real page names, like http://wiki.web2py.com/Page_name
- Some layout changes
- Simplification of some forms
- Included views that weren't there
- Fixed some
Does anyone know which svn revision is 1.67.2? I don't see it in the
comments.
Thanks,
Nathan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegr
Yes, you are right. And now that we have this thread, someone how is
interested in adding a countries dropdown can implement it easily (I
was searching around but didn't find anything elegant)
On Oct 7, 5:08 pm, mdipierro wrote:
> I can add 1) but this means web2py becomes dependent on geopoliti
Check again. I added it now.
On Oct 7, 6:42 am, AndCycle wrote:
> oops, the patch been cut by width restriction on mailing list lol
>
> here is pastebinhttp://pastebin.com/f219d603b
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
I cannot reproduce this. Can you please download it again?
On Oct 7, 3:34 am, Sujan Shakya wrote:
> I just checked out the web2py source from code.google.com.
> Then I ran 'python web2py.py -a mypassword'
> Then I visitedhttp://127.0.0.1:8000/. This shows the welcome page.
> But when I clicked o
Please check again it should be there
On Oct 7, 4:26 am, Iceberg wrote:
> Looks like the problem is already addressed 3 weeks ago. But I did not
> find a file named keyboard.js in our web2py admin.
>
> http://sourceforge.net/projects/editarea/forums/forum/556921/topic/33...
>
> On Oct7, 11:24am
I can add 1) but this means web2py becomes dependent on geopolitical
issues.
I agree 2) and 3) do not belong in there.
Massimo
On Oct 7, 9:04 am, Iceberg wrote:
> Sorry but IMHO:
>
> 1. adding a gluon/contrib/countries.py with a countries_list =
> ['United States', 'Afghanistan', ...] is good e
Sorry but IMHO:
1. adding a gluon/contrib/countries.py with a countries_list =
['United States', 'Afghanistan', ...] is good enough for reference,
and developers might change orders or languages before really use it.
2. adding a countries_widget is not that convincing, especially
because it is j
try:
def getList():
return db().select(db.classifieds.ALL).as_list()
On Oct 7, 6:13 am, elffikk wrote:
> Hi,
>
> I am pretty new to web2py and ... need help :)
>
> I am trying this and works (json service)
>
> def call(): return service()
>
> @service.json
> def getList():
> return db()
:-)
On Oct 7, 7:55 am, Jon Romero wrote:
> I've just release OpenShare on bitbucket. You can see it running (and
> submit your opensource projects) here:http://openshare.emotionull.com
>
> http://bitbucket.org/jonromero/openshare/
>
> Enjoy!
--~--~-~--~~~---~--~~
gae provides https for the appspot domain
On Oct 7, 7:21 am, Joseph Jude wrote:
> > > 2) in login, the password is sent in plain text. how to rectify
>
> > You can use https to protect your password... http is not enough to do
> > so...
>
> I'm going to deploy in GAE, so I don't think https is a
Use stable for now. I do not swear by the development version since a
lot of changes are there. I will investigage.
On Oct 7, 3:34 am, Sujan Shakya wrote:
> I just checked out the web2py source from code.google.com.
> Then I ran 'python web2py.py -a mypassword'
> Then I visitedhttp://127.0.0.1:8
I changed the title of the thread.
On Oct 7, 12:21 am, weheh wrote:
> How about people who haven't discovered web2py yet and won't bother
> asking IT to reclassify the site?
>
> On Oct 7, 1:09 am, Yarko Tymciurak wrote:
>
> > A corp server will trigger on keywords, as a precaution - Jason just
Hi,
I am pretty new to web2py and ... need help :)
I am trying this and works (json service)
def call(): return service()
@service.json
def getList():
return db().select(db.classifieds.ALL)
but with amf doesn't work
def call(): return service()
@service.amfrpc
def getList():
return
I've just release OpenShare on bitbucket. You can see it running (and
submit your opensource projects) here: http://openshare.emotionull.com
http://bitbucket.org/jonromero/openshare/
Enjoy!
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Yeap, that's the way I was first doing it but I am wondering what must
be imported so module code can work (because it's working when it's in
db.py).
Also, creating a Field('country', 'countries') would be (I think) a
nice addition. Should I submit a patch, Massimo?
Thanks for
On Oct 7, 3:33 pm,
Since you gonna import one homemade module anyway, why not just:
from applications.yourapp.modules.country import
country_names_as_a_list
db.define_table('shipping_info',
Field('countries', _requires=IS_IN_SET(country_names_as_a_list))
...
)
This way you don't force yourself to know someth
> > 2) in login, the password is sent in plain text. how to rectify
>
> You can use https to protect your password... http is not enough to do
> so...
>
I'm going to deploy in GAE, so I don't think https is an option. In
the out-of-the-box web2py passwords are not visible. I would like to
adopt
I notice that if you don't match defined Field in SQLFORM.factory and
{{=form...}} in html form.results is False but form.errors is empty.
The length attribute of Field-string doesn't produce a desired width
of input. There is a different way to obtain the apprioate layout?
On 6 Ott, 21:53, mdip
sorry for posting this again but it does not appear to show up in the
list of
postings!
I wondered if anyone had tried to use the xmpp functionality of GAE
for non chat i.e. application communications.
There are a number of ways of doing this using the various javascript
libraries (strophe, jaja
ok, I've imported gluon.html but now it seems there is another
different error.
I am creating a country widget (it will display all countries in a
dropdown box).
So, in my db.py I have this:
from applications.appname.modules.countries import *
db.shipping_info.countries.widget = countries_widget
I have created a module (inside my application/modules) and I use
SELECT.
I tried importing gluon.tools but no go. All I get is this error:
NameError: global name 'SELECT' is not defined
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
oops, the patch been cut by width restriction on mailing list lol
here is pastebin
http://pastebin.com/f219d603b
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email
after read over this "thread [web2py:23034] Upload progress"
http://www.mail-archive.com/web2py@googlegroups.com/msg13111.html
I have looks around how other web framework done this,
in pylons's way, this require a WSGI middleware and URLmap,
unfortunately URLmap is impossible for web2py,
and wra
Looks like the problem is already addressed 3 weeks ago. But I did not
find a file named keyboard.js in our web2py admin.
http://sourceforge.net/projects/editarea/forums/forum/556921/topic/3381727?message=7631764
On Oct7, 11:24am, mdipierro wrote:
> Can you send me a patch?
>
> On Oct 6, 7:3
I just checked out the web2py source from code.google.com.
Then I ran 'python web2py.py -a mypassword'
Then I visited http://127.0.0.1:8000/. This shows the welcome page.
But when I clicked on 'click here for the administrative interface'
link, I got 'Internal Error Ticket Issued' page. Clicking o
most wanted aunties with young boys
Free 21 age sex movies and Photos downloading
CUTE AUNTY AFTER BATHING & BEAUTIFUL GIRLS VIDEO COLLECTIONS
PleaseVisit.
CREATE FREE MEMBERSHIP ACCOUNT. OTHER DETAILS LOG ON TO
Thanks - I will also check out ListProperty
On Oct 6, 8:56 pm, Robin B wrote:
> If you want to keep it normalized, and the intersection is less than
> 1000 entities, and joined by a primary key (ID), use a batch get, to
> fetch all the join items in parallel.
>
> If you are going to de-normalize
86 matches
Mail list logo