[web2py] priority of web2py CMS

2012-01-15 Thread Gour
Hello! In the middle of November Massimo wrote: "this will be the top priority after web2py 2.0 is released and the book 4th edition. By the end of November." in regard to working on some decent CMS for web2py. Due to some other engagements, I was not following the group closely, but afaict, th

Re: [web2py] Re: Cherrypy can run on android ! without any patching needed , Can Rocket do that?

2012-01-15 Thread Nik Klever
web2py runs on Android - I've tested it with my Motorola Defy. The only problems, I discovered until now concerns the cache: 1. gluon/cache.py uses the python standard library shelve. And shelve on Android uses dumbdbm instead of anydbm as normally on unix systems, this leads to problems in crea

[web2py] Resources for setting up for development

2012-01-15 Thread glimmung
Hi All, I've been asked to give a short talk on web2py for a local Python user group. One thing that I am a little intimidated by is that some of these guys have been exposed to the tribal nonsense that somehow seems to keep rearing its ugly head, and so I'm concerned to anticipate the sorts of q

Re: [web2py] Resources for setting up for development

2012-01-15 Thread Marin Pranjić
http://wingware.com/doc/howtos/web2py On Sun, Jan 15, 2012 at 12:39 PM, glimmung wrote: > Hi All, > > I've been asked to give a short talk on web2py for a local Python user > group. > > One thing that I am a little intimidated by is that some of these guys > have been exposed to the tribal nons

[web2py] Re: Resources for setting up for development

2012-01-15 Thread Alan Etkin
An open source integrated software for development with RAD and support for web2py is being developed by M. Reingart here: http://code.google.com/p/rad2py .He participates in this group, so maybe he can explain in more detail the features of the project. On 15 ene, 08:39, glimmung wrote: > Hi All

Re: [web2py] priority of web2py CMS

2012-01-15 Thread Bruno Rocha
Movuca is a social network engine, but it is also a CMS. It is intended to be generic and customizable, you can create themes, contenttypes etc... If someone do not want the social features such as, user profiles, likes, dislikes, follows and boards. With one click in config and some chsnges in

Re: [web2py] Re: Resources for setting up for development

2012-01-15 Thread Philip Kilner
Hi Alan, On Sun 15 Jan 2012 12:37:26 GMT, Alan Etkin wrote: An open source integrated software for development with RAD and support for web2py is being developed by M. Reingart here: http://code.google.com/p/rad2py .He participates in this group, so maybe he can explain in more detail the featur

[web2py] The deference between router.example and routes.example ??

2012-01-15 Thread Web2Py Freak
Dear All , What is The deference between router.example and routes.example ?? and how can i use this : domains = { "domain.com" : "app", "x.domain.com" : "appx", },

[web2py] Re: [FYI] DAL IMAPAdapter

2012-01-15 Thread Alan Etkin
That will work (at least worked in develepment with Gmail). Beware that a new mail account login and mailbox list query is made on each request to construct a working dal instance. This adds a lot of network traffic and may raise bandwidth and account limit issues when reaching a given usage, main

[web2py] Re: priority of web2py CMS

2012-01-15 Thread Gour
On Sun, 15 Jan 2012 10:47:31 -0200 Bruno Rocha wrote: > Movuca is a social network engine, but it is also a CMS. OK. > It is intended to be generic and customizable, you can create themes, > contenttypes etc... This sounds good. New contentypes are sort of plugins or something else? > If som

Re: [web2py] Re: Movuca - The Social CMS - Need Testers and Contributors

2012-01-15 Thread villas
Thanks Bruno, I am now experimenting with it. Probably worth mentioning for the benefit of others that changing a line in controllers/setup.py was sufficient to get things initially going: config = Config(autogetconfig=False) to config = Config(autogetconfig=True)

Re: [web2py] Re: priority of web2py CMS

2012-01-15 Thread Bruno Rocha
content types are "posts" but you can customize the fields it has to store in db. and customize the new/edit/show views. you can also include specific methods for each content type you can specify how a content type will be listed and its privacy options. the idea is to have content types create

Re: [web2py] Re: Movuca - The Social CMS - Need Testers and Contributors

2012-01-15 Thread Bruno Rocha
it will get the config values bypassing the cache. config is in a sqlite db, so it is cached for 300s (the expiration is a config option and you can change it) because of that I have the setup/install (which needs a interface) you can reload the cache with setup/reload http://zerp.ly/rochacbru

[web2py] Screencasts for web2py? where?

