Re: [web2py] Re: Fresh install on vps.net, forbidden on admin/default/index

2010-06-22 Thread Álvaro Justen
On Tue, Jun 22, 2010 at 02:29, Giuseppe Luca Scrofani wrote: > In the installation script used: > > http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-ubuntu.sh > > there is this at line 62: > > chown -R www-data:www-data web2py > > I tried to do "chown -R www-data web2py" in home

[web2py] Re: Little little Document Management System with flatbed scanners

2010-06-22 Thread szimszon
Google Wave: https://wave.google.com/wave/waveref/googlewave.com/w+v0AlALXaA On jún. 21, 16:15, szimszon wrote: > There is a document form templates in it. > > You can fill title, tags, body, comments, expiration date fields with > a selected template. > > You can have date and time fields genera

Re: [web2py] Re: Fresh install on vps.net, forbidden on admin/default/index

2010-06-22 Thread Giuseppe Luca Scrofani
In the installation script used: http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-ubuntu.sh there is this at line 62: chown -R www-data:www-data web2py I tried to do "chown -R www-data web2py" in home dir and restart apache as suggested but the situation is not changed, Im sti

[web2py] Re: login_bare() blows up on GAE

2010-06-22 Thread mdipierro
You have something too large in the session and the datastore refuses to store the session in the database. On Jun 21, 11:32 pm, NickFranceschina wrote: > I'm not sure what I'm doing wrong...   I've built a JSON service on > top of Web2py that uses Auth.login_bare() to authenticate via > AJAX...

Re: [web2py] Re: Fresh install on vps.net, forbidden on admin/default/index

2010-06-22 Thread Giuseppe Luca Scrofani
I've looked in /admin/default/errors/admin and there is nothing. Until now I've tried to upload appliances, but now I've tried also to create one, message is "unable to create application x" (x is for name of application obviously) I suppose it is a permission problem, web2py seem unable to create

[web2py] Re: pyamf installation issues

2010-06-22 Thread Yarko Tymciurak
On Jun 21, 9:09 pm, Yarin wrote: > Roger that Yarko- I will do as you say.  Big thanks to you and Massimo > too for sticking with me today- It was my first time on this board, > and my first week with web2py, and I've been nothing but impressed > with what I've seen- Awesome framework, great suppo

Re: [web2py] Re: OAuth and Web2Py Tutorial

2010-06-22 Thread Mathieu Clabaut
Nice.. Thank you for sharing! On Mon, Jun 21, 2010 at 18:45, mdipierro wrote: > +1 > > On Jun 21, 10:44 am, Doug Warren wrote: > > I wrote a small tutorial on how to use OAuth with web2py by linking a > > session with a Twitter account. A future update will include > > embedding the access tok

Re: [web2py] Re: Funny ordering situation...

2010-06-22 Thread Jason (spot) Brower
It seems it doesn't work. Perhaps I am overlooking a piece of the syntax. I am doing this... orders = db((db.orders.position != 0) & (db.orders.paint==db.paint.id).select(orderby=db.orders.state) + db(db.orders.state == "remove").select() But it returns an error saying... unsupported operand type

[web2py] Re: proposal of introducing generic.load

