[web2py] Re: expire_sessions.py and cron

2010-05-21 Thread annet
Hi, > @Annet: > Sorry, but what do you mean "emil"? Emil works at WebFaction, where I host my application in a Shared 1 plan. Using web2py's crontab doesn't work at WebFaction, I have to use my 'real' crontab to clean up sessions in my web2py applications. Hence Massimo's re-write of the expire_s

[web2py] Re: Maybe Off-Topic: I am very happy thanks to web2py :)

2010-05-21 Thread Adi
+1 to both posts. :) On May 22, 4:25 am, weheh wrote: > You will find you are in good company, here. Many of us feel the same > way you do. It's perhaps not fitting to gush ... web2py isn't perfect. > But it's the best I've found at what it does, and by a large margin.

[web2py] Re: Catch auto-login event

2010-05-21 Thread Adi
On May 21, 7:44 pm, mdipierro wrote: > Does this mean that the "remember me for 30 days" feature works well > for you? > I have been having some problems with it. > Good question :) Actually without this option I've experienced that my session expires after a while (I think 10 minutes?), while w

[web2py] Re: expire_sessions.py and cron

2010-05-21 Thread Iceberg
I think there is a cleaner way. No need to modify the applications/ admin/cron/expire_sessions.py whenever you add or remove your apps. You just put this line into each of applications/your_app/cron/crontab 10 2 * * * root **applications/admin/cron/expire_sessions.py

[web2py] Re: A mistake and crashed T3 appadmin from default/configure/models - No solution by now

