[web2py] Re: Someone interested in a simple CMS for web2py? - SimplrCMS

2011-08-08 Thread guruyaya
+1 On Aug 8, 3:50 pm, Ross Peoples wrote: > Bruno, > > I have been needing to implement a CMS/blog type application for an upcoming > web site that I'd like to base off web2py instead of using WordPress. I > would be very interested in seeing how you did some of these things, > especially the cus

[web2py] Re: changes to modules in /modules are not applied unless...

2011-08-08 Thread mart
right... i thought this reload thing was an automatic thing now. Ok, well serves me right for not keeping up!! thanks for the info! Mart :) On Aug 9, 12:06 am, Anthony wrote: > I think that's how imports generally work. With the new custom importer, > though, you can have it automatically reloa

[web2py] Re: Bug in virtualfields w/ session

2011-08-08 Thread Michael Toomim
Mid-status note: it would be great if the profiler worked with the web2py shell! Then I could run commands at the command prompt in isolation and see how long they take. On Aug 8, 8:38 pm, Michael Toomim wrote: > It turns out the speed problem is REALLY bad. I have a table > withvirtualfieldsof

[web2py] Re: changes to modules in /modules are not applied unless...

2011-08-08 Thread Anthony
I think that's how imports generally work. With the new custom importer, though, you can have it automatically reload modules whenever they change. Somewhere in your code, add: from gluon.custom_import import track_changes track_changes() See https://groups.google.com/d/msg/web2py-developers

[web2py] changes to modules in /modules are not applied unless...

2011-08-08 Thread mart
Hi all, is this a bug, or something I'm doing wrong? Here's the scoop: web2py is embedded within a folder structure. I use Aptana to update files (including files under the web2py/... directory). the problem I have been seeing is that any change to /applications/myApp/modules/ myModule.py is not

[web2py] Re: Bug in virtualfields w/ session

