[web2py] Re: Sequence with app running on GAE

2011-10-31 Thread howesc
how will you know what counter value to add? with GAE's parallelism and delayed data replication you have no way to know what counter values have been used...

[web2py] Re: How about auth.define_tables(..., format='...')?

2011-10-31 Thread Ray (a.k.a. Iceberg)
Hi Massimo, So what do you think about the following idea? If it is ok for you, I can commit a low-priority issue in google code, just to avoid it being forgotten. Regards, Ray On Oct 30, 10:52 pm, Anthony wrote: > Probably just settings.table_user_format (i.e., the format for the user > table)

[web2py] Re: launching web2py from script?

2011-10-31 Thread Vineet
If I get you right, you may find the below-mentioned thread useful. https://groups.google.com/group/web2py/browse_thread/thread/b6c0cf5d61d0c565/a40a34c4f91661bb?lnk=gst&q=eclipse#a40a34c4f91661bb (See the procedure by "Miguel Lopes" near the end of the above thread- link) BTW, Thanks a lot Miguel

[web2py] Re: Datetime picker problem

2011-10-31 Thread petrasadi
Going further, the datetime is formated differently in the database (2011-10-31 23:10:00) and the form (2011-11-01T04:26Z), so it makes it difficult to perform a query using the data gathered from the form.

[web2py] Datetime picker problem

2011-10-31 Thread petrasadi
>From what I read, if the _class and _time attributes of a FORM both reference "datetime", then this should render a datetime picker in the view. Is this correct? My code: form=FORM('Date and time: ', INPUT(_name='date', _class='datetime', _type='datetime'), INPUT(_type='submit')) and upon execut

[web2py] Re: P3P and web2py

2011-10-31 Thread Massimo Di Pierro
Assuming you do not have an app called w3c. put the file in applications/welcome/static/p3p.xml and add AliasMatch ^/w3c/(.*) /home/www-data/web2py/applications/welcome/ static/$1 You can replace "welcome" with your own app. On Oct 31, 9:57 am, horridohobbyist wrote: > I'm trying to get P3P

[web2py] Re: wget and basic authentication

2011-10-31 Thread Massimo Di Pierro
Please open a ticket. this is easy and I can take of it tomorrow. On Oct 31, 7:58 pm, mdorval wrote: > Ok, so this command example is in the documentation under basic > authentication (http://web2py.com/book/default/chapter/08#Access- > Control-and-Basic-Authentication): > > wget --user=[username

[web2py] Re: HerPOS now fully functional on GAE!

2011-10-31 Thread Massimo Di Pierro
where is the mercurial repo? On Oct 31, 3:25 pm, Phyo Arkar wrote: > http://herspos.appspot.com/HersPOS > > I have not made w2p release yet coz connection is bad now. But already > push it on mercurial so feel free to clone and test yourself. > > Check it out! > > I get it fully working on GAE ,

[web2py] Re: P3P and web2py

2011-10-31 Thread horridohobbyist
So, nobody knows where the root is? Really? Richard On Oct 31, 10:57 am, horridohobbyist wrote: > I'm trying to get P3P to work with web2py. Under Ubuntu and Apache, > web2py is configured the standard way: > > >   WSGIDaemonProcess web2py user=www-data group=www-data >   WSGIProcessGroup web2p

[web2py] wget and basic authentication

2011-10-31 Thread mdorval
Ok, so this command example is in the documentation under basic authentication (http://web2py.com/book/default/chapter/08#Access- Control-and-Basic-Authentication): wget --user=[username] --password=[password] http://.../[app]/[controller]/give_me_time but this command won't work with basic

[web2py] Re: Qooxdoo + Web2py Based AJAX POS system, Released!

2011-10-31 Thread wwwgong
I installed your pkg locally and run it in chrome, performance is very good On Oct 23, 8:48 am, Phyo Arkar wrote: > Hello Massimo! > > the demo is now avaliable at : > > http://herspos.appspot.com/HersPOS > > On GAE tho , joining tables not working so the main table , Sales > table having error w

[web2py] Re: HersPOS - New Version released 0.03 Web2py + Qooxdoo POS

2011-10-31 Thread wwwgong
I installed it locally, gave app name=herspos, it worked It is great learning stuff for a newbie like me. I am able to do the following: 1) browse the Date tree, sales are filtered by date 2) add sales on 'Sales' tab 3) add product item on 'Item' tab 4) I used sqlite db 5) delete some sales using

[web2py] Re: Communicating With C Application

2011-10-31 Thread Anthony
Have you seen this: http://web2py.com/book/default/chapter/09#RESTful-Web-Services (and the Services chapter in general: http://web2py.com/book/default/chapter/09)? On Sunday, October 30, 2011 5:52:29 PM UTC-4, Ialejandro wrote: > > I think the question is fuzzy... > > I know It can be done by

