Re: [web2py] there seems to me a new sql designer around

2010-09-03 Thread Bruno Rocha
or you are talking about a new version? 2010/9/4 Bruno Rocha > its a bit old, i use that since 2009, i always tought thats made by the > same person who made gaesql.appspot.com, but this one we can install. > > 2010/9/4 mdipierro > > >> http://www.tuxtilt.com/web2py-modelagem-de-dados/?utm_sour

Re: [web2py] there seems to me a new sql designer around

2010-09-03 Thread Bruno Rocha
its a bit old, i use that since 2009, i always tought thats made by the same person who made gaesql.appspot.com, but this one we can install. 2010/9/4 mdipierro > > http://www.tuxtilt.com/web2py-modelagem-de-dados/?utm_source=feedburner&utm_medium=twitter&utm_campaign=Feed%3A+Tuxtilt+%28Tuxtilt%

Re: [web2py] RESTful URLs

2010-09-03 Thread bally boy
Thanks Jonathan! On Sat, Sep 4, 2010 at 10:18 AM, Jonathan Lundell wrote: > On Sep 3, 2010, at 9:28 PM, bally boy wrote: > > Hi is there a way to generate RESTful URLS. Let me explain:- > 1. I have an app called 'app' > 2. a controller called 'cont' > 3. a function called 'func' > > Instead of be

Re: [web2py] RESTful URLs

2010-09-03 Thread Jonathan Lundell
On Sep 3, 2010, at 9:28 PM, bally boy wrote: > Hi is there a way to generate RESTful URLS. Let me explain:- > 1. I have an app called 'app' > 2. a controller called 'cont' > 3. a function called 'func' > > Instead of being called by the url > http://.../app/cont/func > Can it be called like > htt

[web2py] RESTful URLs

2010-09-03 Thread bally boy
Hi is there a way to generate RESTful URLS. Let me explain:- 1. I have an app called 'app' 2. a controller called 'cont' 3. a function called 'func' Instead of being called by the url http://.../app/cont/func Can it be called like http://../func directly.. I am sure that it can be done ... just th

[web2py] there seems to me a new sql designer around

2010-09-03 Thread mdipierro
http://www.tuxtilt.com/web2py-modelagem-de-dados/?utm_source=feedburner&utm_medium=twitter&utm_campaign=Feed%3A+Tuxtilt+%28Tuxtilt%29&utm_content=Google+Feedfetcher

Re: [web2py] Re: Thank You Massimo and all others

2010-09-03 Thread bally boy
Have already, started doing that Massimo. And I am sure that anybody who uses it once will definitely not go back. On Sat, Sep 4, 2010 at 2:55 AM, mdipierro wrote: > You should be able to edit the book online. Get an account and email > to ask editor permissions. Or simply email me the list

Re: [web2py] web2py Africa

2010-09-03 Thread Alexey Nezhdanov
These times fans don't need to be around the place where the site located. More than this - it says that it runs on AppEngine :) On Sat, Sep 4, 2010 at 1:23 AM, hcvst wrote: > Hi, > http://www.domain-name-registration.co.za powered by w2p, > South African (co.za) domain name registration. > Any

[web2py] Re: plugin_wiki: who is authorized?

2010-09-03 Thread mdipierro
can you check the value plugin_wiki_editor in the controller? On Sep 3, 5:04 pm, Johann Spies wrote: > When tryinghttp://localhost:8000/myapp/plugin_wiki I get an error message: > > Not authorized > ACCESS DENIED > Insufficient privileges. > > I see in the model for plugin_wiki: > > DEFAULT = { >

Re: [web2py] Re: ANN: first pre-alfa release (v0.2) of Web2Py_CC

2010-09-03 Thread Stef Mientki
thanks Pai, On 03-09-2010 23:12, Pai wrote: > ok i got it figure out. i have to install several more packages > before i get it to work. > > i have to install > - PIL I don't understand why you need PIL, can't find it, well check it > - BeautifulSoup Yes, I'll add to the list > - ComTypes Yes fo

[web2py] Re: Parent -> Child Models in a single form

2010-09-03 Thread portly.shor...@googlemail.com
I completely agree - one of the really nice things about Django is that it allows you to have parent -> child models in a single form. The example from Dominic seems quite complex. Could anyone suggest some ideas of how we could implement this functionality within Web2Py - I'm happy to try and cod

[web2py] plugin_wiki: who is authorized?

2010-09-03 Thread Johann Spies
When trying http://localhost:8000/myapp/plugin_wiki I get an error message: Not authorized ACCESS DENIED Insufficient privileges. I see in the model for plugin_wiki: DEFAULT = { 'editor' : auth.user and auth.has_membership(role='editor') or auth.user_id==1, # if current user a editor?