2011-08-08 Thread Michael Toomim
It turns out the speed problem is REALLY bad. I have a table with virtualfields of 14,000 rows. When I run raw sql: a = db.executesql('select * from people;') ...the query returns in 121ms. But when I run it through the DAL on only a subset of the data: a = db(db.people.id > 0).select(li

[web2py] PyCon 2012 guidance survey

2011-08-08 Thread Anthony
For those interested... https://www.surveymonkey.com/s/pycon2012_launch_survey

Re: [web2py] Re: My search Engine with ÄÖÅ doesn't work, what is my best approach?

2011-08-08 Thread Jonathan Lundell
On Aug 8, 2011, at 9:23 AM, Anthony wrote: > On Monday, August 8, 2011 11:59:34 AM UTC-4, Massimo Di Pierro wrote: > because we work under the assumption that this is unsafe as args may > be used to access the filesystem (for example by the download > function). Few chacarters are allowed in the

[web2py] Authentication for services in iPhone not work

2011-08-08 Thread Relsi Hur
Hello, I have a simple function, like this: @service.xmlrpc def list_car(): cars=db(db.car.id_person==auth.user.id).select(db.car.id, db.car.color) return cars.response Well, I'm accessing the service so: https://username:password@my_server/my_app/service/call/xmlrpc This works fine on

[web2py] Re: Problem with reference fields

2011-08-08 Thread Anthony
On Monday, August 8, 2011 6:12:42 PM UTC-4, Eric Scott wrote: > > Thanks, Richard. Yes, I did make sure the custom auth_user was > correct before I added the reference fields that caused the error. > And I do have the student and contact tables defined. They were > defined in the db_wizard.py

[web2py] Re: IMPORTANT on cron jobs, scheduled jobs and delayed jobs

2011-08-08 Thread Andrew
I don't know anything about Celery, but I am interested in scheduling functionality for web2py. When you mention it doesn't have dependencies, I assume you mean the code itself. One of my next tasks was to look at open source schedulers, particularly the ability to do Job/tasks dependencies, in t

[web2py] Re: IMPORTANT on cron jobs, scheduled jobs and delayed jobs

2011-08-08 Thread Massimo Di Pierro
All you need is to follow the example and run the worker task (the background task). Whatever web server you use, your web2py apps will be able to queue and schedule tasks using admin. BTW... download it again as I added some stuff. On Aug 8, 5:46 pm, David J wrote: > How do use this from uwsgi

Re: [web2py] ValueError - legacy database

2011-08-08 Thread Bruno Rocha
I mean, this: Field('a_fon_codigo', 'integer', db_pgsql.t_fone) should be: Field('a_fon_codigo', db_pgsql.t_fone)

Re: [web2py] Re: IMPORTANT on cron jobs, scheduled jobs and delayed jobs

2011-08-08 Thread David J
How do use this from uwsgi? Currently I am launching the web2py app using the web2py uswgi handler On Aug 8, 2011 6:35 PM, "Massimo Di Pierro" wrote: > for now just set an insame large value for repeats. We could agree to > use -1. > > On Aug 8, 12:12 pm, Marin Pranjic wrote: >> It looks good. >>

[web2py] Re: IMPORTANT on cron jobs, scheduled jobs and delayed jobs

2011-08-08 Thread Massimo Di Pierro
for now just set an insame large value for repeats. We could agree to use -1. On Aug 8, 12:12 pm, Marin Pranjic wrote: > It looks good. > How to add a task which will repeat infinite times? > What are Start time and Stop time used for? Just to clarify... > > On Mon, Aug 8, 2011 at 4:28 PM, Massim

[web2py] Re: IMPORTANT on cron jobs, scheduled jobs and delayed jobs

2011-08-08 Thread Massimo Di Pierro
On Aug 8, 11:55 am, pbreit wrote: > I definitely like the idea of something simpler. Even though Celery is > pitched as somewhat easy, I could never make heads or tails of it. I look > forward to giving this a try. > > What are the web2py dependencies? Do you foresee bundling DAL and whatever > to

[web2py] Re: Forcing table name in row object?

2011-08-08 Thread pbreit
I run into that problem a lot as well and haven't figured out the best way to handle it. Is it possible to do something like this? for item, auth_user in rows.item, rows.auth_user: ...

[web2py] Re: More Details on RESTful web2py?

2011-08-08 Thread David G
I have a similar question as Web2py Newbie. I want to return all the rows from a table using a pattern like: /myapp/api/table I'm wondering if your answer for Newbie is specific to returning a single comment with the id of bookmark.id? How would you code the GET method to get all the comments?

[web2py] Forcing table name in row object?

2011-08-08 Thread Marin
Hi, If query has table JOINs, fields are accessed with: row.tablename.fieldname. Without JOIN, it is row.fieldname. This is described here: http://web2py.com/book/default/chapter/06#Inner-Joins I need it join-independent. With or without join: row.tablename.fieldname (yes, even if SELECT has only

[web2py] Re: Problem with reference fields

2011-08-08 Thread Eric Scott
Thanks, Richard. Yes, I did make sure the custom auth_user was correct before I added the reference fields that caused the error. And I do have the student and contact tables defined. They were defined in the db_wizard.py file but I put all the model defs in the same db.py file, but still get the

[web2py] Re: Cheat Sheet - Reference guide

2011-08-08 Thread weheh
Nice comic cheat sheet. I see a typo: auth.requires_permission is miss- spelled auth.reuqires_permission. On Aug 8, 10:19 am, Anthony wrote: > On Monday, August 8, 2011 9:57:12 AM UTC-4, Renato Fabro wrote: > > > Oops... missed the link. > > >http://www.web2py.com/examples/static/web2py_cheatshee

Re: [web2py] ValueError - legacy database

2011-08-08 Thread Bruno Rocha
You do not have to define field type when referencing. Field('fieldname', db.referencetable) No need to define as 'integer' http://zerp.ly/rochacbruno Em 08/08/2011 17:46, "Ramiro B. da Luz" escreveu: > I asked this in the irc channel but as I was leaving I pasted it here: > > hello. > I am usi

[web2py] Re: Problem with reference fields

2011-08-08 Thread Cliff
The problem is in line 61 of your db.py. When you make "Field('student', db.student", you are telling the DAL to go look for a table named "student." If you have no such table, it will raise an exception. If you're going to do a self join, the right syntax would be "Field('student', db.auth_user

[web2py] Re: Insert not working on Keyed Table

2011-08-08 Thread Andrew
thanks again Denes, I'm running MS SQL 2005 and Web2py 1.98.2. Note that from the shell interface, the following works: db.web2pytest_leg.insert(LoadID=2, LoadName='DirectInsert') db.commit() Here's my table (Note: the original table did not have a LoadID, I added it to test an int PK): CREATE TAB

Re: [web2py] Follow-up on web2py, mercurial, and Fabric

2011-08-08 Thread pbreit
In the beginning I had: /var/web2py /var/web2py/applications/init Now I have: /opt/web2py /srv/init And use a symlink. I'm not sure which is better. The symlinking confuses me sometimes. I wish some of this stuff was more standardized.

[web2py] Re: Import: a chicken-and-egg problem

2011-08-08 Thread Michael Ellis
I've made the following workaround: 1. Put a try/except around the submodule.db = db statement. 2. Add a function to toplevel.py that can be called from the controller to pass in a reference to db and assign it to a module global. Clunky, but it's ok for the moment. Still interested to know if t

Re: [web2py] Follow-up on web2py, mercurial, and Fabric

2011-08-08 Thread pbreit
I actually just have a regular repo on the production server and do an "hg pull; hg update". I'm not sure if that's the best approach but it has worked so far on my low volume site. But I can see that there could be issues and I suspect that is why many people update to other locations and then

Re: [web2py] Re: Problem with reference fields

2011-08-08 Thread Richard Vézina
Yes... Maybe they are after the table they are referenced by!!! They should be before... Richard On Mon, Aug 8, 2011 at 4:47 PM, Jim Steil wrote: > Eric > > Do you also have student and contact tables defined? > >-Jim > > > On 8/8/2011 3:33 PM, Eric Scott wrote: > >> Thanks for your respons

Re: [web2py] Re: Problem with reference fields

2011-08-08 Thread Jim Steil
Eric Do you also have student and contact tables defined? -Jim On 8/8/2011 3:33 PM, Eric Scott wrote: Thanks for your response, Richard and Jim. Richard, the traceback is in my original message, as is the problematic part of the model code. The error occurs with any view/controller -- I c

[web2py] ValueError - legacy database

2011-08-08 Thread Ramiro B. da Luz
I asked this in the irc channel but as I was leaving I pasted it here: hello. I am using web2py version Version 1.98.2 (2011-08-04 00:47:09) with a legacy postgreql database. When I do an insert using the databse administration or when I try to update a record I get an strange error. I notice that

Re: [web2py] Re: Problem with reference fields

2011-08-08 Thread Richard Vézina
Without the whole model it is difficult to clearly understand what you are trying to acheive... You add those line to auth_user that you have customized?? Field('student', db.student), # = one to many Field('contact', db.contact), # idem It could depend of your backend database if it support FK.

[web2py] Re: Problem with reference fields

2011-08-08 Thread Eric Scott
Thanks for your response, Richard and Jim. Richard, the traceback is in my original message, as is the problematic part of the model code. The error occurs with any view/controller -- I can't access the app at all. The problem is definitely in the model and not the controller. The problem occurs

[web2py] Rocket - Static Files length error

2011-08-08 Thread Brian M
I've got a web2py app that has started to behave oddly - suddenly static files aren't loading reliably. In Chrome's developer tools it appears that rocket is returning a correct content-length but then not actually providing any content. I'm running web2py v1.97.1 from source on Windows. Any i

Re: [web2py] Follow-up on web2py, mercurial, and Fabric

2011-08-08 Thread Richard Vézina
Hello Eric, pbreit is better palced then me for complete answer, but I don't thinke there is any repo on the prod server... You should just push without Hg file, so your prod app is not under VC anymore... I completly erase after backup my app and copy new app release in place without .hg app subd

Re: [web2py] Problem with reference fields

2011-08-08 Thread Jim Steil
If the 'student' and 'contact' fields should each, individually, refer to a record in the auth_user table then I'd use: Field('student', 'reference auth_user'), Field('contact', 'reference auth_user'), ...at least that is what I'd try first... -Jim On 8/8/2011 2:58 PM, Richard Véz

Re: [web2py] Problem with reference fields

2011-08-08 Thread Richard Vézina
If you send you controller and model code at least with trace back it could help to troobleshoot... Richard On Mon, Aug 8, 2011 at 3:51 PM, Eric Scott wrote: > I'm having problems getting tables linked in web2py using reference > fields. For example, I have a model with table student and table

[web2py] Problem with reference fields

2011-08-08 Thread Eric Scott
I'm having problems getting tables linked in web2py using reference fields. For example, I have a model with table student and table contact. Table auth_user contains my app's users. In db.py, under db.define_table('auth_user') I have the following code to reference a one-to-many relationship be

[web2py] Re: Problem with the authorization and downloads

2011-08-08 Thread Todor Todorov
Thanks, pbreit, for the answer! Actually each record in the table has different read permissions: some of them could be read by one user, others by other users. For the fields, other than 'upload' type the web2py authorization scheme works fine, but unfortunately for 'upload' field type - accordin

[web2py] Follow-up on web2py, mercurial, and Fabric

2011-08-08 Thread Eric Scott
Thanks again to pbreit, Chris, Richard, and any others I'm missing for answering my questions about web2py and mercurial. I'm rapidly getting used to mercurial with web2py and its working great for switching between computers. I do have a follow-up question about Fabric. Pbreit -- you're absolut

Re: [web2py] IMPORTANT on cron jobs, scheduled jobs and delayed jobs

2011-08-08 Thread Marin Pranjic
It looks good. How to add a task which will repeat infinite times? What are Start time and Stop time used for? Just to clarify... On Mon, Aug 8, 2011 at 4:28 PM, Massimo Di Pierro wrote: > > Please let me know what you think. > > Massimo

[web2py] testRunner.py, a script for automated testing: unittests, Doctests and userinterface tests using Selenium

2011-08-08 Thread Nico de Groot
I've created a slice on automated testingbased on a earlier slice by Jon Vlachoyiannis and *matclab*. You can now run unittests, Doctetst and user interface tests in one go. If found useful and and after testing maybe it could be included in t

[web2py] Re: IMPORTANT on cron jobs, scheduled jobs and delayed jobs

2011-08-08 Thread Ross Peoples
Great questions from pbreit. I also have a quick one: Would it be easy for plugins to use the Scheduler? Imagine how many cool plugins would be possible (mail queues, session cleanups, statistical analysis, image manipulation, etc.) with a standardized web2py scheduler.

[web2py] Re: Problem with the authorization and downloads

2011-08-08 Thread pbreit
If you want to password protect the download, you need to decorate it: @auth.requires_login() def download(): ... If you want to make sure only the owner can download it, you would need some additional code (db.uploads.created_by==auth.user_id).

Re: [web2py] New Plugin: plugin_ckeditor

2011-08-08 Thread Ross Peoples
Bruno, That would be awesome. Allowing the developer to choose buttons was on my todo list, but I haven't had time to implement it yet. If you've already got something started, I would certainly accept a patch for it. Thanks Bruno.

[web2py] Re: IMPORTANT on cron jobs, scheduled jobs and delayed jobs

2011-08-08 Thread pbreit
I definitely like the idea of something simpler. Even though Celery is pitched as somewhat easy, I could never make heads or tails of it. I look forward to giving this a try. What are the web2py dependencies? Do you foresee bundling DAL and whatever to make it standalone? Is SQLite a reasonabl

[web2py] Re: bug and fix in Storage.__setattr__ when assigning Field instances as values

2011-08-08 Thread Massimo Di Pierro
Oops This is now in trunk! Please open a google issue and I will try a global human-assisted semi- automated search and replace. ;-) On Aug 5, 2:52 pm, Carlos wrote: > Hi, > > When I try to assign a Field instance as a value in a Storage object, it > fails by simply not assigning anything (and in

[web2py] SQLFORM update problem with list:reference fields

2011-08-08 Thread Cliff
When using SQLFORM to update list:reference fields, the select input does not show the database value as selected. It shows the zero value instead. If I remove the zero value, it just shows a blank line. Here is my code. What am I doing wrong? model: db.define_table('owners', Field('name')) db

[web2py] Re: bug and fix in Storage.__setattr__ when assigning Field instances as values

2011-08-08 Thread Carlos
Hi Massimo, Can the above fix I describe go into trunk?. Thanks, Carlos

Re: [web2py] New Plugin: plugin_ckeditor

2011-08-08 Thread Bruno Rocha
I enabled a different set of toolbar buttons. I will send a patch which provides an python API to deal with toolbar set. http://zerp.ly/rochacbruno Em 08/08/2011 10:59, "Ross Peoples" escreveu: > I have applied Bruno's patch to the plugin on BitBucket. Thanks again Bruno > for that. Don't know ho

[web2py] Re: SELECT .... IN

2011-08-08 Thread Cliff
+1 for Marin's answer, as it doesn't care which database engine you use. In my opinion it's worth learning the DAL syntax because it abstracts the underlying database. On Aug 7, 10:37 am, Marin Pranjic wrote: > Hi, > > you can do: > array = [1,3,6] > db(db.tablename.fieldname.belongs(array)).sel

[web2py] Re: My search Engine with ÄÖÅ doesn't work, what is my best approach?

2011-08-08 Thread Anthony
On Monday, August 8, 2011 11:59:34 AM UTC-4, Massimo Di Pierro wrote: > > because we work under the assumption that this is unsafe as args may > be used to access the filesystem (for example by the download > function). Few chacarters are allowed in the path_info > Got it. Thanks.

[web2py] Re: My search Engine with ÄÖÅ doesn't work, what is my best approach?

2011-08-08 Thread Massimo Di Pierro
because we work under the assumption that this is unsafe as args may be used to access the filesystem (for example by the download function). Few chacarters are allowed in the path_info On Aug 8, 9:08 am, Anthony wrote: > On Monday, August 8, 2011 5:20:53 AM UTC-4, Massimo Di Pierro wrote: > > >h

[web2py] Re: IMPORTANT on cron jobs, scheduled jobs and delayed jobs

2011-08-08 Thread Massimo Di Pierro
On Aug 8, 9:59 am, Fran wrote: > >  It has lots of dependencies (for example RabbitMQ) > > This is a little unfair - whilst RabbitMQ is the recommended Broker for > Production systems, there are many other supported & porting django-kombu to > web2py-kombu shouldn't be hard. I agree. Our private

[web2py] Re: IMPORTANT on cron jobs, scheduled jobs and delayed jobs

2011-08-08 Thread Massimo Di Pierro
P.S. I added task groups and I added task timeout On Aug 8, 10:00 am, Ross Peoples wrote: > I certainly like the minimalistic one file approach. Talking to the tasks > seems like a pretty important feature. I would certainly love to see this in > action. Will the scheduler be started automaticall

[web2py] Re: using sum with left join

2011-08-08 Thread Tim Korb
In this case, the original order is correct: db.log.on pulls all the records from auth_user, even those that don't match a record in log. The coalesce() method added by Massimo allows the sum to be null and substitutes 0 for it.

[web2py] Re: using sum with left join

2011-08-08 Thread Tim Korb
Thanks! I looked in the book, but not in the sources. :-) The new coalesce method works great.