2012-01-15 Thread António Ramos
Hello, when will we have good quality videos screencasts of web2py? Going from beginner to expert? I ran into a lot of screencasts like peepcode, codeschool. This guys are very good,but for RAILS, not for web2py. When it comes to web2py i only run into Massimo videos.And those are not the school

Re: [web2py] Screencasts for web2py? where?

2012-01-15 Thread Javier Quarite
2012/1/15 António Ramos > Hello, > when will we have good quality videos screencasts of web2py? > Going from beginner to expert? > > I ran into a lot of screencasts like peepcode, codeschool. This guys are > very good,but for RAILS, not for web2py. > > When it comes to web2py i only run into Mass

Re: [web2py] Screencasts for web2py? where?

2012-01-15 Thread Bruno Rocha
what about this http://www.youtube.com/playlist?list=PL5E2E223FE3777851 I have 36 videos but it is all in portuguese and part of cursodepython.com.br I am planning to include english subtitles or record new with my bad english pronunciation. BTW it is not all free, I released some free but the m

Re: [web2py] Screencasts for web2py? where?

2012-01-15 Thread Javier Quarite
On Sun, Jan 15, 2012 at 9:55 AM, Bruno Rocha wrote: > what about this http://www.youtube.com/playlist?list=PL5E2E223FE3777851 > > I have 36 videos but it is all in portuguese and part of > cursodepython.com.br > > I am planning to include english subtitles or record new with my bad > english pron

Re: [web2py] Re: Resources for setting up for development

2012-01-15 Thread Bruce Wade
eclipse + pydev + webtools http://pydev.org/ That is all Aptana uses anyway. On Sun, Jan 15, 2012 at 4:59 AM, Philip Kilner wrote: > Hi Alan, > > > On Sun 15 Jan 2012 12:37:26 GMT, Alan Etkin wrote: > >> An open source integrated software for development with RAD and >> support for web2py is bei

Re: [web2py] Screencasts for web2py? where?

2012-01-15 Thread António Ramos
dont confuse http://codeschool.org with http://www.codeschool.com 2012/1/15 Javier Quarite > > > On Sun, Jan 15, 2012 at 9:55 AM, Bruno Rocha wrote: > >> what about this http://www.youtube.com/playlist?list=PL5E2E223FE3777851 >> >> I have 36 videos but it is all in portuguese and part of >> curs

[web2py] Re: New Site for web2py poweredby

2012-01-15 Thread Annet
Hi Andrew, > its not perfect I am sure :-P but in line with the rest of the site ;-) I just noticed that now matter which function you visit, the active menu item always is "home". Kind regards, Annet

Re: [web2py] Screencasts for web2py? where?

2012-01-15 Thread Javier Quarite
2012/1/15 António Ramos > dont confuse > http://codeschool.org > with > http://www.codeschool.com > > > I subscribed to codeschool.org two months ago and its very impressive

Re: [web2py] Screencasts for web2py? where?

2012-01-15 Thread Javier Quarite
On Sun, Jan 15, 2012 at 10:23 AM, Javier Quarite wrote: > > > 2012/1/15 António Ramos > >> dont confuse >> http://codeschool.org >> with >> http://www.codeschool.com >> >> >> > I subscribed to codeschool.org two months ago and its very impressive > > jajaja I made a mistake ... codeshool.com, my

Re: [web2py] Screencasts for web2py? where?

2012-01-15 Thread António Ramos
why wont Massimo use the "Force" to include web2py in Codeshool.com :) 2012/1/15 Javier Quarite > > > On Sun, Jan 15, 2012 at 10:23 AM, Javier Quarite wrote: > >> >> >> 2012/1/15 António Ramos >> >>> dont confuse >>> http://codeschool.org >>> with >>> http://www.codeschool.com >>> >>> >>> >>

Re: [web2py] Screencasts for web2py? where?

2012-01-15 Thread Javier Quarite
2012/1/15 António Ramos > why wont Massimo use the "Force" to include web2py in Codeshool.com > > :) > > :) +1 I guess because envylabs is related only to ruby on rails, (you should see the ads on youtube: RoR vs PHP, NET, etc etc etc)

[web2py] Re: contains return no rows of field list:string