[web2py] Re: Thank You Massimo and all others

2010-09-03 Thread mdipierro
You should be able to edit the book online. Get an account and email to ask editor permissions. Or simply email me the list of errors. Thanks. On Sep 3, 4:12 pm, Gary Herron wrote: > As a new user of web2py, I agree.  The framework has been a joy and the > book (third edition) has been very helpf

[web2py] web2py Africa

2010-09-03 Thread hcvst
Hi, http://www.domain-name-registration.co.za powered by w2p, South African (co.za) domain name registration. Any w2p fans in/around Joburg? HC

Re: [web2py] Re: Thank You Massimo and all others

2010-09-03 Thread Gary Herron
As a new user of web2py, I agree. The framework has been a joy and the book (third edition) has been very helpful. And in regards to the book, I've found a number of errors, mostly syntax problems (both English and Python). Where, if anywhere, should such things be reported? -- Gary Herron

[web2py] Re: ANN: first pre-alfa release (v0.2) of Web2Py_CC

2010-09-03 Thread Pai
ok i got it figure out. i have to install several more packages before i get it to work. i have to install - PIL - BeautifulSoup - ComTypes - ConfigObj hopefully this will help others in installing. I'll play will it and let you know if I find anything. Pai On Sep 3, 3:35 pm, Pai wrote: > st

[web2py] Error in the web2py book

2010-09-03 Thread Gustavo
Hi Massimo, We found an error in the internationalization section, in the latter one paragraph reads [world "test"], and should be [word "test"], and we do not understand the meaning of entire paragraphs. Best Regards, Latinux Press Team

[web2py] Re: Parent -> Child Models in a single form

2010-09-03 Thread mart
This sounds a lot like sub-forms (ends up being part of the form, but can be managed separately, even at run time). I worked on Adobe's Form designer (which is bundled with a full version of Acrobat)... if we we don't have sub-forms in web2py, I would strongly recommend we create them :) Mart On

[web2py] Re: ANN: first pre-alfa release (v0.2) of Web2Py_CC

2010-09-03 Thread Pai
still more problem D:\Development\python\web2py_cc\Web2Py>python Web2py_CC.py Traceback (most recent call last): File "Web2py_CC.py", line 19, in from gui_support import * File "D:\Development\python\web2py_cc\support\gui_support.py", line 10, in from language_support

[web2py] Re: Thank You Massimo and all others

2010-09-03 Thread mdipierro
Thanks you in the name of everybody here. Help us spread the voice. The more users the better web2py will become. On Sep 3, 2:22 pm, bally boy wrote: > Hi guys.. I have been working across plenty of frameworks, from > django, to pylons to turbogears and more recently to flask. And yes > each one

[web2py] Re: Parent -> Child Models in a single form

2010-09-03 Thread mdipierro
you are right it would not but it may be a way to store multiple addresses (as a list of strings) without creating a table of addresses. On Sep 3, 1:10 pm, "portly.shor...@googlemail.com" wrote: > Hi Mdipierro > > firstly thank you so much for Web2Py - the more I look into it the > more I love it

[web2py] Thank You Massimo and all others

2010-09-03 Thread bally boy
Hi guys.. I have been working across plenty of frameworks, from django, to pylons to turbogears and more recently to flask. And yes each one of them is beautiful and has that feel of awesomeness in their own way. All these days while comparing frameworks I used to come across web2py but then there

[web2py] Re: dashes in controller names?

2010-09-03 Thread Kevin
I agree, and it's often said that there should be one, and only one, URL for each resource. How does googlebot (and other spiders/SEO- related concerns) feel about redirects? I presume they would all handle '301 moved permanently' quite well, but what about '302 found' or '307 temporary redirect'

[web2py] Re: Parent -> Child Models in a single form

2010-09-03 Thread portly.shor...@googlemail.com
Hi Mdipierro firstly thank you so much for Web2Py - the more I look into it the more I love it. I'm slightly confused by your answer however - how would list:string help me input data for two models at once? kind regards Portly On Sep 3, 5:38 pm, mdipierro wrote: > With the new list:string i

[web2py] Re: strange problem

2010-09-03 Thread mdipierro
I cannot reproduce the problem. Can you post your model. can you also post the output of print(db(db.yourtable.id==id).select()) for the id of a record that manifest the problem? On Aug 31, 4:02 pm, Richard Vézina wrote: > Hello, > > Sorry for the delay I have been out off time... > > Ok > > Th