[web2py] Re: The web2py grid/crud plugin you've always dreamed about! Options

2011-08-08 Thread peter
And where does the custom_importer get its paths from, because they seem different in some apps to in others. So how can I check the paths or change them. Thanks On Aug 8, 1:08 pm, Bruno Rocha wrote: > it is imported by the web2py custom_importer > > > > > > On Mon, Aug 8, 2011 at 8:26 AM, peter

[web2py] Problem with the authorization and downloads

2011-08-08 Thread Todor Todorov
Hello All, I am trying to re-create the authorization for downloads as described in the web2py book < http://web2py.com/book/default/chapter/08#Authorization-and-Downloads > Unfortunately I cannot get to enforce the authorization and users, who are not logged in still can download files. My web2

[web2py] Re: IMPORTANT on cron jobs, scheduled jobs and delayed jobs

2011-08-08 Thread Ross Peoples
I certainly like the minimalistic one file approach. Talking to the tasks seems like a pretty important feature. I would certainly love to see this in action. Will the scheduler be started automatically, like the built-in cron, or would you need to start it manually (like from external cron)?

[web2py] Re: IMPORTANT on cron jobs, scheduled jobs and delayed jobs

2011-08-08 Thread Fran
Looks very interesting :) This appears to be an easier way to meet most of the needs for which I was investigating Celery, since I'm not looking at massively-scalable systems, but rather just a way to have longer-running requests (e.g. onaccepts) pushed asynchronously to givers users a more res