2010-06-22 Thread Iceberg
Massimo, {{=BEAUTIFY(response._vars.values()[0])}} is still preferred in case the controller returns something like {'': ['a', 'b', {'foo': 'bar'}]} By the way, here is another proposal. Since you agree on at least "let me think", please also consider change the generic.html into this. {{ext

[web2py] Re: Fresh install on vps.net, forbidden on admin/default/index

2010-06-22 Thread Jason Lotz
Step 1 - Shutdown apache Step 2 - Become www-data user Step 3 - Start web2py from terminal cmd Step 4 - Kill web2py (ctl + z) Step 5 - Restart Apache This is the work-around provided by cjs on the vps.net forum. http://www.vps.net/forum/public-forums/tutorials-and-how-tos/2115-web2py-on-vps-net F

[web2py] crud.create hide field

2010-06-22 Thread Jean-Guy
Hello, I would like to use crud.create in my controler instead of SQLForm, but I need to select the fields to be show... form = SQLFORM(db.atable,\ fields=['field1',\ 'field2',\ 'field3',\

[web2py] Re: www.augmi.com

2010-06-22 Thread ChrisM
Thanks Richard, I use janrain/rpx for auth, probably because it seemed the easiest to implement. I have not thought long term as to whether this is the best option. The mood indicators will probably need to be split into public and private - I wish to add indicators for tasks one might be working o

Re: [web2py] Re: Generate input from db field...

2010-06-22 Thread Andrew Buchan
Massimo, Thanks for that, I was about to reply saying that JQuery can't do what I want it to, then thought I'd test my statement before making it. Here's the code for anyone who's interested: Its all in the controller, as I pretty much use only one single multi-purpose view for all my pages :-)

Re: [web2py] Re: Generate input from db field...

2010-06-22 Thread Andrew Buchan
Hi Massimo, I posted the code below before checking if the form would actually submit. What now happens is that all the fields are put through validation, including those which I hid with JQuery, and needless to say, most of them fail because they're empty! There's no way I can do away with the v

[web2py] Re: WordPressClone/PyPress GAE fix

2010-06-22 Thread molhokwai
A reply to the message I saw while in a google search for "pypress"... Saw it on osdir.com (I'm sent in a redirection loop when I try to access the web2py-users group). Arghh... would have eventually saved me time if I had found out about the pypress for gae project... But we can merge and have an

Re: [web2py] Re: web2py suggestions

2010-06-22 Thread Doug Warren
I think part of the problem is a lack of dog food. I started looking last night at the state of web2py testing, and was amazed that the gluon/tests directory is not included in any of the 'source' distributions. In fact it's not in the Google code build either. After downloading the bazaar trunk

[web2py] Re: Funny ordering situation...

2010-06-22 Thread mdipierro
Sorry, not ... +... but ...| On Jun 22, 3:38 am, "Jason (spot) Brower" wrote: > It seems it doesn't work.  Perhaps I am overlooking a piece of the syntax. > I am doing this... > orders = db((db.orders.position != 0) & > (db.orders.paint==db.paint.id).select(orderby=db.orders.state) + > db(db.

[web2py] Re: crud.create hide field

2010-06-22 Thread mdipierro
db.atable.field8.writable=db.atable.field8.readable=False form=crud.create(db.atable) On Jun 22, 7:23 am, Jean-Guy wrote: > Hello, > > I would like to use crud.create in my controler instead of SQLForm, but > I need to select the fields to be show... > > form = SQLFORM(db.atable,\ >        

[web2py] Re: Generate input from db field...

2010-06-22 Thread mdipierro
This is no longer a client issue. I think you do handle the problem correctly client side. The problem is that if some fields exist in db but you do not want to insert them you need to change the validator from db.table.field.requires=blabla() into db.table.field.requires=IS_EMPTY_OR(blabla())

[web2py] Re: web2py suggestions

2010-06-22 Thread mdipierro
On Jun 22, 10:30 am, Doug Warren wrote: > I think part of the problem is a lack of dog food.  I started looking > last night at the state of web2py testing, and was amazed that the > gluon/tests directory is not included in any of the 'source' > distributions.  In fact it's not in the Google cod

Re: [web2py] Re: Fresh install on vps.net, forbidden on admin/default/index

2010-06-22 Thread Álvaro Justen
On Tue, Jun 22, 2010 at 06:04, Jason Lotz wrote: > Step 1 - Shutdown apache > Step 2 - Become www-data user > Step 3 - Start web2py from terminal cmd > Step 4 - Kill web2py (ctl + z) Ctrl+z does not kill any process - it just *stops* (pause) the actual process - it'll be running, but in pause sta

Re: [web2py] Re: Funny ordering situation...

2010-06-22 Thread Álvaro Justen
On Tue, Jun 22, 2010 at 13:06, mdipierro wrote: > Sorry, not ... +... but ...| > > On Jun 22, 3:38 am, "Jason (spot) Brower" wrote: >> unsupported operand types for + "Rows" and "Rows" Maybe a good idea to add support to + and - operators on class Rows? -- Álvaro Justen - Turicas http://b

[web2py] Re: Fixed book or source to book?

2010-06-22 Thread Stefan Scholl
On Jun 21, 1:50 pm, cjrh wrote: > On Jun 21, 9:59 am, Stefan Scholl wrote: > > > There are (3 month old) comments on those > > pages who address this, but nothing got changed. > > I fixed a couple recently.  If you send me links, I can try to get a > few more? Very long line at the end: http://w

[web2py] Re: Fixed book or source to book?

2010-06-22 Thread mdipierro
thanks On Jun 22, 11:59 am, Stefan Scholl wrote: > On Jun 21, 1:50 pm, cjrh wrote: > > > On Jun 21, 9:59 am, Stefan Scholl wrote: > > > > There are (3 month old) comments on those > > > pages who address this, but nothing got changed. > > > I fixed a couple recently.  If you send me links, I ca

[web2py] Re: Funny ordering situation...

2010-06-22 Thread mdipierro
I would take a patch for -, Would + work like | or something different? On Jun 22, 11:53 am, Álvaro Justen wrote: > On Tue, Jun 22, 2010 at 13:06, mdipierro wrote: > > Sorry, not ... +... but ...| > > > On Jun 22, 3:38 am, "Jason (spot) Brower" wrote: > >> unsupported operand types for + "R

Re: [web2py] Re: Funny ordering situation...

2010-06-22 Thread Jason Brower
I like the - and plus support. It's pretty logical. But I don't want to take a big hit for speed on it. :D BR, JB On Tue, 2010-06-22 at 10:14 -0700, mdipierro wrote: > I would take a patch for -, Would + work like | or something > different? > > On Jun 22, 11:53 am, Álvaro Justen wrote: > > On

Re: [web2py] Re: Anvanced applications in gae

2010-06-22 Thread Carles Gonzalez
My english is horrible, an maybe it wasn't clear, but that was exactly my problem :). Currently i'm looking at the code massimo told me about but i think that the problem isn't here. I explain: the parent is assigned when the child entity is created (at the constructor level), to ensure all entit

Re: [web2py] Re: Fresh install on vps.net, forbidden on admin/default/index

2010-06-22 Thread Giuseppe Luca Scrofani
Jason I've tried step by step your list of actions in exact order and it worked! Thanks friends, another problem resolved. Now I have a working remote web2py installation! Now I see a different world... vps.net seem a very good service, it is my first dedicated server.

[web2py] WordpressClone/PyPress for GAE: pypress4gae

2010-06-22 Thread molhokwai
Hello All, Voilà. *Joined *this project: http://pp4gae.appspot.com/ and Implemented a fix to be able to log in with gae google-user login... Also added an "Issue + Fix + Recommendation" here http://code.google.com/p/pypress4gae/issues/detail?id=3 (with attached .W2p app & all). Tomorrow (or in 24

[web2py] Re: login_bare() blows up on GAE

2010-06-22 Thread NickFranceschina
OK... I had uploaded a 900+kb photo by mistake (thought I had uploaded 100k photo) also just realized that the schema for an "upload" Field on GAE includes an extra 'blob' type on the record (obviously, since we can't store files)... and my code was trying to convert records to JSON and blowing up

[web2py] Re: Generate input from db field...

2010-06-22 Thread Yarko Tymciurak
You need to think about this --- On Jun 22, 11:15 am, mdipierro wrote: > This is no longer a client issue. I think you do handle the problem > correctly client side. > The problem is that if some fields exist in db but you do not want to > insert them you need to change the validator from > > db.

[web2py] can menu item open in new window?

2010-06-22 Thread Youngblood
I have an item in my menu that actually directs to an outside webpage. When someone clicks on the menu item i would like for it to open in a new window instead of redirecting from our page. adding the url to the response.menu was easy, but i see no way to set Menu to open this page in a seperate wi

[web2py] Re: login_bare() blows up on GAE

2010-06-22 Thread NickFranceschina
on a related note... web apps rarely need to load the blob data at the same time as the record... the record should get loaded and then that will create a link/img on a page which will make a separate request for the blob. and if I've read correctly... GAE always pulls the entire object when you

[web2py] Concatenate str and int values in Model

2010-06-22 Thread greenpoise
How could I concatenate two db field values in my Model?? My example is this: db.define_table('vlanman', Field('person',db.person,default=None), Field('switchselect'), Field('locationprefix'), Field('patchpanel'), Field('patchnumber'), Field('switchnumber'), Field('loca

[web2py] Re: Initialize some code for other controllers

2010-06-22 Thread pk
thanks for your help On 21 Jun., 18:46, mdipierro wrote: > You can put it in a function in a module but you still need to import > it and call the function where needed. You can put it a model if all > controller need it or a in a controller if only one needs it. > > On Jun 21, 10:49 am, Doug War

[web2py] How to determine request is GET or POST ?

2010-06-22 Thread Phyo Arkar
Hello all I neeed to Determine incoming request from a form , coming from PHP page hosted at other site. How can i determine Post or GET ? Is that it ? any better way? if request.get_vars : res="Request Is GET" else if request.post_vars:

[web2py] database migration question

2010-06-22 Thread Peter Woolf
Hi All, I'm trying to migrate a database from sqlite to mysql and am having some migration issues with foreign key references. In my original tables I have entries that have been deleted: table 1 id value 1 a 2 b 3 c 5 e (where the entry id=4 has been deleted) When

[web2py] Re: How to determine request is GET or POST ?

2010-06-22 Thread mr.freeze
I would use request.env.request_method It will be GET or POST On Jun 22, 4:19 pm, Phyo Arkar wrote: > Hello all > > I neeed to Determine incoming request from a form , coming from PHP page > hosted at other site. > > How can i determine Post or GET ? > > Is that it ? any better way? > > if reques

Re: [web2py] Re: crud.create hide field

2010-06-22 Thread Jean-Guy
Too easy : Like web2py! I should had think about it... Thank you. Regards. Jonhy On 2010-06-22 12:11, mdipierro wrote: db.atable.field8.writable=db.atable.field8.readable=False form=crud.create(db.atable) On Jun 22, 7:23 am, Jean-Guy wrote: Hello, I would like to use crud.create

Re: [web2py] Re: How to determine request is GET or POST ?

2010-06-22 Thread Phyo Arkar
Thanks a lot, Ok , i would use it , better way. On Tue, Jun 22, 2010 at 9:25 PM, mr.freeze wrote: > I would use request.env.request_method > It will be GET or POST > > On Jun 22, 4:19 pm, Phyo Arkar wrote: > > Hello all > > > > I neeed to Determine incoming request from a form , coming from PHP

[web2py] dynamically growing form?

2010-06-22 Thread Doug Warren
I started writing this a few times but I kept deleting it as I wasn't very clear so I'll try again. I'm looking to create a form that has some tabular data in it, 2 columns, but the trick is that each submission of the form will have between 2-10 rows. Each submission represents a single working

[web2py] Downloading audio from "private" folder

2010-06-22 Thread richard_gor...@verizon.net
Continuing this old thread: http://groups.google.com/group/web2py/browse_thread/thread/59b66b3a242d89f1/7183f04206074ebf?lnk=gst&q=download_audio#7183f04206074ebf Anybody know why the following code isn't working? I'm trying to implement almost exactly what Massimo suggested in the previous thread

[web2py] Re: Downloading audio from "private" folder

2010-06-22 Thread weheh
Yarko - if you are moderating this group, would you mind striking this last post because it shows my raw email. Don't want to be spammed to death. On Jun 22, 11:34 pm, "richard_gor...@verizon.net" wrote: > Continuing this old > thread:http://groups.google.com/group/web2py/browse_thread/thread/59

[web2py] CLOSED

2010-06-22 Thread weheh
On Jun 22, 11:34 pm, "richard_gor...@verizon.net" wrote: > Continuing this old > thread:http://groups.google.com/group/web2py/browse_thread/thread/59b66b3a24... > > Anybody know why the following code isn't working? I'm trying to > implement almost exactly what Massimo suggested in the previous

[web2py] Downloading from "private" folder

2010-06-22 Thread weheh
Continuing this old thread: http://groups.google.com/group/web2py/browse_thread/thread/59b66b3a24... I'm having trouble getting an embedded mp3 from showing up in my web page. I'm trying to implement this almost exactly as Massimo suggested in the above thread. Anybody know why my code below isn't

[web2py] Re: login_bare() blows up on GAE

2010-06-22 Thread mdipierro
> but as for automating the schema maintenance... if I create >   auth_user.Field('photo','upload') > instead of creating a 'photo' (string) and 'photo_blob' (blob) on the > same table, it should maybe create just 'photo' (string) and another > table called 'auth_user_photo' with one field and a r

[web2py] Re: Concatenate str and int values in Model

2010-06-22 Thread mdipierro
db.vlanman.location.compute=lambda r: '%s%s' % (r['locationprevis'],r['patchnumber']) On Jun 22, 3:40 pm, greenpoise wrote: > How could I concatenate two db field values in my Model?? My example > is this: > > db.define_table('vlanman', >     Field('person',db.person,default=None), >     Field('s

[web2py] Re: database migration question

2010-06-22 Thread mdipierro
import_from_csv_file(... id_map={}..) If you import multiple tables and pass the same id_map (an empty dict) it will make sure references are not-broken for those tables. It will still breaks references between tables that are imported and tables that are not. On Jun 22, 4:23 pm, Peter Woolf wro