Re: [web2py] Re: strange problem

2010-09-03 Thread Richard Vézina
UP! 2010/8/31 Richard Vézina > Hello, > > Sorry for the delay I have been out off time... > > Ok > > The problem is that you can't not see which id are selected if > "multiple=True" > > db.databasetable.field.requires=\ > IS_IN_DB(db,'othertable.id',multiple=True) > > crud.update(db.database

[web2py] Re: deployment problem

2010-09-03 Thread VP
thank you. This solved that. I created www-data as root and forgot to give permission to www-data. On Sep 3, 11:46 am, mdipierro wrote: > If the ticket is "unrecoverable" it means web2py started (was > readable) but was not able to write on the filesystem. So the ticket > was not storead anyw

[web2py] Re: deployment problem

2010-09-03 Thread mdipierro
If the ticket is "unrecoverable" it means web2py started (was readable) but was not able to write on the filesystem. So the ticket was not storead anywhere. Make sure the user who runs web2py has permission to write into the web2py/applications" folder. If you run as www-data cd web2py chown -R ww

[web2py] deployment problem

2010-09-03 Thread VP
followed the instructions to install it on a ubuntu (10.04) server. AFter installation, I opened up the link to: welcome/default/index this is the error: Internal error Ticket issued: unrecoverable == I couldn't view the ticket on the browser and I have no idea where that ticket is on the serv

[web2py] Re: Install pyodbc in standalone web2py

2010-09-03 Thread mdipierro
We are considering making pyodbc part of the standard distribution. It is going to take a little way since the process of building binary distribution and is a little cumbersome. On Sep 3, 11:27 am, jrpfinch wrote: > I am using web2py.exe from the command line instead of a proper > installation o

[web2py] Re: Hi a beginner's question

2010-09-03 Thread Matias
El 03/09/10 17:09, mdipierro escribió: there must be a typo in your code since element(xxx) just calls elements(xxx)[0]. Please email a sample string a to reproduce the problem. Google scrambled your message and I cannot check it. On Sep 2, 2:25 am, b vivek wrote: Hii, I just hopped onto web2p

[web2py] Re: Parent -> Child Models in a single form

2010-09-03 Thread mdipierro
With the new list:string it should be easy to create a widget for it. WIll look into it. On Sep 3, 10:14 am, "portly.shor...@googlemail.com" wrote: > Thank you very much for this Dominic. I've had a quick look and there > is a lot to take in (I guess I was hoping for a much simpler solution > lol

[web2py] Install pyodbc in standalone web2py

2010-09-03 Thread jrpfinch
I am using web2py.exe from the command line instead of a proper installation of python as I have no access to my registry. Is it possible to install pyodbc to such an instance of web2py?

[web2py] Re: beginner question 2

2010-09-03 Thread mdipierro
Do not do this with the web based shell. There is a problem with mantaining the db state in the shell. We are looking it into it. On Sep 2, 4:51 am, b vivek wrote: > Ok, I am unable to use the shell for checking out mysql db. I have the > mysqldb driver installed and it works properly when I edit

[web2py] Re: Parent -> Child Models in a single form

2010-09-03 Thread portly.shor...@googlemail.com
Thank you very much for this Dominic. I've had a quick look and there is a lot to take in (I guess I was hoping for a much simpler solution lol). regards Portly On Sep 3, 1:28 pm, Dominic wrote: > We (Sahana-Eden) use to do such things with web2py, in connection with > a RESTful API. > > See fo

[web2py] Re: Hi a beginner's question

2010-09-03 Thread mdipierro
there must be a typo in your code since element(xxx) just calls elements(xxx)[0]. Please email a sample string a to reproduce the problem. Google scrambled your message and I cannot check it. On Sep 2, 2:25 am, b vivek wrote: > Hii, I just hopped onto web2py. And it is just beautiful. I am going

[web2py] Re: upgraded to 1.83.2 with db table file appears corrupted