Re: [web2py] Re: Cheat Sheet - Reference guide

2011-08-08 Thread qasimak...@gmail.com
nice... I am also new to this and these docs will help out a lot... :) Regards, Qasim On Mon, Aug 8, 2011 at 7:19 PM, Anthony wrote: > On Monday, August 8, 2011 9:57:12 AM UTC-4, Renato Fabro wrote: >> >> Oops... missed the link. >> >> http://www.web2py.com/**examples/static/web2py_**cheatsheet

[web2py] IMPORTANT on cron jobs, scheduled jobs and delayed jobs

2011-08-08 Thread Massimo Di Pierro
## preambole I have been working on porting django-celery to web2py-celery. http://code.google.com/p/web2py-celery There are a few issues to resolve and I am working on it. Yet I found it to be overkill for most users. It has lots of dependencies (for example RabbitMQ) and it is not easy to manag

[web2py] Re: Cheat Sheet - Reference guide

2011-08-08 Thread Anthony
On Monday, August 8, 2011 9:57:12 AM UTC-4, Renato Fabro wrote: > > Oops... missed the link. > > http://www.web2py.com/examples/static/web2py_cheatsheet.pdf > > There's also this: http://web2py.com/examples/static/web2py_keywords_comics.png

[web2py] Re: My search Engine with ÄÖÅ doesn't work, what is my best approach?