2012-01-15 Thread Joseph Jude
Thank you Denes. I understood and this works fine at shell. At web-application, I use the below code, form = crud.create(db.entries, next = URL('index')) This gets me a simple text field for the 'list:string' field and whatever I enter gets in as, 'one,two,three' I tried to enter ['one','two'

Re: [web2py] Re: Resources for setting up for development

2012-01-15 Thread Anthony
You can now do: from gluon import * to import the entire API (except for request, response, session, and T, which are on the "current" object). I think something like this should get you code completion: if 0: from gluon import * from gluon.globals import * request = Request(); res

[web2py] Re: The deference between router.example and routes.example ??

2012-01-15 Thread Anthony
routes.example.py is an example of the pattern-based rewrite system, and router.example.py is an example of the parameter-based system (which specifies "routers" -- hence the filename). Maybe we should rename these to something like: routes.pattern_example.py routes.parameter_example.py See ht

[web2py] Re: examples app doesn't run on apache

2012-01-15 Thread Anthony
> > I frequently hear people running into trouble running Apache and/or Python > on Windows. I'd strongly suggest developing against the Windows download > and then deploying on *nix. > I don't know about Apache, but there should be no problem running the source version of web2py on Windows al

Re: [web2py] Re: PCBSD 9 release (freebsd 9) cannot start web2py

2012-01-15 Thread Bruce Wade
Hi, I was able to resolve this, it was an issue with PCBSD(freebsd 9) it self the python 2.7 port was broken, and that caused py-sqlite3 to fail on install. I updated the ports and installed py-sqlite3 everything is working as expected now. On Sat, Jan 14, 2012 at 10:50 PM, Bruno Rocha wrote: >

Re: [web2py] Re: The deference between router.example and routes.example ??

2012-01-15 Thread Jonathan Lundell
On Jan 15, 2012, at 8:52 AM, Anthony wrote: > routes.example.py is an example of the pattern-based rewrite system, and > router.example.py is an example of the parameter-based system (which > specifies "routers" -- hence the filename). Maybe we should rename these to > something like: > > rout

[web2py] Re: contains return no rows of field list:string

2012-01-15 Thread howesc
in the crud form you by default see a single input box for the list of strings right? type the first string, press enter, and a new input box should appear, type the next string and so on. the default widget for list strings has a bunch of keyboard actions to create the list items, but i found

Re: [web2py] Re: Responsivekit for web2py!

2012-01-15 Thread Angelo Compagnucci
Hi Alan! If you want to test it with a pc simply resize the browser window, when the windows is of a certain size, it triggers the responsive reflow of tables. Images works same way, but you have to refresh the page to get the resized image, I'll add this instructions to page! Angelo 2012/1/15 A

Re: [web2py] Re: New Site for web2py poweredby

2012-01-15 Thread Andrew Evans
Oh ya ty will fix that and will make the template easier to maintain today using {{include "nav.html"}} etc *cheers On Sun, Jan 15, 2012 at 7:20 AM, Annet wrote: > Hi Andrew, > > > its not perfect I am sure :-P > > but in line with the rest of the site ;-) > > I just noticed that now matter w

[web2py] Re: The deference between router.example and routes.example ??

2012-01-15 Thread Web2Py Freak
i am using routes.py to clean my urls now i want to route every domain to its website , how can i do that exactly ?

[web2py] Re: The deference between router.example and routes.example ??

2012-01-15 Thread Anthony
According to the book, in routes.py, you can include: routers = dict( BASE = dict( domains = { 'domain1.com' : 'app1', 'domain2.com' : 'app2', } ), ) Note, if you are using the parameter-based system (as above), you cannot also use the pattern-based system.

[web2py] Re: The deference between router.example and routes.example ??

2012-01-15 Thread Web2Py Freak
are you saying that i cant use routes_in , routes_out with domains ??

Re: [web2py] Re: priority of web2py CMS

2012-01-15 Thread Ovidio Marinho
I think Movuca can be the revolution. It may be all in one, Twitter, Facebook, Wordpress, gTalk, Blave. If each one has an idea of ​​how to integrate all in one would cut as many web pages open, it needs to performance tests to see if all the media protocols are supported at the same time.

Re: [web2py] Re: The deference between router.example and routes.example ??

2012-01-15 Thread Jonathan Lundell
On Jan 15, 2012, at 11:46 AM, Web2Py Freak wrote: > are you saying that i cant use routes_in , routes_out with > domains ?? Only if you do your own domain mapping in routes_in & routes_out.

[web2py] Inherit type from parent

2012-01-15 Thread tsvim
Hi all, once again I turn to you with my latest question. I have a self-referencing table: db.define_table('accounts', Field('name','string'), Field('parent_account','reference accounts'), Field('account_type','string')) What I'm trying to achieve i

[web2py] Re: The deference between router.example and routes.example ??

2012-01-15 Thread Web2Py Freak
i dont understand ,can explain some more please ?