2010-09-03 Thread mdipierro
Can you email me your databases/*auth_user.table file? Massimo On Sep 2, 7:14 pm, vince wrote: > i am using sqlite with default auth table, no notnull=True. was > upgrade from 1.76.5 > > auth.define_tables(migrate=False) seems to fix the problem so far. > > On Sep 2, 12:09 pm, mdipierro wrote:

[web2py] Re: Disable authentication for bots

2010-09-03 Thread mdipierro
I see. Online you can find a list of ip addresses used by those bots. Assuming you have the list of IPS of allowed bots in BOTS you can replace @auth.requires_login() with @auth.requires(auth.user or request.client in BOTS) On Sep 2, 9:57 pm, Narendran wrote: > Thanks for the reply Massimo. >

[web2py] Re: tools.py self.settings.expiration

2010-09-03 Thread mdipierro
thanks this was also a bug in the code that got fixed recently. On Sep 3, 7:45 am, ron_m wrote: > I was looking at the nightly and noticed long_expiration was changed > to add *24 for one month. > In the line above self.settings.expiration either the comment is wrong > or the *24 should be applie

[web2py] Re: jquery and date field

2010-09-03 Thread mdipierro
You are using plugin_jqgrid and not plugin_wiki, right? You have bigger problem that that since plugin_jqgrid is vilenrable to XSS injections. Uninstall plugin_jqgrid, install plugin_wiki and replace plugin_jqgrid() with plugin_wiki.widget('jqgrid',...) On Sep 3, 7:00 am, ceriox wrote: > i

[web2py] tools.py self.settings.expiration

2010-09-03 Thread ron_m
I was looking at the nightly and noticed long_expiration was changed to add *24 for one month. In the line above self.settings.expiration either the comment is wrong or the *24 should be applied there as well. self.settings.expiration = 3600 # one day self.settings.long_exp

[web2py] Re: Parent -> Child Models in a single form

2010-09-03 Thread Dominic
We (Sahana-Eden) use to do such things with web2py, in connection with a RESTful API. See for example: http://vita.sahanafoundation.org/eden/pr/person/1 http://vita.sahanafoundation.org/eden/pr/person/1/address It can also speak several XML formats, of course, and JSON; http://vita.sahanafoundati

[web2py] Re: jquery and date field

2010-09-03 Thread ceriox
i find the problem my date have this format: gg/mm/ if i change the date format with -mm-dd all work how can resolve this problem? (italian format is the first gg/mm/ and the calendar components retun this format) On 3 Set, 08:38, ceriox wrote: > i follow your instruction: > > fire

[web2py] Re: OperationalError: no such table:

2010-09-03 Thread mdipierro
This is a known problem with the web based shell likely due to database timeout. Do not use the web shell for db operations. Instead use a the regular shell: python web2py.py -S yourapp -M -N until we figure out why the db gets closed. On Sep 3, 2:45 am, Geo wrote: > All this web2py is new for

[web2py] Parent -> Child Models in a single form

2010-09-03 Thread portly.shor...@googlemail.com
Is it possible to edit a parent + child model as a single form and automatically create both the parent and respective children in the database. As an example, say I have a Person model and the person can have multiple Addresses. Is it possible to create a Person and add several addresses on a sin

[web2py] Re: Deploying web2py on linux (Redhat or others) on cpanel or other ways

2010-09-03 Thread Martin.Mulone
Use mod_wsgi in production: http://web2py.com/book/default/chapter/11#Apache-setup http://web2py.com/book/default/chapter/11#mod_wsgi On Sep 3, 6:03 am, Rahul wrote: > Hi Kenneth, >          Thank you for getting back so quickly, I think thats right he > was trying to configure it on the same se

[web2py] Re: Deploying web2py on linux (Redhat or others) on cpanel or other ways

2010-09-03 Thread Rahul
Hi Kenneth, Thank you for getting back so quickly, I think thats right he was trying to configure it on the same server on which Apache is already running. It would be great if you could post some ways for the below - @You should serve your web2py application thru Apache, meaning setting u

Re: [web2py] Scaffolding app with Twitter OAuth1.0a auth

2010-09-03 Thread Albert Abril
Ok, I guess it's a file created by me defining twitter config: CLIENT_ID CLIENT_SECRET AUTH_URL TOKEN_URL ACCESS_TOKEN_URL On Fri, Sep 3, 2010 at 9:47 AM, Albert Abril wrote: > Woah! I didn't read this mail yet. So much thank you, it will help me. > > By now, I'm trying to get helloTwitter runnin

Re: [web2py] Scaffolding app with Twitter OAuth1.0a auth

2010-09-03 Thread Albert Abril
Woah! I didn't read this mail yet. So much thank you, it will help me. By now, I'm trying to get helloTwitter running from a basic web2py install on webfaction. but I'm getting an error, it couldn't load the "twitter_oauth_data*"* Traceback (most recent call last): File "gluon/restricted.py", l

[web2py] Re: OperationalError: no such table:

2010-09-03 Thread Geo
All this web2py is new for me so it's likely that I messed up something. It's all part of a monitoring page where I can check the processes running on the server. from: applications\monitor\views\default\index.html I call: {{=TD(LOAD(url=URL(r=request,f='getProcesStatus',args=proces_key), ajax=Tru