Re: [web2py] Re: Vim and syntax highlight.

2011-10-31 Thread Bruno Rocha
I like to use this: http://sontek.net/turning-vim-into-a-modern-python-ide $ git clone https://github.com/sontek/dotfiles.git $ cd dotfiles $ ./install.sh vim The best VIM config. But I guess he means about web2py keywords, is there any plugin? -- Bruno Rocha [http://rochacbruno.com.br]

[web2py] Re: Cheaper hosting...

2011-10-31 Thread Christopher Steel
looks great but They are out of stock... https://www.fibervolt.com/clients/cart.php?a=add&pid=6

[web2py] image in form

2011-10-31 Thread peter
I define a table db.define_table('artists', Field('name'), Field('image','upload'), ..) I edit it it as follows @auth.requires_login() def edit_artist(): artist = db(db.artists.id==request.args(0)).select().first() form = SQLFORM(db.artist

[web2py] Re: Communicating With C Application

2011-10-31 Thread Michael Ellis
I haven't tried this, but the first direction I'd consider would be to find a C library for parsing JSON and call the read methods with a .json extension. See the web2py book for more about getting json results from web2py controllers. Also, if the rules of your class permits it, you could consid

[web2py] HerPOS now fully functional on GAE!

2011-10-31 Thread Phyo Arkar
http://herspos.appspot.com/HersPOS I have not made w2p release yet coz connection is bad now. But already push it on mercurial so feel free to clone and test yourself. Check it out! I get it fully working on GAE , main problems are id >= 0 statements , >= do not work as OR is not working. Can w

Re: [web2py] Re: Web2py MVC and Qooxdoo

2011-10-31 Thread Phyo Arkar
Please check out the latest mercurial source too. Many fixes and now it is fully functional on GAE! http://herspos.appspot.com/HersPOS On 10/31/11, wwwgong wrote: > Phyo, > I have downloaded your app at http://code.google.com/p/herspos/ > Thanks a lot for sharing and will provide you with feedba

Re: [web2py] Re: Google App Engine (GAE) does not support database LIKE statement...

2011-10-31 Thread $p00ky
Hi rochacbruno, Thank you for your link. Unfortunately, it is not working... search=request.vars['search'] if not request.env.web2py_runtime_gae: rows= db(db.pictures.filename.contains(search.replace(" ","%"))).select() else: query = like_query(sea

Re: [web2py] Left Outer Join Confusion

2011-10-31 Thread Marin Pranjić
As described here: http://web2py.com/book/default/chapter/06#Left-Outer-Join db(inner_joins).select(select_fields, left = db.tablename.on(...)) note that "left" can be a list of joins if you need >1 left join in query. left = [db.table1.on(...), db.table2.on(...), ...] On Mon, Oct 31, 2011 at 5

[web2py] update problem

2011-10-31 Thread Richard Vézina
Hello, I used to do this in controller to override some of the model default behavior on update... form = crud.update(db.table) db[request.args(0)].entered_by.update=auth.user and auth.user.id db[request.args(0)].input_date.update=request.now if accepts...: response flash... It stop working

[web2py] Re: Vim and syntax highlight.

2011-10-31 Thread f4eedu
Yes I set "syntax on" in vim :) Files with .py extensions looks fine. The problem is with *.html files, which include expressions with {{ }} brackets. Vim interprets such files as html, so syntax is not well highlighted. I'll give you example: http://postimage.org/image/igugkbzev/

[web2py] Re: Web2py MVC and Qooxdoo

2011-10-31 Thread wwwgong
Phyo, I have downloaded your app at http://code.google.com/p/herspos/ Thanks a lot for sharing and will provide you with feedback after trying it out Wen

[web2py] My latest lazy web2py deployment

2011-10-31 Thread Casey Schroeder
Keywords: SQLFORM.grid, GAE, fluxflex, Amazon SQLFORM.grid is great. Love it and use it. However, i loved it so much i left GAE to use it (for now). GAE has search limitations as it is on free text and the use of OR - which puts a damper on the out of the box .grid web2py functionality and cust

[web2py] Re: JSONDecodeError: No JSON object could be decoded

2011-10-31 Thread wwwgong
I downloaded the latest web2py 1.99.2 followed web2py book on JSONRPC http://www.web2py.com/book/default/chapter/09#XMLRPC I am able to test jsonrpc service as below: from gluon.contrib.simplejsonrpc import ServerProxy URL = "http://127.0.0.1:8100/myapp/default/call/jsonrpc"; service = ServerPro

[web2py] Re: should this work? {{=form[0][-1]}}

2011-10-31 Thread mart
Awesome! That worked :) Thanks for the help! :) Mart On Oct 31, 12:20 pm, DenesL wrote: > Maybe you are missing some of the other required parts: >  form.custom.begin >  form.custom.end >  form.hidden_fields() > > On Oct 31, 11:35 am, mart wrote: > > > > > > > > > Hi all, > > > thanks