2011-08-08 Thread Anthony
On Monday, August 8, 2011 5:20:53 AM UTC-4, Massimo Di Pierro wrote: > > http://interestid.com/search.json?variable=theSearch > It looks like the URL function will url encode args in outgoing URLs, but url-encoded args in incoming URLs result in an invalid request -- why is that? Anthony

Re: [web2py] New Plugin: plugin_ckeditor

2011-08-08 Thread Ross Peoples
I have applied Bruno's patch to the plugin on BitBucket. Thanks again Bruno for that. Don't know how I missed it. Also, I have enabled issue tracking in case anyone finds something else.

[web2py] Re: Cheat Sheet - Reference guide

2011-08-08 Thread Re Fabro
Oops... missed the link. http://www.web2py.com/examples/static/web2py_cheatsheet.pdf * Obrigado, Renato Fabro* C2C Balloon - Humanizing Technology +55 (19) 3289-9610 http://www.c2cballoon.com 2011/8/8 Re Fabro > Friends ... I would like to propose something to expand our community > web2py

[web2py] Cheat Sheet - Reference guide

2011-08-08 Thread Re Fabro
Friends ... I would like to propose something to expand our community web2py (poco time I became a believer ... hehehe). We will try to implement a PDF or PNG reference guide to the components of web2py ... I use a long document on HTACCESS cheat sheet ... those who find the idea interesting? Exam

