[web2py] Re: Catch auto-login event

2010-05-21 Thread Adi
Sure. Thanks for the update. On May 21, 9:34 am, mdipierro mdipie...@cs.depaul.edu wrote: need to work on this. On the case but being distracted sorry. On May 20, 10:50 pm, Adi aditya.sa...@gmail.com wrote: Any help on this? On May 20, 3:45 pm, Adi aditya.sa...@gmail.com wrote: Hi,

[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

[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

[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 eric_vallee2...@yahoo.ca 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

[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 resultsinsoftw...@gmail.com wrote: On May 21, 3:33 am, Magnitus eric_vallee2...@yahoo.ca 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

[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

[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 eric_vallee2...@yahoo.ca 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

[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: 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 mdipie...@cs.depaul.edu wrote: yes. from gluon.sqlhtml import AutocompleteWidget db.define_table('mytable',    Field('person',db.person,requires=IS_IN_DB(db,db.person.id,'%

[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

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

[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: 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, mdipierromdipie...@cs.depaul.edu wrote: http://www.scribd.com/doc/31669670/PostgreSQL-and-NoSQL

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 tfarr...@swgen.com wrote: Developers running with scissors!! LOL!!! On 5/20/2010 2:12 PM, szimszon wrote: Nice On máj. 20, 19:52, mdipierromdipie...@cs.depaul.edu wrote:

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 alexandrema...@gmail.com 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

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

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 aspersie...@gmail.comwrote: Nice! This is super excellent. Just 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 mdipie...@cs.depaul.edu 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] 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 aditya.sa...@gmail.com 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

[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='your secret key' Does this key have a specific format, e.g.

[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 goldenboy...@gmail.com wrote: Thanks for so fast response :D Then I will choose T3 for my urgent web, and then i will back to web2py

[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

[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

[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 danel.sega...@gmail.com wrote: Is there an alternative to drop down? a type ahead type of widget?

[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

[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 annet.verm...@gmail.com 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

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

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

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

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 aspersie...@gmail.com 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

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

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

[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 annet.verm...@gmail.com wrote: I read chapter 8 of the web2py manual and some post on authentication to get started (again) implementing a cms. I read about

[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

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

[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 goldenboy...@gmail.com 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  

[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

[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!

[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_id

[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 annet.verm...@gmail.com 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

[web2py] bug2py

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

[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

[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 ideam...@gmail.com 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

[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] 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

[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 graham.dumple...@gmail.com wrote: On May 21, 7:00 pm, Yarko Tymciurak resultsinsoftw...@gmail.com 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

[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 goldenboy...@gmail.com wrote: I copy-pasted some models that I previosuly defined in another web2py app, to

[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

[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 mdipie...@cs.depaul.edu wrote: Everything can be recovered but the details of how to do it depend on an exact diagnosis of

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 ideam...@gmail.com 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

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

[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

[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: Catch auto-login event

2010-05-21 Thread Adi
On May 21, 7:44 pm, mdipierro mdipie...@cs.depaul.edu 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

[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 richard_gor...@verizon.net 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.