[web2py] Re: should this work? {{=form[0][-1]}}

2011-10-31 Thread mart
hum right! Ok, I think that's my problem. I will work with that! Thanks :) On Oct 31, 12:20 pm, DenesL wrote: > Maybe you are missing some of the other required parts: >  form.custom.begin >  form.custom.end >  form.hidden_fields() > > On Oct 31, 11:35 am, mart wrote: > > > > > > > > > Hi a

[web2py] Re: should this work? {{=form[0][-1]}}

2011-10-31 Thread DenesL
Maybe you are missing some of the other required parts: form.custom.begin form.custom.end form.hidden_fields() On Oct 31, 11:35 am, mart wrote: > Hi all, > > thanks for the replies! > > so, in the view, instead of doing {{=form}}, i wanted to group for > fields of similar type together. > > I

[web2py] Re: Get a error when I click on - admin (currently running) --> Clean button

2011-10-31 Thread Anthony
Please submit a ticket: http://code.google.com/p/web2py/issues/list On Thursday, October 27, 2011 1:18:45 AM UTC-4, Rahul wrote: > > Hi All, > Not sure if this issue with 1.99.2 is reported - > > When I am running web2py on my local (Windows 7, IE9 or Firefox > latest) and going to Insta

[web2py] Left Outer Join Confusion

2011-10-31 Thread Philip Kilner
Hi, I've a query as follows: - elements_pending = db(db.client_delegate.id==request.args(1))\ (db.client_delegate.client_role_id==db.client_role.id)\ (db.role_element.client_role_id==db.client_delegate.client_role_id)\ (db.client_delegate_assessment.role_element_id==db.role_element.id).select()

[web2py] Re: Vim and syntax highlight.

2011-10-31 Thread Cliff
Also you may want Eric McSweens indent/python.vim from here: http://www.vim.org/scripts/script.php?script_id=974 Vast improvement over default Python indenting in Vim. On Oct 31, 4:13 am, Johann Spies wrote: > On 30 October 2011 22:12, f4eedu wrote:, > > > Did anyone managed to set vim showing

[web2py] Re: SQLFORM.grid collection of posts

2011-10-31 Thread Cliff
Javier, thank you. I've been wondering about that myself. Your post has been added to the doc. On Oct 31, 5:15 am, Javier Pepe wrote: > Nick > > I'm use the attribute _class to make a button > >  A('Detalle',_class='button',_href='index/detalle/%s' % row.id) > > This class render a button, same

[web2py] Re: putting a condition in a form

2011-10-31 Thread mart
Hi Denes! Thanks for confirming that. I was hoping it should (would)... Now I just need to find my error. Thanks, Mart :) On Oct 31, 8:45 am, DenesL wrote: > It should still work. > > On Oct 30, 9:02 pm, mart wrote: > > > > > > > > > hum... doesn't seem to be working for me... maybe because I

[web2py] Re: Powertable and DAL count

2011-10-31 Thread ptressel
> Note, technically that last version (i.e., the actual SQL expression) could > be DB specific, so it's best to use the variable (i.e., datasource[count1]). Aha! Thanks for correcting that, Anthony! -- Pat

[web2py] Re: should this work? {{=form[0][-1]}}