[web2py] Represent - redirect

2012-01-15 Thread Mathias Van Daele
Hello, I have a select crud, with a URL in the column id. If I click 'edit', I should be redirected to a page, where I can update the concerned contact_part record. (as in a grid) What should I put between the URL brackets ? _href=URL() How do I pass the selected record ? My code : tabl

[web2py] Re: migration not working

2012-01-15 Thread Massimo Di Pierro
No. That suggests you should migrate one field at the time to play it safe. When you are confortable with migrations then you can make more complex migrations. On Jan 15, 1:19 am, Likit wrote: > ...which I did... > > Ummm...   that sort of suggests I might as well ALWAYS set > migrate=False in my

[web2py] Re: what triggers a db migration

2012-01-15 Thread Massimo Di Pierro
+1 On Jan 15, 1:21 am, pbreit wrote: > Migrations are pretty powerful but problems can arise. As I've suggested > elsewhere, best to develop against SQLite and then deploy as desired. In > development, I change models frequently. If I run into a problem that I > can't fix with migrations, I might

[web2py] Re: Cherrypy can run on android ! without any patching needed , Can Rocket do that?

2012-01-15 Thread Massimo Di Pierro
Nice. perhaps we could by-pass shelve and provide out own implementation based on sqlite. Actually I have this coded already... pros, cons? On Jan 15, 4:28 am, Nik Klever wrote: > web2py runs on Android - I've tested it with my Motorola Defy. The only > problems, I discovered until now concerns t

[web2py] Executing controller- and function-specific models in web2py shell

2012-01-15 Thread Robert Clark
If running a web2py shell, how can model files within controller subdirectories be made available in the environment? For example if we have these two model files: myapp/models/db.py myapp/models/acontroller/db_controller.py Then when launching web2py using: $> python web2py.py -S myapp -M Typi

Re: [web2py] Executing controller- and function-specific models in web2py shell

2012-01-15 Thread Bruno Rocha
I guess you can do inside the web2py shell environment. >>> execfile("applications/myapp/models/acontroller/somefile.py") Not tested, but should work. if you are using Ipython, doing >>> edit path/to/file and then exit saving the file the file is also executed On Sun, Jan 15, 2012 at 7:55 PM,

[web2py] Re: Executing controller- and function-specific models in web2py shell

2012-01-15 Thread Massimo Di Pierro
If you do execfile('applications/app/controllers/default.py') you will expose them all. The problem is that they may have logic like @auth.requires_login() decorators which may prevent you from calling those functions. If you want to do this better you should define make the controllers delegate

Re: [web2py] Re: Executing controller- and function-specific models in web2py shell

2012-01-15 Thread Bruno Rocha
I guess he wants to exec a submodel, not a controller! On Sun, Jan 15, 2012 at 8:54 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > If you do > > execfile('applications/app/controllers/default.py') > > you will expose them all. The problem is that they may have logic like > @auth.req

[web2py] Re: Responsivekit for web2py!

2012-01-15 Thread Alan Etkin
Thank you. I continued using the demo and could see the resizing effect. Really impressing. It would be interesting to have a way to activate/deactivate this feature transparently by default in the scaffolding application with a simple function call or a Settings attribute. On 15 ene, 14:32, Angel

[web2py] Re: what triggers a db migration

2012-01-15 Thread Likit
Thanks, all. This is closed. I am progressing to more deployment complexity: locally develop on xampp with apache and mysql; occasionally run rocket/sqlite if I can't figure things out move things to SuSE server in my office and access behind firewall on own network move things to Linode (probabl

[web2py] Re: examples app doesn't run on apache

2012-01-15 Thread Likit
I am starting simple: - develop locally on xampp/mysql; try things out on rocket/sqlite if I can't figure something out - move to SuSELinux server in my office and access across lan - move to linode probably on centos for the real world after things really, really work I commented out caching deco

[web2py] Re: Application-wide exception handler?

