[web2py:32455] Re: Newbie Question: Storing things in the the Session

2009-10-07 Thread portly.shor...@googlemail.com
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

[web2py:32454] sqlform using already existing tables...

2009-10-07 Thread Arvind
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

[web2py:32453] jobs

2009-10-07 Thread mdipierro
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

[web2py:32452] Re: lots of stuff in trunk.

2009-10-07 Thread mdipierro
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'") > >

[web2py:32451] Re: Internal Error in Administrative Interface

2009-10-07 Thread mdipierro
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

[web2py:32450] Re: lots of stuff in trunk.

2009-10-07 Thread mdipierro
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: >

[web2py:32449] Re: Internal Error in Administrative Interface

2009-10-07 Thread Sujan Shakya
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

[web2py:32448] Re: lots of stuff in trunk.

2009-10-07 Thread mr.freeze
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

[web2py:32447] Re: lots of stuff in trunk.

2009-10-07 Thread Jason (spot) Brower
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.

[web2py:32446] lots of stuff in trunk.

2009-10-07 Thread mdipierro
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

[web2py:32445] Re: web2py wiki

2009-10-07 Thread Álvaro Justen [Turicas]
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

[web2py:32444] Re: web2py wiki

2009-10-07 Thread John Heenan
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

[web2py:32443] Re: [New] web2py wiki

2009-10-07 Thread Álvaro Justen [Turicas]
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

[web2py:32442] Re: [New] web2py wiki

2009-10-07 Thread Álvaro Justen [Turicas]
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

[web2py:32441] Re: URLs in static files

2009-10-07 Thread Jonathan Lundell
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

[web2py:32440] Re: advice on the routes py and database queries.

2009-10-07 Thread Richard
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

[web2py:32438] Re: [New] web2py wiki

2009-10-07 Thread Yarko Tymciurak
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

[web2py:32437] Re: [New] web2py wiki

2009-10-07 Thread Tim Michelsen
> 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

[web2py:32436] Re: Newbie Question: Storing things in the the Session

2009-10-07 Thread mdipierro
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()

[web2py:32435] Re: [New] web2py wiki

2009-10-07 Thread Yarko Tymciurak
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,

[web2py:32434] Re: [New] web2py wiki

2009-10-07 Thread Yarko Tymciurak
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

[web2py:32433] Re: Why does this NOT pass validation? (bug?)

2009-10-07 Thread Thadeus Burgess
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

[web2py:32432] Re: [New] web2py wiki

2009-10-07 Thread Tim Michelsen
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

[web2py:32431] Re: Newbie Question: Storing things in the the Session

2009-10-07 Thread portly.shor...@googlemail.com
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

[web2py:32430] Re: [New] web2py wiki

2009-10-07 Thread Tim Michelsen
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

[web2py:32429] Re: OpenShare (first opensource ad service built on web2py) just went opensource!

2009-10-07 Thread JorgeR
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! --~--~-~--~~~---~--~--

[web2py:32428] Re: Newbie Question: Storing things in the the Session

2009-10-07 Thread mdipierro
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:

[web2py:32427] Re: [New] web2py wiki

2009-10-07 Thread Tim Michelsen
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

[web2py:32426] Re: Newbie Question: Storing things in the the Session

2009-10-07 Thread portly.shor...@googlemail.com
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

[web2py:32425] Re: Newbie Question: Storing things in the the Session

2009-10-07 Thread portly.shor...@googlemail.com
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

[web2py:32424] Re: Why does this NOT pass validation? (bug?)

2009-10-07 Thread mdipierro
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

[web2py:32423] Re: form.custom.errors.field

2009-10-07 Thread mdipierro
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

[web2py:32422] Why does this NOT pass validation? (bug?)

2009-10-07 Thread Thadeus Burgess
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

[web2py:32421] Re: FORM factory

2009-10-07 Thread Russell
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

[web2py:32420] Re: form.custom.errors.field

2009-10-07 Thread Thadeus Burgess
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

[web2py:32419] Re: Mac Theme

2009-10-07 Thread mdipierro
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

[web2py:32418] Re: URLs in static files

2009-10-07 Thread mdipierro
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

[web2py:32417] Re: form.custom.errors.field

2009-10-07 Thread mdipierro
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

[web2py:32416] Re: Newbie Question: Storing things in the the Session

2009-10-07 Thread mdipierro
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

[web2py:32415] Newbie Question: Storing things in the the Session

2009-10-07 Thread portly.shor...@googlemail.com
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

[web2py:32414] Re: Microapps on microblogs using web2py + OAuth (the cyborg approach for apps)

2009-10-07 Thread Offray Vladimir Luna Cárdenas
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

[web2py:32413] go to different page on submit in T3

