[web2py] Pengoworks autocomplete.

2011-04-21 Thread annet
I am using the Pengoworks autocomplete to workaround I problem I am having with web2py's autocomplete widget. In previous versions of web2py I had the Pengoworks autocomplete work correctly, at the moment I struggle with the drop box the autocomplete produces. This is the list of cities it should

[web2py] A question on sitepoint

2011-04-21 Thread luckysmack
Thought some other more experienced devs might want to chime in: http://www.sitepoint.com/forums/perl-python-other-languages-36/writing-blog-using-web2py-django-752190.html

Re: [web2py] Re: OpenID - Best Example

2011-04-21 Thread Jason (spot) Brower
Profit ... Classic I too will be using this feature soon in my software. Thanks for the pointer. BR, Jason On Wed, Apr 20, 2011 at 8:53 PM, Nite nitese...@gmail.com wrote: Well... this turns out to be an easy one to answer *if* you know where to look. Unfortunately the abundance of ways

[web2py] custom error ticket message

2011-04-21 Thread selecta
I found that in rewrite.py def _params_default(app=None): there is p.error_message_ticket = ... Is there a way to customise/overwrite this error messag in my application? or do i have to edit rewrite.py to customize it

Re: [web2py] A question on sitepoint

2011-04-21 Thread Martín Mulone
Powerpack http://martin.tecnodoc.com.ar/default/post/2011/04/18/12_powerpack-intro and http://martin.tecnodoc.com.ar/default/post/2011/04/21/14_installing-powerpack-from-zero 2011/4/21 luckysmack luckysm...@gmail.com Thought some other more experienced devs might want to chime in:

Re: [web2py] Re: Web2py GAE integration

2011-04-21 Thread Ahmed Sharkawy
*We solve the problem* *by downloading the file from the web2py project page in google code and it contain more files and I think it was the problem* * * *also configuration file as mentioned in the book* *gaehandler * ***app,yaml* * * *thanks for your help* * * On 27 March 2011 17:52:16 UTC+3,

[web2py] Re: custom error ticket message

2011-04-21 Thread Anthony
I think you should be able to specify that in routes.py, as explained here: http://web2py.com/book/default/chapter/04#Routes-on-Error On Thursday, April 21, 2011 5:44:26 AM UTC-4, selecta wrote: I found that in rewrite.py def _params_default(app=None): there is p.error_message_ticket

[web2py] Re: MULTIUSER MODE problem

2011-04-21 Thread Massimo Di Pierro
Please open an issue in google code On Apr 21, 12:51 am, VP vtp2...@gmail.com wrote: when a user in MULTIUSER MODE deletes his app, it gets deleted but the link is still there.  I think the appropriate entry in database needs to be removed.

[web2py] New here and web2py looks so easy

2011-04-21 Thread Sea water
I just got it today and like the look of it. I havent figured out how to paste my already written hmtl and css into newly created pages yet but Ill get there. The interface looks great and am glad it seems easy. One thing that does get me is how to preview any pages.??? On wp you just press

[web2py] Re: custom error ticket message

2011-04-21 Thread selecta
that is not so nice, it would be a lot better if i could define the error message in my application the reason is that i created an issue tracker plugin that should directly be displayed with the error message however since this is a plugin it may not be available in every application, also the

[web2py] Re: New here and web2py looks so easy

2011-04-21 Thread Anthony
To view your pages, you have to run web2py (i.e., the web2py built-in server) on your local machine. See http://web2py.com/book/default/chapter/03#Startup for instructions. Once web2py is running, go to http://127.0.0.1:8000/yourapp/yourcontroller/yourfunction to view a particular page. You

[web2py] IMPROVED: show error tickets directly if you are a authorized web2py admin

2011-04-21 Thread selecta
this patch fixes the files needed to show error tickets directly if you are logged in into the admin app if not you will only see the old error message, nothing else http://code.google.com/p/web2py/issues/detail?id=241 massimo, it would be really nice if you could look at this and include it

[web2py] Re: custom error ticket message

2011-04-21 Thread Anthony
Would it help to use app-specific routes (i.e., put a routes.py file in the application folder)? On Thursday, April 21, 2011 9:37:33 AM UTC-4, selecta wrote: that is not so nice, it would be a lot better if i could define the error message in my application the reason is that i created an

[web2py] Re: custom error ticket message