[web2py] Re: FYI jQuery Events Stop (Mis)Using Return False

2011-08-08 Thread Anthony
On Monday, August 8, 2011 9:44:11 AM UTC-4, DenesL wrote: > > > http://fuelyourcoding.com/jquery-events-stop-misusing-return-false/ > Good to know. Thanks.

[web2py] Re: Web2Py with Python 2.4

2011-08-08 Thread Jagmal
Thanks Anthony! That was helpful. Can we put this information on the download page?

[web2py] Re: Web2Py with Python 2.4

2011-08-08 Thread Ross Peoples
Thanks for posting this Anthony

[web2py] FYI jQuery Events Stop (Mis)Using Return False

2011-08-08 Thread DenesL
http://fuelyourcoding.com/jquery-events-stop-misusing-return-false/

[web2py] Re: MongoDB supported by DAL

2011-08-08 Thread DenesL
I was, a while back, just before the new dal. The changes in the dal plus a busier work day conspired to kill the effort. On Aug 7, 1:54 pm, Francisco Costa wrote: > Is anyone working on the MongoDBAdapter?

[web2py] Re: Web2Py with Python 2.4

2011-08-08 Thread Anthony
On Monday, August 8, 2011 9:06:22 AM UTC-4, Jagmal wrote: > > Thanks Ross! > > Just a quick question - what is the easiest way to download v 1.95.1 ? Do I > need to check this out from repository? > http://web2py.com/examples/static/