2009-10-07 Thread Wes James
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.

[web2py:32412] form.custom.errors.field

2009-10-07 Thread Thadeus Burgess
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

[web2py:32411] Re: how to import html helpers inside a module?

2009-10-07 Thread mr.freeze
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...

[web2py:32410] Microapps on microblogs using web2py + OAuth (the cyborg approach for apps)

2009-10-07 Thread Offray Vladimir Luna Cárdenas
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

[web2py:32409] Re: Mac Theme

2009-10-07 Thread Alex Fanjul
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

[web2py:32408] Mac Theme v1.0

2009-10-07 Thread Alex Fanjul
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

[web2py:32407] RESTful Web Services

2009-10-07 Thread max
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

[web2py:32406] Re: FORM factory

2009-10-07 Thread Thadeus Burgess
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

[web2py:32405] Re: how to import html helpers inside a module?

2009-10-07 Thread Thadeus Burgess
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

[web2py:32404] Re: URLs in static files

2009-10-07 Thread Jonathan Lundell
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

[web2py:32403] Use existing database tables?

2009-10-07 Thread snorkel
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

[web2py:32402] Re: FORM factory

2009-10-07 Thread Thadeus Burgess
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

[web2py:32401] Re: URLs in static files

2009-10-07 Thread Julio
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

[web2py:32400] Re: web2py wiki

2009-10-07 Thread Julio
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

[web2py:32399] Re: how to import html helpers inside a module?

2009-10-07 Thread Álvaro Justen [Turicas]
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

[web2py:32398] Re: web2py wiki

2009-10-07 Thread mdipierro
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.

[web2py:32397] Re: URLs in static files

2009-10-07 Thread Jonathan Lundell
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

[web2py:32396] [New] web2py wiki

2009-10-07 Thread Álvaro Justen [Turicas]
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

[web2py:32395] which subversion revision is 1.67.2

2009-10-07 Thread mr.freeze
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

[web2py:32394] Re: how to import html helpers inside a module?

2009-10-07 Thread Jon Romero
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

[web2py:32393] Re: A simple patch to provide upload progress

2009-10-07 Thread mdipierro
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

[web2py:32392] Re: Internal Error in Administrative Interface

2009-10-07 Thread mdipierro
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

[web2py:32391] Re: Try out admin editor

2009-10-07 Thread mdipierro
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

[web2py:32390] Re: how to import html helpers inside a module?

2009-10-07 Thread mdipierro
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

[web2py:32389] Re: how to import html helpers inside a module?

2009-10-07 Thread Iceberg
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

[web2py:32388] Re: Amf service doesn't work

2009-10-07 Thread mdipierro
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()

[web2py:32387] Re: OpenShare (first opensource ad service built on web2py) just went opensource!

2009-10-07 Thread mdipierro
:-) 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! --~--~-~--~~~---~--~~

[web2py:32386] Re: Adding a user name to user registration

2009-10-07 Thread mdipierro
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

[web2py:32385] Re: Internal Error in Administrative Interface

2009-10-07 Thread mdipierro
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

[web2py:32384] Re: anti spam, anti *** strategy?

2009-10-07 Thread mdipierro
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

[web2py:32383] Amf service doesn't work

2009-10-07 Thread elffikk
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

[web2py:32382] OpenShare (first opensource ad service built on web2py) just went opensource!

2009-10-07 Thread Jon Romero
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

[web2py:32381] Re: how to import html helpers inside a module?

2009-10-07 Thread Jon Romero
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,

[web2py:32380] Re: how to import html helpers inside a module?

2009-10-07 Thread Iceberg
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

[web2py:/] Re: Adding a user name to user registration

2009-10-07 Thread Joseph Jude
> > 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

[web2py:32379] Re: FORM factory

2009-10-07 Thread leone
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

[web2py:32377] Re: GAE Tutorial to Web2py

2009-10-07 Thread murray3
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

[web2py:32376] Re: how to import html helpers inside a module?

2009-10-07 Thread Jon Romero
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

[web2py:32375] how to import html helpers inside a module?

2009-10-07 Thread Jon Romero
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

[web2py:32374] Re: A simple patch to provide upload progress

2009-10-07 Thread AndCycle
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

[web2py:32373] A simple patch to provide upload progress

2009-10-07 Thread AndCycle
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

[web2py:32372] Re: Try out admin editor

2009-10-07 Thread Iceberg
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

[web2py:32371] Internal Error in Administrative Interface

2009-10-07 Thread Sujan Shakya
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

[web2py:32370] most wanted aunties with young boys

2009-10-07 Thread stella m
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

[web2py:32369] Re: Google app engine retrieve data from related table

2009-10-07 Thread Michael - afewtips.com
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