2011-10-31 Thread mart
Hi all, thanks for the replies! so, in the view, instead of doing {{=form}}, i wanted to group for fields of similar type together. I tried doing things like this: Request info {{for x in range(0,14):}} {{=form[0][x]}}{{pass}} and in the end, there in the {{

[web2py] Re: Get a error when I click on - admin (currently running) --> Clean button

2011-10-31 Thread Rahul
All, Any update on this? Not a critical issue though never the less its still a bug. Rahul D On Oct 27, 1:18 am, Rahul wrote: > Hi All, >       Not sure if this issue with 1.99.2 is reported - > > When I am running web2py on my local (Windows 7, IE9 or Firefox > latest)  and going to In

[web2py] Re: "Deletable" in Components

2011-10-31 Thread Anthony
Yes, that appears to be a bug. web2y_ajax_init() (in /static/js/web2py_ajax.js) is called when the page is first loaded as well as whenever a new component is loaded. That function binds a number of event handlers, so every time it is called, it binds additional identical event handlers to the

[web2py] P3P and web2py

2011-10-31 Thread horridohobbyist
I'm trying to get P3P to work with web2py. Under Ubuntu and Apache, web2py is configured the standard way: WSGIDaemonProcess web2py user=www-data group=www-data WSGIProcessGroup web2py WSGIScriptAlias / /home/www-data/web2py/wsgihandler.py AllowOverride None Order Allow,Deny

[web2py] "Deletable" in Components

2011-10-31 Thread Philip Kilner
Hi, I've converted some fiddly admin pages to use web2py's Ajax components, which has simplified them enormously. However, where I'm using CRUD update forms and deleteable=True, the delete confirmation pop-up does not work as expected. I do see the "Are you sure you want to delete this obje

[web2py] Re: Powertable and DAL count

2011-10-31 Thread Anthony
Also, see here: https://groups.google.com/d/msg/web2py/0dL-SSPauaI/Qcp1qwQgFy4J -- same thing applies to count and any expression used in a select. In this case, the count1 aggregate in the select should be accessible via datasource[count1], which is equivalent to datasource[str(count1)], which

[web2py] Re: should this work? {{=form[0][-1]}}

2011-10-31 Thread Anthony
If you're using the default table formstyle, that would be the last of the table. The actual submit button would be f[0][-1][-2][0] (i.e., [table][last row][second to last td][submit button]). Also, are you including the rest of the form (i.e., is it between tags)? Anthony On Monday, Octobe

[web2py] Re: putting a condition in a form

2011-10-31 Thread DenesL
It should still work. On Oct 30, 9:02 pm, mart wrote: > hum... doesn't seem to be working for me... maybe because I am using > these things: > > myTable=db.Table(None,'myTable', >     Field('name')) > > db.define_table('stuff',myTable)) > > oh well, I'll keep digging... > > Thanks, > Mart :) > >

[web2py] Re: should this work? {{=form[0][-1]}}

2011-10-31 Thread Anthony
FYI, an easy way to check these things is to start a web2py shell, create a form, and use print statements: >>> form=SQLFORM(db.mytable) >>> print form[0][-1] >>> print form[0][-1][-2][0] On Monday, October 31, 2011 8:40:03 AM UTC-4, Anthony wrote: > > If you're using the default table formsty

[web2py] Re: should this work? {{=form[0][-1]}}

2011-10-31 Thread DenesL
Hi Mart, form[0][-1] is the last row of the form which contains the submit button. What are you trying to do?. On Oct 31, 2:54 am, mart wrote: > Hi, > > in a view, should i be able to execute this submit button? {{=form[0] > [-1]}} > > it does display the button, but doesn't submit.. > > Thank

[web2py] Re: launching web2py from script?

2011-10-31 Thread Tim Korb
Did you resolve this issue any further? I'm getting the same error in a similar setting. I'm trying to run a shell script from within web2py. The shell script launches python web2py to run an asynchronous background task. The task fails with the same "import site" error message. If I start

[web2py] Sequence with app running on GAE

2011-10-31 Thread Uolter
Hi, which is the best strategy to implement a sequence when my app has to be deployed on App engine? Basically, I have a table with more than 100 records and I would like to extract from it 10 random records. I'm just thinking to use a separate table with a counter and the google id from the pri

[web2py] Re: Persistent variables in web2py

2011-10-31 Thread peter
Massimo I am confused now, in your earlier reply you said 'Web applications must be written without persistent objects. State is share using the database, using sessions and using cache. ' and explained why other kinds of persistence were not possible. So are global variables in modules as good

[web2py] lexical scanner

2011-10-31 Thread lucas
hello one and all, i am not sure what i am asking for here, in old days, it was called a lexical scanner. i would like to embed some web2py code like A(...) or URL(...) or even a user defined function like index(...) into raw ascii text, like in a text file or field in a database. is there a fun

Re: [web2py] SQLFORM.grid collection of posts

2011-10-31 Thread Javier Pepe
Nick I'm use the attribute _class to make a button A('Detalle',_class='button',_href='index/detalle/%s' % row.id) This class render a button, same a the buttons on grid. On Fri, Oct 28, 2011 at 11:08 PM, Nik Go wrote: > It mentions: "If you use jqueryui then the links are rendered as butto

Re: [web2py] Re: sqlform.grid

2011-10-31 Thread Johann Spies
Thanks for sharing this. Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3)

[web2py] Re: Powertable and DAL count

2011-10-31 Thread ptressel
Hi, Wes! I didn't get back online til after you had left -- sorry! On Oct 30, 10:57 am, Wes Hall wrote: > I am trying to show a grouped count in a powertable. How do I > reference the count's storage object? > > > def event_list(): >     class Virtual(object): >         @virtualsettings(label='C

Re: [web2py] Vim and syntax highlight.

2011-10-31 Thread Johann Spies
On 30 October 2011 22:12, f4eedu wrote:, > Did anyone managed to set vim showing proper syntax highlight? Yes. The standard installation of vim-gnome on Debian includes syntax highlighting for python. Did you put 'syntax on' in your .vimrc? Regards Johann -- Because experiencing your loyal