[web2py] Re: Insert not working on Keyed Table

2011-08-08 Thread DenesL
Hi Andrew, could you post your model and controller?. MSSQL is indeed supported (I use it every day) and from your description it sounds like it should work but without the code it is impossible to say where the problem might be. Also, which version of web2py are you using?. Denes. On Aug 8, 12:

[web2py] Re: Web2Py with Python 2.4

2011-08-08 Thread Ross Peoples
The only way I know if is to checkout the repository and roll back to 1.95.1. Also, Massimo, on the download page: http://web2py.com/examples/default/download It says that web2py requires Python 2.4, 2.5, 2.6, etc. I don't know if this has been fixed yet, but Python 2.4 should probably be rem

[web2py] Re: new in trunk

2011-08-08 Thread Anthony
On Monday, August 8, 2011 7:49:47 AM UTC-4, Massimo Di Pierro wrote: > > db.table.id.represent = lambda id: {A('delete > me',callback=URL('delete_record',args=id),delete="tr") > FYI, this uses jQuery(this).closest(delete).remove(), which finds the closest DOM object matching the value of 'delete'

[web2py] Re: Web2Py with Python 2.4

2011-08-08 Thread Jagmal
Thanks Ross! Just a quick question - what is the easiest way to download v 1.95.1 ? Do I need to check this out from repository? Regards, Jagmal

[web2py] Re: Deployment Confusion

2011-08-08 Thread Gour-Gadadhara Dasa
On Mon, 8 Aug 2011 02:50:10 -0700 (PDT) Marcel Luethi wrote: Hello Marcel, > As a current customer of djangohosting.ch I'm interested to know how > you did the web2py setup. I haven't yet...probably in a few days. However, it should be pretty same as with Django+uwsgi setup, iow, create local

[web2py] Re: Web2Py with Python 2.4

2011-08-08 Thread Ross Peoples
Jagmal, Just to clarify, web2py 1.95.1 will run on Python 2.4, but you will not get a lot of the new functionality, like the new import methods, the 'current' object, and some other nice things. 1.96.1 introduced these things which only work on Python 2.5 and greater. I too wanted to run the la

[web2py] Re: auth.login onaccept web2py-component-command don't work

2011-08-08 Thread Anthony
On Tuesday, August 2, 2011 10:23:39 AM UTC-4, Alexander Cabezas wrote: > > Hello, > > I don't get the correct behavior when update response.headers with > onaccept parameter on auth.login function. Here I'm trying to redirect > with Javascript after user logins but it redirect to "default/ > in

Re: [web2py] Someone interested in a simple CMS for web2py? - SimplrCMS

2011-08-08 Thread Ross Peoples
Bruno, I have been needing to implement a CMS/blog type application for an upcoming web site that I'd like to base off web2py instead of using WordPress. I would be very interested in seeing how you did some of these things, especially the customizable templates.

Re: [web2py] Re: New Plugin: plugin_ckeditor

2011-08-08 Thread Ross Peoples
Sorry for not responding sooner. I was on vacation last week. I'll check into Bruno's patch as soon as possible.

Re: [web2py] Re: The web2py grid/crud plugin you've always dreamed about! Options

2011-08-08 Thread Bruno Rocha
it is imported by the web2py custom_importer On Mon, Aug 8, 2011 at 8:26 AM, peter wrote: > Let me ask the question the other way round. How come powergridapp > does find the module powergrid. If I look at the current working > directory, it is the web2py folder, and if I look at sys.path, it do

[web2py] new in trunk

2011-08-08 Thread Massimo Di Pierro
Example: ... {{A('click me',callback=URL('mycallback'),target="mytarget",delete="div#test")}} when you click on mycallback the div#test disappears and the str returned by the ajax mycallback is displayed in div#mytarget. Useful for adding buttons to tables, for example: db.table.id.represe

[web2py] Re: Deployment Confusion

2011-08-08 Thread Marcel Luethi
Hi Gour As a current customer of djangohosting.ch I'm interested to know how you did the web2py setup. Until now I'm only using it for static web sites, but plan to implement a web2py site in the near future. Thank you for your help. Regards, Marcel On 7 Aug., 18:05, Gour-Gadadhara Dasa wro

[web2py] Re: The web2py grid/crud plugin you've always dreamed about! Options

2011-08-08 Thread peter
Let me ask the question the other way round. How come powergridapp does find the module powergrid. If I look at the current working directory, it is the web2py folder, and if I look at sys.path, it does not have the applications folder in there, so how come the from plugin_PowerGrid.PowerGrid im

[web2py] Re: component won't execute properly

2011-08-08 Thread Massimo Di Pierro
which web2py version (number and date)? what's in the component? On Aug 8, 3:33 am, weheh wrote: > I have a component that I've tested stand alone and it works OK. But > when I use a LOAD statement to load the component into my app, it > stops working. In particular, during LOAD, the form.accepts

[web2py] Re: My search Engine with ÄÖÅ doesn't work, what is my best approach?

2011-08-08 Thread Massimo Di Pierro
You can also map http://interestid.com/search.json/theSearch into http://interestid.com/search.json?variable=theSearch using routes.py On Aug 8, 4:20 am, Massimo Di Pierro wrote: > http://interestid.com/search.json?variable=theSearch > > On Aug 7, 10:12 pm, encompass wrote: > > > > > > > > > I

[web2py] Re: Why is_active?

2011-08-08 Thread Massimo Di Pierro
I would take a patch to make is_active (readable=False, writable=False) for all tables on or off by default. On Aug 7, 3:24 pm, guruyaya wrote: > Let me start by saying I love auth.signature. But as you can see from > the title, it comes with a price, I find hard to accept. The is_active > record

[web2py] Re: My search Engine with ÄÖÅ doesn't work, what is my best approach?

2011-08-08 Thread Massimo Di Pierro
http://interestid.com/search.json?variable=theSearch On Aug 7, 10:12 pm, encompass wrote: > I have something like this as a search engine > parameter:http://interestid.com/search.json/theSearch > And that returns the result for the search for "theSearch" > Sadly however, I forgot about foreign

[web2py] Re: using sum with left join

2011-08-08 Thread Massimo Di Pierro
This help. web2py has it: db().select(db.auth_user.ALL, db.log.points.sum().coalesce_zero(), left=db.log.on(db.auth_user.id == db.log.user), groupby=db.auth_user.id) I also added to trunk (just know), a more general: db().select(db.auth_user.ALL, db.log.points.sum().coalesce(0), left=db.log.on(d

[web2py] component won't execute properly

2011-08-08 Thread weheh
I have a component that I've tested stand alone and it works OK. But when I use a LOAD statement to load the component into my app, it stops working. In particular, during LOAD, the form.accepts() statement always fails. Anybody run across something like this before? If need be, I'll post some cod

[web2py] Re: SELECT .... IN

2011-08-08 Thread Web2Py Freak
db.executesql('SELECT * FROM auth_user WHERE id IN (1,3,6)')