2012-01-15 Thread spiffytech
I put this in my model file and it did exactly what I wanted. Thanks! Is there a reason my attempts to use sys.excepthook failed? This was my test code, which triggered the normal web2py exception handling, which pointed to the "raise" line: -- import sys def handler(t, v, tb): redirect("http:/

[web2py] Re: examples app doesn't run on apache

2012-01-15 Thread pbreit
Does your Apache httpd log show any further details? Are you using routes.py file? What in your /web2py directory is currently different from a clean install? Is it still the case the your apps are working fine and it is only the examples app that is erroring? COuld you try making a copy of exa

[web2py] Re: what triggers a db migration

2012-01-15 Thread pbreit
Have you considered developing against rocket/sqlite? CentOS should be fine. I've seen a lot of people happy with Ubuntu (10.04 or the latest). I've found Ubuntu to be easy to work with with lots of help available.

[web2py] Re: Resources for setting up for development

2012-01-15 Thread pbreit
My sense is that few Python programmers use IDEs (I don't know any that do). If it's a brief talk, I'd suggest just using the file system and a good text editor and moving quickly to some of the great features of Web2py. If someone complains about code completion, you can say it's possible (wit

[web2py] error class proposal

2012-01-15 Thread David
I was thinking about the form validation. I thought that it may be useful to include an "error" class on the input widget when the form is submitted and has invalid data. ie. from too short to error"type="password"value=""name="password"> too short Notice the error is the class of t

[web2py] ValueError: invalid literal for int() with base 10

2012-01-15 Thread Andrew Evans
Hello I just updated web2py and after restarting uwsgi I get an error on my site ValueError: invalid literal for int() with base 10: '05 04:36:30' Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. Traceback (most recent call last): File "/opt/web2py/gluo

[web2py] Re: ValueError: invalid literal for int() with base 10

2012-01-15 Thread Andrew Evans
This is my code for that page def index(): schedule = db(db.schedule.date==request.now.strftime("%Y-%m-%d")).select(orderby=~db.schedule.date) episodes = db(db.episodes.id>0).select(orderby=~db.episodes.created_on) categories = db(db.episode_categories.id>0).select() trailers = d

[web2py] Re: contains return no rows of field list:string

2012-01-15 Thread Joseph Jude
Thank you. It works. Just for completeness: I had designed a layout from scratch and hence had left out web2py_ajax.html. For this widget to work, it is essential that this file is included. Regards, Joseph

[web2py] Re: Output from some controller

2012-01-15 Thread blackshirt
Thanks Massimo, you were great's people.. 1. if we read from file resulted from redirected stdout, i think that we get complete output finally, not ongoing process output ?? that was right, Massimo ?? correct me if i'm wrong .. 2. if we are using popen (popen2 or whatever), first arguments was cm

[web2py] Re: Application-wide exception handler?

2012-01-15 Thread Anthony
> > Is there a reason my attempts to use sys.excepthook failed? This was > my test code, which triggered the normal web2py exception handling, > which pointed to the "raise" line: > > -- > import sys > def handler(t, v, tb): > redirect("http://example.com";) > sys.excepthook = handler >

[web2py] Re: Executing controller- and function-specific models in web2py shell

2012-01-15 Thread Anthony
When running the shell, the app can actually be in a/c/f format, so try: $> python web2py.py -S myapp/acontroller -M That will execute the acontroller.py controller when starting up the shell, so it will also execute any acontroller specific models as well. If you specify myapp/acontroller/afun

[web2py] Re: The deference between router.example and routes.example ??

2012-01-15 Thread Anthony
On Sunday, January 15, 2012 3:36:59 PM UTC-5, Web2Py Freak wrote: > > i dont understand ,can explain some more please ? In routes.py, router = dict(...) and routes_in = (...) routes_out = (...) are mutually exclusive -- if you want to use a router, you cannot also use routes_in/routes_out, a

[web2py] Re: Inherit type from parent

2012-01-15 Thread Anthony
> > db.define_table('accounts', > Field('name','string'), > Field('parent_account','reference accounts'), > Field('account_type','string')) > > What I'm trying to achieve is to create a tree-like structure. So we have > 5 "root" accounts, which can

[web2py] How is the best way to export/import auth_user database?

2012-01-15 Thread thstart
I need to migrate to new server. How is the best way to export auth_user data from the old and import to the new database and all username/passwords to be used with no change?

[web2py] Re: How is the best way to export/import auth_user database?

2012-01-15 Thread Anthony
Have you looked at http://web2py.com/books/default/chapter/29/6#Exporting-and-importing-data? On Monday, January 16, 2012 2:00:51 AM UTC-5, thstart wrote: > > I need to migrate to new server. How is the best way to export auth_user > data from the old and import to the new database and all usern

Re: [web2py] Re: Responsivekit for web2py!

2012-01-15 Thread Angelo Compagnucci
Hi Alan, If you use the plugin_responsivekit, simply remove conditional import (or comment it) in plugin_responsivekit/layout.html : var width_filter = '{{=current.plugins.responsivekit.screensize_filter}}' var controller = '{{=URL(a=request.application, c=current.plugins.responsivekit.