2011-04-21 Thread selecta
i dont think this would help since the issue tracker should be a plugin as a plugin it can only provide files and folders starting with plugin_ :( On Apr 21, 3:59 pm, Anthony abasta...@gmail.com wrote: Would it help to use app-specific routes (i.e., put a routes.py file in the application

[web2py] importing gluon to a module in the modules directory

2011-04-21 Thread Omri Har-Shemesh
Hello, I'm writing a module to contain some class definitions I need for my application's business logic and I would like to access gluon from my module. I placed my module inside the modules directory and import it using local_import. I want to have the classes in the module access the

[web2py] Re: importing gluon to a module in the modules directory

2011-04-21 Thread Massimo Di Pierro
Is this trunk or stable? Because we are testing a new import mechanism, although I do not know that is the cause of the problem. On Apr 21, 9:17 am, Omri Har-Shemesh omri...@gmail.com wrote: Hello, I'm writing a module to contain some class definitions I need for my application's business

[web2py] Re: importing gluon to a module in the modules directory

2011-04-21 Thread Anthony
Did you try from gluon.dal import DAL On Thursday, April 21, 2011 10:17:47 AM UTC-4, Omri Har-Shemesh wrote: Hello, I'm writing a module to contain some class definitions I need for my application's business logic and I would like to access gluon from my module. I placed my module

[web2py] Re: importing gluon to a module in the modules directory

2011-04-21 Thread Omri Har-Shemesh
This is stable - I only use the stable version and frequently update using the Update link.

[web2py] Re: importing gluon to a module in the modules directory

2011-04-21 Thread Omri Har-Shemesh
I thought I tried it before, but apparently I didn't, or I changed something because this way seems to work. It also works if I use import gluon.dal and check for gluon.dal.DAL. Sorry to have bothered you, but beforehand I got an error saying that gluon is not recognized. I'm not so sure what

[web2py] Re: how to increase font-size in Markmin code highlight ?

2011-04-21 Thread VP
Massimo: In my css file, I simply used this: pre { font-size: 130% !important; } This will do it; as the code is enclosed within a pre. This will override the font-size and leave the rest of the styling intact. My suggestion is NOT to specify the font size in CODE (highlight.py). This makes

[web2py] Re: how to increase font-size in Markmin code highlight ?

2011-04-21 Thread VP
On a related note on MARKMIN syntax. For images, the code looks like this: [[title url position size]] It appears position can be left, right, or center. It turns out what you really want is middle, and NOT center. For image alignment, center doesn't work. My additional suggestion for

[web2py] Re: MULTIUSER MODE problem

2011-04-21 Thread VP
I have opened an issue. In fact, I opened a few issues related to MULTIUSER_MODE. This mode is quite useful, but I think it needs some work. On Apr 21, 8:31 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Please open an issue in google code On Apr 21, 12:51 am, VP

[web2py] Re: Require login for whole application

2011-04-21 Thread Will Stevens
for the record. i had to change this a bit to get it to work. i was getting 'too many redirects' when i used this, so i changed it to this: (so it did not try to redirect when db.py was processing the 'login' request) if auth.user is None and 'login' not in request.args:

[web2py] Re: Can't serialize select result with fields from two or more tables in JSON

2011-04-21 Thread Franzé Jr .
I think so On Apr 20, 6:09 pm, Rafael Sales rafael...@gmail.com wrote: Hello, I'm facing a very tricky error with JSON. I have an action that must return a json object with the results of a select. The select must return fields from two tables. When I use this kind of select return fields

[web2py] Re: SQLtable customizations + urls

2011-04-21 Thread howesc
how about creating a virtual field that you append only in that controller/view? http://web2py.com/book/default/chapter/06?search=virtual+fields#Virtual-Fields

[web2py] Re: IMPROVED: show error tickets directly if you are a authorized web2py admin

2011-04-21 Thread Arun K.Rajeevan
+1

[web2py] Re: Can't serialize select result with fields from two or more tables in JSON

2011-04-21 Thread Rafael Sales
By the way, I'm using Ubuntu 10.10 and the current version of Web2Py: 1.94.6 On 21 abr, 13:31, Franzé Jr. franz...@gmail.com wrote: I think so On Apr 20, 6:09 pm, Rafael Sales rafael...@gmail.com wrote: Hello, I'm facing a very tricky error with JSON. I have an action that must return a

[web2py] create new record and update status simultaneously

2011-04-21 Thread 黄祥
hi, is it possible to create new record and update status simultaneously? e.g. update() def __add_2(): form = crud.create(db.booking, next = URL(request.application, request.controller, 'index'), onaccept = db.room(db.room.id == request.vars.room_id).update(status = 'Booked')) return

[web2py] Re: IMPROVED: show error tickets directly if you are a authorized web2py admin

2011-04-21 Thread David Marko
+1

[web2py] web2py in OS X - Where to put custom applications

2011-04-21 Thread Julio Schwarzbeck
Hi folks, I am wondering what is the suggested approach of placing the custom applications on an OS X web2py installation. I am a longtime Linux and OS X user, and I use my Mac for day to day work, and use a VM (Fusion) with a Linux Image (Fedora) in which I run web2py, mysql, python, etc, and

[web2py] Re: IMPROVED: show error tickets directly if you are a authorized web2py admin

2011-04-21 Thread pbreit
This potentially saves one click and prevents opening the error in a new tab? -1

[web2py] web2py in OS X - Where to put custom applications

2011-04-21 Thread pbreit
I just switched from the .app to source and am much happier. But when I ran off .app, I just put apps in the regular applications folder. Seemed to work fine for me.

[web2py] Re: web2py in OS X - Where to put custom applications

2011-04-21 Thread Julio Schwarzbeck
Hmm, interesting pbreit, hadn't thought about it, I will probably do that also, especially since I'd like to debug the web2py app itself (via Wing IDE for example), thanks for the comment! Julio On Apr 21, 11:03 am, pbreit pbreitenb...@gmail.com wrote: I just switched from the .app to source

[web2py] Re: web2py in OS X - Where to put custom applications

2011-04-21 Thread Julio Schwarzbeck
Well, isn't this a breathe of fresh air, as pbreit suggested, I downloaded the source code of web2py, symlinked my custom applications into web2py's applications and voilá, they are all working locally, talking about OS portability, I had everything running in 5 min, this is sweet! On Apr 21,

[web2py] Re: create new record and update status simultaneously

2011-04-21 Thread Anthony
I think onaccept has to be a function. On Thursday, April 21, 2011 1:12:24 PM UTC-4, 黄祥 wrote: hi, is it possible to create new record and update status simultaneously? e.g. update() def __add_2(): form = crud.create(db.booking, next = URL(request.application, request.controller,

[web2py] Problems related to keeping applications in seperate folder and not in web2py installation.

2011-04-21 Thread Arun K.Rajeevan
I want to test Martin Mulone's power pack plug-in. I can test this in usual way, ie., application is within web2py directory. But my problem is that I kept all my applications out of web2py installation directory. Now if I run following command, all I get is an error saying application

[web2py] Re: Problems related to keeping applications in seperate folder and not in web2py installation.

2011-04-21 Thread Arun K.Rajeevan
btw., If I change line 224 of cache.py to folder = folder or os.path.join(os.path.abspath(request.folder), 'cache') I get following error OSError: [Errno 2] No such file or directory: '/home/kra/Works/Python/web2py_projects/trunk/applications/powerpack/cache' It should be:

[web2py] web2py and freelancing services

2011-04-21 Thread Jim Karsten
We are looking for experienced developers to work on a web2py project. We are considering using a freelancing service like vworker.com (formerly rent-a-coder) or elance. Does anyone have any experience with these companies? Jim Karsten

Re: [web2py] web2py and freelancing services

2011-04-21 Thread Kenneth Lundström
Hello Jim, have you looked at www.experts4solutions.com? Kenneth We are looking for experienced developers to work on a web2py project. We are considering using a freelancing service like vworker.com (formerly rent-a-coder) or elance. Does anyone have any experience with these companies? Jim

[web2py] Re: cas_auth.py

2011-04-21 Thread luis diaz
Question: how to make CAS manage change password for access to my application?. I ask because the menu: [login, password] of my application by clicking on password one is sent to the home page of the application itself instead of CAS website I would like an automatic method similar to the one

[web2py] Re: web2py and freelancing services

2011-04-21 Thread pbreit
I had good luck with oDesk for a small project.

[web2py] Re: web2py in OS X - Where to put custom applications

2011-04-21 Thread pbreit
Yeah, probably wouldn't hurt to steer more Mac users to source. From the Download page, it seems Mac users should download the Mac package. If you use version control (if you don't, you should!) it's even better to clone it from Google code. Then you can easily control your web2py version.

[web2py] Re: IMPROVED: show error tickets directly if you are a authorized web2py admin

2011-04-21 Thread selecta
On Apr 21, 8:04 pm, pbreit pbreitenb...@gmail.com wrote: This potentially saves one click right not more not less and prevents opening the error in a new tab? why? the link is still there, you can do it if you want to -1

Re: [web2py] Re: Appengine, inbound mail code placement...

2011-04-21 Thread mattynoce
just as a follow-up here, i got this to work simply using a combination of what everyone said. here's what i did: i added the following to my app.yaml above the handlers: section: inbound_services: - mail under handlers (and for me, below remote_api), i added the following code: - url:

[web2py] Re: [w2py-dev] Re: Problems related to keeping applications in seperate folder and not in web2py installation.

2011-04-21 Thread Massimo Di Pierro
Are you using trunk or stable? On Apr 21, 2011, at 1:56 PM, Arun K.Rajeevan wrote: btw., If I change line 224 of cache.py to folder = folder or os.path.join(os.path.abspath(request.folder), 'cache') I get following error OSError: [Errno 2] No such file or directory:

[web2py] Re: how to increase font-size in Markmin code highlight ?

2011-04-21 Thread Massimo Di Pierro
Two line break break paragraphs p/p therefore you should use CSS to add space between paragraphs. On Apr 21, 10:04 am, VP vtp2...@gmail.com wrote: On a related note on MARKMIN syntax. For images, the code looks like this:  [[title url position size]] It appears position can be left, right,

[web2py] Re: IMPROVED: show error tickets directly if you are a authorized web2py admin

2011-04-21 Thread Massimo Di Pierro
why the -1? On Apr 21, 1:04 pm, pbreit pbreitenb...@gmail.com wrote: This potentially saves one click and prevents opening the error in a new tab? -1

[web2py] Re: Appengine, inbound mail code placement...

2011-04-21 Thread Massimo Di Pierro
This is really useful. Thanks for sharing. Would you add a web2pyslice.com On Apr 21, 4:52 pm, mattynoce mattyn...@gmail.com wrote: just as a follow-up here, i got this to work simply using a combination of what everyone said. here's what i did: i added the following to my app.yaml above the

[web2py] Re: new web2py version

2011-04-21 Thread ron_m
I ran my application and did not see any problems. I am over a PostgreSQL database. I likely did not exercise any new features, I have not touched the code in a week or more - working on other things right now.

Re: [web2py] Re: new web2py version

2011-04-21 Thread Tito Garrido
This is what I get when I try to conect to a mysql database: Traceback (most recent call last): File /Users/titogarrido/Documents/Projetos/web2py/gluon/restricted.py, line 181, in restricted exec ccode in environment File

Re: [web2py] Re: new web2py version

2011-04-21 Thread Tito Garrido
In fact it's happening with SQLite too when I try to open the database administrator. On Thu, Apr 21, 2011 at 8:59 PM, Tito Garrido titogarr...@gmail.com wrote: This is what I get when I try to conect to a mysql database: Traceback (most recent call last): File

[web2py] Re: IMPROVED: show error tickets directly if you are a authorized web2py admin

2011-04-21 Thread pbreit
Didn't seem like a big improvement to me and feared I'd lose the ability to open error in new tab. But it's fine, seems like there's quite a bit of interest.

[web2py] Re: web2py and freelancing services

2011-04-21 Thread Jim Karsten
Looks interesting. Thanks for the link. On Apr 21, 4:09 pm, Kenneth Lundström kenneth.t.lundst...@gmail.com wrote: Hello Jim, have you looked atwww.experts4solutions.com? Kenneth We are looking for experienced developers to work on a web2py project. We are considering using a

[web2py] IS_IN_DB using a dal.Set

2011-04-21 Thread niknok
I have a set mp_list=gdb(gdb.municipality.province==gdb.province.id) which I'm trying to use it in a select field but causes an error: Field('municipality',requires=IS_IN_DB(mp_list,'municipality.psgc_m', '%(municipality.name)s (%(province.name)s)'))

[web2py] Re: IS_IN_DB using a dal.Set

2011-04-21 Thread niknok
I still couldn't find out how to do it with IS_IN_DB and a DAL Set. But using IS_IN_SET works: mp_list=gdb(gdb.municipality.province==gdb.province.id)\ .select(gdb.municipality.psgc_m,gdb.municipality.name,\

Re: [web2py] Re: new web2py version

2011-04-21 Thread Bruno Rocha
I got the same error when trying to access the appadmin controller Traceback (most recent call last): File /home/rochacbruno/Dropbox/cursodepython/web2py/gluon/restricted.py, line 181, in restricted exec ccode in environment File

Re: [web2py] Re: create new record and update status simultaneously

2011-04-21 Thread Stifan Kristi
a, i c, thank you so much for your pointer anthony, is there any others way to that without using update() or update_record()? thank you very much On Fri, Apr 22, 2011 at 1:33 AM, Anthony abasta...@gmail.com wrote: I think onaccept has to be a function. On Thursday, April 21, 2011 1:12:24 PM