2010-05-21 Thread mdipierro
The problem is figure out what when wrong. Not so much fixing it. For normal web2py apps (except T3) the fix is always the following: 1) edit the table to match what is in the database 2) delete all databales/*.table files 3) set migrate=False, fake_migrate=True for T3 things may be more complex

Re: [web2py] Re: nice slides on postgresql vs nodb

2010-05-21 Thread Thadeus Burgess
Here is my comparison between the two PostgreSQL Tables DAL ACID vertically scales set-schema Both no built-in object model requires foreign key lookups requires migrations if schema DOES change MongoDB documents NoSQL quick reads horizontally scales changing-schema The advantages I see with N

Re: [web2py] Re: bug2py

2010-05-21 Thread Alexandre Andrade
Let me know if you advance in something. This project interest me. Alexandre Andrade 2010/5/21 Abhishek Mishra > Hi Massimo, > > I was thinking of porting BugBase (a base bug tracker written in php > as a college project) to web2py to learn and speed up with it. The > original PHP code is here

[web2py] Re: A mistake and crashed T3 appadmin from default/configure/models - No solution by now

2010-05-21 Thread GoldenTiger
really? that would be a very usefull information! I feel more secure now thank you alot professor Massimo :DD is via shell or via web? On 22 mayo, 03:31, mdipierro wrote: > Everything can be recovered but the details of how to do it depend on > an exact diagnosis of what happened. > > I wi

[web2py] Re: creating background process with multiprocessing spawns new instance of web2py

2010-05-21 Thread Magnitus
Yeah, thanks for the clarification about GIL, that was awesome (I read many a textbook that was not as well written). Made me realise that you can do some calls to the Python's C APY from multiple C threads, but you should do so seldomly as its more expensive in terms of interruptions in the paral

[web2py] Re: A mistake and crashed T3 appadmin from default/configure/models - No solution by now

2010-05-21 Thread mdipierro
Everything can be recovered but the details of how to do it depend on an exact diagnosis of what happened. I will try draft some guildelines for recovery. On May 21, 6:43 pm, GoldenTiger wrote: > I copy-pasted some models that I previosuly defined in another web2py > app, to configure models for

[web2py] Re: creating background process with multiprocessing spawns new instance of web2py

2010-05-21 Thread Yarko Tymciurak
On May 21, 5:06 am, Graham Dumpleton wrote: > On May 21, 7:00 pm, Yarko Tymciurak > wrote: ... > > There is much to cover in this - and I suppose reason to be happy that > > python traditionally hasn't run multi-core. > > See, for example, the discussions > > at:http://stackoverflow.com/que

[web2py] Re: bug2py

2010-05-21 Thread GoldenTiger
Great, now I am learning web2py I have a few of them noted at my Mac desktop. There is a little bug at http://bugs.madetokill.com Register button redirect to javascript code instead of /index.php? page=regUser Juan Martinez

[web2py] A mistake and crashed T3 appadmin from default/configure/models - No solution by now

2010-05-21 Thread GoldenTiger
I copy-pasted some models that I previosuly defined in another web2py app, to configure models for an T3 new page. By mistake, I copied all content from db.py ,and pasted in configure models, and i submitted. This provoked duplicated tables and variables, and an already defined error in default c

[web2py] Re: Maybe Off-Topic: I am very happy thanks to web2py :)

2010-05-21 Thread weheh
You will find you are in good company, here. Many of us feel the same way you do. It's perhaps not fitting to gush ... web2py isn't perfect. But it's the best I've found at what it does, and by a large margin.

[web2py] Re: new in Django

2010-05-21 Thread Magnitus
> I did not mean that in a negative tone, I do respect designers a great > deal, they have a gift that seems to allude me =) >I am sure Thadeus did not mean it is a negative sense. I am personally >envious of designer given my total lack of artistic skills. That makes 3 of us. My experience with

[web2py] Re: bug2py

2010-05-21 Thread mdipierro
I think it will be very useful. Keep up posted. :-) On May 21, 4:34 pm, Abhishek Mishra wrote: > Hi Massimo, > > I was thinking of porting BugBase (a base bug tracker written in php > as a college project) to web2py to learn and speed up with it. The > original PHP code is here -http://github.com

[web2py] Re: bug2py

2010-05-21 Thread Abhishek Mishra
Hi Massimo, I was thinking of porting BugBase (a base bug tracker written in php as a college project) to web2py to learn and speed up with it. The original PHP code is here - http://github.com/ideamonk/bugbase with demo available at http://bugs.madetokill.com Its a bit buggy and insecure (assume

[web2py] bug2py

2010-05-21 Thread mdipierro
I found this http://github.com/ideamonk/Bug2Py seems interesting. Anybody has any info? Massimo

[web2py] Re: auth problem

2010-05-21 Thread mdipierro
You have to add some logic to do that. On May 21, 3:26 pm, annet wrote: > I enabled authentication and have the following entries in the > auth_user, auth_group and auth_membership tables: > > user.id    user.first_name      ... > 1             Ann > 2             Jan > > group.id    group.role

[web2py] auth problem

2010-05-21 Thread annet
I enabled authentication and have the following entries in the auth_user, auth_group and auth_membership tables: user.iduser.first_name ... 1 Ann 2 Jan group.idgroup.role 1 user_1 2 user_2 membership.idmembership.user_idm

[web2py] Re: new in Django

2010-05-21 Thread Pepe
Hi, well, I see we both agree in two points: a) we don't like use django :) b) and we respect each other (this is more cool :P ) i'm sorry if I get off-topic of this group, really, but I don't like the generalizations :) that's all... if I can help you both, please tell me, I will gladly! best

[web2py] Maybe Off-Topic: I am very happy thanks to web2py :)

2010-05-21 Thread glsdesign
Hi all, I just can't resist to not tell to you how I love web2py. I've used for some time CherryPy and Django, they are good products, but Web2Py simplicity and productivity is marvelous. I don't talk english very well, but even in my native language I can't say how I am enthusiastic, I feel "empow

[web2py] Re: About differences bettwen T3 and cube9

2010-05-21 Thread mdipierro
Thanks for your feedback on this. On May 21, 12:59 pm, GoldenTiger wrote: > Yes, I know WaveMaker, It's one of my favourite ajax studio out there, > runs locally on a small java server with very simple API > > If you like Wavemaker then you will like SmartClient   > http://www.smartclient.com > >

Re: [web2py] Re: "SSL is OFF" error message when starting the server

2010-05-21 Thread Timothy Farrell
Yah I hear ya. I love Debian for being rock-solid stable (not to mention that I cut my Linux teeth on it) but man is it OLD! I've had good luck with Ubuntu. I try to stick with Linux systems that use DEBs. I've been burned too many times by RPM-dependency hell! There's always Gentoo! No s

[web2py] Re: About differences bettwen T3 and cube9

2010-05-21 Thread GoldenTiger
I have just remembered why I left using smartclient and wavemaker, on production server they were too slow

[web2py] Re: Authentication

2010-05-21 Thread GoldenTiger
I think the first table definition is more actual and cleaner than second and it's how I am actually doing it On 21 mayo, 16:49, annet wrote: > I read chapter 8 of the web2py manual and some post on authentication > to get started (again) implementing a cms. > > I read about MD5 and SHA-512, and

[web2py] Re: About differences bettwen T3 and cube9

2010-05-21 Thread GoldenTiger
Yes, I know WaveMaker, It's one of my favourite ajax studio out there, runs locally on a small java server with very simple API If you like Wavemaker then you will like SmartClient http://www.smartclient.com They both are powerfull and nice, but since runs on java servers I prefer web2py, mayb

Re: [web2py] Re: nice slides on postgresql vs nodb

2010-05-21 Thread Russ Ferriday
Final thought... I think if NoSQL were indicated for use with a web2Py app, it might be most appropriate to replace some, but not all SQL-based tables. --r. On May 21, 2010, at 9:31 AM, Thadeus Burgess wrote: > I also see really no reason to use NoSQL unless you really just don't > like writi

Re: [web2py] Script to generate schema (models) from mysql

2010-05-21 Thread Alexandre Andrade
To each new database, need to be adusted ( in a new script): 1 - the database driver (mysqlb is for mysql) 2 - maybe the sql sintax to select table and fields 3 - the treatment of result of select tables and field can need adjustments 4 - the field_type function have to be adjusted. My first opti

Re: [web2py] Script to generate schema (models) from mysql

2010-05-21 Thread Alexandre Andrade
I will need to be adapted. look my answer to Jonhy email. 2010/5/21 Nicol van der Merwe > Nice! This is super excellent. > > Just a simple question : will this work on SQL Server? > > > On Fri, May 21, 2010 at 1:37 AM, Alexandre Andrade < > alexandrema...@gmail.com> wrote: > >> Some time ago

Re: [web2py] Script to generate schema (models) from mysql

2010-05-21 Thread Alexandre Andrade
To each new database, need to be adusted ( in a new script): 1 - the database driver (mysqlb is for mysql) 2 - maybe the sql sintax to select table and fields 3 - the treatment of result of select tables and field can need adjustments 4 - the field_type function have to be adjusted. My first opti

Re: [web2py] Re: nice slides on postgresql vs nodb

2010-05-21 Thread Russ Ferriday
But Thadeus, NoSQL is much more than moving away from SQL. It's not that we *want* joins to become an application's task, or that we want to remove consistency within requests. The driving forces are in general scalability, availability, & robustness with enormous amounts of traffic. For most sit

Re: [web2py] Re: nice slides on postgresql vs nodb

2010-05-21 Thread Thadeus Burgess
I also see really no reason to use NoSQL unless you really just don't like writing SQL... thats why we have ORMs and DALs anyways. You still have to use FK relationships with document based sets... ie: with a 4MB document limit, they suggest you split comments for a post into its own document and

[web2py] Re: Drop Down alternative

2010-05-21 Thread mr.freeze
That's correct. Once you apply the widget to the field it will be used on all corresponding forms. On May 21, 11:12 am, annet wrote: > I had a quick look at the slice, am I right to conclude that contrary > to the pengoworks autocomplete this one is more generic. When I use > the Pengoworks autoc

[web2py] Re: Drop Down alternative

2010-05-21 Thread annet
I had a quick look at the slice, am I right to conclude that contrary to the pengoworks autocomplete this one is more generic. When I use the Pengoworks autocomplete in my model I have to define: db.address.city.widget=lambda self,value:INPUT(_type='text',_id='city',_class='ac_input',_name='city',

[web2py] Re: Drop Down alternative

2010-05-21 Thread mr.freeze
Here is another option: http://www.web2pyslices.com/main/slices/take_slice/66 On May 20, 9:16 pm, greenpoise wrote: > Is there an alternative to drop down? a type ahead type of widget?

[web2py] Re: Drop Down alternative

2010-05-21 Thread annet
Massimo, > Do you have a table db.city with a field db.city.name? Yes I do. > If so, because db.address.city is not a reference, it should just be > db.address.city.widget=AutocompleteWidget(request,db.city.name) Yes, now it works. This saves me a lot of work, implementing the pengoworks autoco

[web2py] Re: "SSL is OFF" error message when starting the server

2010-05-21 Thread OMAR
No, I'm still stuck. Not sure where to go from here, so I'm starting over with a fresh install of the OS. Perhaps I'll pick something with python 2.6 ? Obviously I don't have to implement the ssl through python, I can make the connection through another web server, but I hate to give up after inve

Re: [web2py] Script to generate schema (models) from mysql

2010-05-21 Thread Jean Guy
Hi, Could it be port to all database this way : http://blog.gmane.org/gmane.comp.python.sqlobject/month=20100101 SQLObject ?? Jonhy 2010/5/20 Alexandre Andrade > Some time ago I talk about to do it. > > Finally I have to do it. > > It can be improved to a form in appadmin, use the model to

[web2py] Re: About differences bettwen T3 and cube9

2010-05-21 Thread mdipierro
A friend pointed me to this: http://wavemaker.com It is really nice and very close to what I would like the future of t3 to be. On May 21, 9:37 am, GoldenTiger wrote: > Thanks for so fast response :D > > Then I will choose T3 for my urgent web, and then i will back to > web2py > > Juan Martinez >

[web2py] Authentication

2010-05-21 Thread annet
I read chapter 8 of the web2py manual and some post on authentication to get started (again) implementing a cms. I read about MD5 and SHA-512, and understand I have to provide a secret key for this setting: auth.settings.hmac_key='' Does this key have a specific format, e.g. 448a98e0-00fd-46b2- ac

[web2py] Re: Catch auto-login event

2010-05-21 Thread mdipierro
Does this mean that the "remember me for 30 days" feature works well for you? I have been having some problems with it. On May 20, 5:45 am, Adi wrote: > Hi, > > I use the "Remember me for 30 days" feature in our app. I used a > custom auth_table with a column "last_login" to update every time a >

[web2py] Re: About differences bettwen T3 and cube9

2010-05-21 Thread GoldenTiger
Thanks for so fast response :D Then I will choose T3 for my urgent web, and then i will back to web2py Juan Martinez On 21 mayo, 14:49, mdipierro wrote: > T3 was a proof of concept. It works but it was written very long ago. > A lot of the T3 functionality is now in web2py. there is very littl

Re: [web2py] Script to generate schema (models) from mysql

2010-05-21 Thread Nicol van der Merwe
Oops! Stupid me. :) Just read the *entire* subject now "Script to generate schema (models) from *mysql*". So obviously - not for SQL Server. *sigh* it's been a long day. On Fri, May 21, 2010 at 3:59 PM, Nicol van der Merwe wrote: > Nice! This is super excellent. > > Just a simple question : will

[web2py] Re: Drop Down alternative

2010-05-21 Thread mdipierro
Do you have a table db.city with a field db.city.name? If so, because db.address.city is not a reference, it should just be db.address.city.widget=AutocompleteWidget(request,db.city.name) On May 21, 7:55 am, annet wrote: > Massimo, > > I gave this a try: > > from gluon.sqlhtml import Autocompl

Re: [web2py] Script to generate schema (models) from mysql

2010-05-21 Thread Jean Guy
Hi, Really nice! I haven't try it, but I have to do the importation of postgresql database into a web2py model. I was just wondering if you can pointed the place that should be adapt for postgresql, I will change it and return the running code for postgresql. Thanks. Jonhy 2010/5/20 Alexandre

Re: [web2py] Script to generate schema (models) from mysql

2010-05-21 Thread Nicol van der Merwe
Nice! This is super excellent. Just a simple question : will this work on SQL Server? On Fri, May 21, 2010 at 1:37 AM, Alexandre Andrade wrote: > Some time ago I talk about to do it. > > Finally I have to do it. > > It can be improved to a form in appadmin, use the model to another db > (postgr

Re: [web2py] Re: nice slides on postgresql vs nodb

2010-05-21 Thread Albert Abril
Haha! I enjoy with this jokes in tech slides, they're amusing! On Fri, May 21, 2010 at 3:02 PM, Timothy Farrell wrote: > Developers running with scissors!! LOL!!! > > > On 5/20/2010 2:12 PM, szimszon wrote: > >> Nice >> >> On máj. 20, 19:52, mdipierro wrote: >> >> >>> http://www.scribd.com/doc/

Re: [web2py] Re: nice slides on postgresql vs nodb

2010-05-21 Thread Timothy Farrell
Developers running with scissors!! LOL!!! On 5/20/2010 2:12 PM, szimszon wrote: Nice On máj. 20, 19:52, mdipierro wrote: http://www.scribd.com/doc/31669670/PostgreSQL-and-NoSQL

[web2py] Re: Drop Down alternative

2010-05-21 Thread annet
Massimo, I gave this a try: from gluon.sqlhtml import AutocompleteWidget db.define_table('address', Field('city',length=42,default='',notnull=True)), ...) db.address.city.widget=AutocompleteWidget(request,db.city.name,db.city.name,orderby=db.city.name) but that doesn't work, why not?

Re: [web2py] Re: "SSL is OFF" error message when starting the server

2010-05-21 Thread Timothy Farrell
So did that take care of it?? On 5/20/2010 4:15 PM, OMAR wrote: Tim, you were very close. libssl-dev - Massimo, I went the route of installing distutils so I could easy_install, but once again was met with an error: sudo easy_install ssl Processing ssl error: Couldn't find a setup s

[web2py] Re: About differences bettwen T3 and cube9

2010-05-21 Thread mdipierro
T3 was a proof of concept. It works but it was written very long ago. A lot of the T3 functionality is now in web2py. there is very little reason for using T3. cube9 does not exist. It is just a temp name for a project. I.e. write an abstraction layer on top of web2py that would allow to program w

[web2py] Re: Drop Down alternative

2010-05-21 Thread weheh
LOL ... holy cr-p! That's great MDP! There is so much new stuff, I can't keep up. On May 21, 12:32 am, mdipierro wrote: > yes. > > from gluon.sqlhtml import AutocompleteWidget > > db.define_table('mytable', >    Field('person',db.person,requires=IS_IN_DB(db,db.person.id,'% > (name)s')), >    ...)

[web2py] Re: Catch auto-login event

2010-05-21 Thread weheh
Why don't you just keep a last_activity date? Also, the auth event log keeps track of the last login automatically. Why not check it to see what it's doing regarding last login when user has the "remember" checkbox checked? Technically, if it's checked, they're not logging in, right? Can you better

[web2py] Re: creating background process with multiprocessing spawns new instance of web2py

2010-05-21 Thread Graham Dumpleton
On May 21, 8:14 pm, Magnitus wrote: > Now that you mention it, I recall reading in the Python/C API that > Python wasn't really thread-safe and that Python objects shouldn't be > accessed from multiple C threads (they recommended using the Python > threading API which was exposed in the Python/C

[web2py] Re: creating background process with multiprocessing spawns new instance of web2py

2010-05-21 Thread Magnitus
Now that you mention it, I recall reading in the Python/C API that Python wasn't really thread-safe and that Python objects shouldn't be accessed from multiple C threads (they recommended using the Python threading API which was exposed in the Python/C API instead, but that didn't interest me as it

[web2py] Re: creating background process with multiprocessing spawns new instance of web2py

2010-05-21 Thread Graham Dumpleton
On May 21, 7:00 pm, Yarko Tymciurak wrote: > On May 21, 3:33 am, Magnitus wrote: > > > But if you create "tasks" without doing it at the OS level, doesn't > > that means that you won't really be able to take full advantage of > > multi-processor hardware (since the OS handles the hardware and i

[web2py] Re: creating background process with multiprocessing spawns new instance of web2py

2010-05-21 Thread Yarko Tymciurak
On May 21, 3:33 am, Magnitus wrote: > But if you create "tasks" without doing it at the OS level, doesn't > that means that you won't really be able to take full advantage of > multi-processor hardware (since the OS handles the hardware and if the > OS doesn't know about it, it won't be able to do

[web2py] About differences bettwen T3 and cube9

2010-05-21 Thread GoldenTiger
Hi Massimo, I'm trying T3 and cube9 (http://code.google.com/p/cube9/) your new attempt to rewrite T3. I love T3 ! Correct me if I am wrong about this: The only way to check 'is_admin' at T3 in models/db.py, is: is_admin=(t2.logged_in and (not settings.administrator_emails or t2.person_email i

[web2py] Re: creating background process with multiprocessing spawns new instance of web2py

2010-05-21 Thread Magnitus
But if you create "tasks" without doing it at the OS level, doesn't that means that you won't really be able to take full advantage of multi-processor hardware (since the OS handles the hardware and if the OS doesn't know about it, it won't be able to do the required optimizations with the hardware