Re: [web2py] Re: hierarchical authorization

2011-03-21 Thread Martin Weissenboeck
Is it possible to use LDAP together with the Goole App Engine? 2011/3/21 Martin Weissenboeck mweis...@gmail.com Thank you for this hint. I do not have any experience with LDAP but of course it would be an interesting callenge to learn more. 2011/3/21 Joe Barnhart joe.barnh...@gmail.com

[web2py] Re: web2py Issues

2011-03-21 Thread Neveen Adel
Hello Kevin , Thanks a lot for your reply. what i want to do is : def items(): wo = db(db.WO.id == request.vars.wo_id).select()[0] checkList_items = db(db.checklist_item.cl_id == request.vars.cl_id).select(orderby=checklist_item.id DESC) form =

[web2py] Re: web2py Issues

2011-03-21 Thread Neveen Adel
Hello DenesL, Thanks for your reply. For Issue#2: inside get_CIs function the request.vars.WO_cpp_id is None which represent the selected id from first dropdown. could you please advice me what the problem? On Mar 20, 6:24 pm, DenesL denes1...@yahoo.ca wrote: On Mar 20, 11:32 am, Neveen

[web2py] moving from Drupal to Web2py

2011-03-21 Thread VP
I have a Drupal app, which is quite bloated. I'm estimating if it's cost efficient to convert this app to web2py. Essentially, I'm most interested in moving the users and nodes/comments from Drupal to web2py. As long as these are consistent, I can cook up the rest. What would you suggest?

[web2py] How using is it to have the redirects shown while in development...

2011-03-21 Thread Jason (spot) Brower
Now that I am working in Django at my work, I notice that when using the built in server it notifies you of all the redirects. How useful is this and would it be useful to implement in Web2py? --- Jason Brower

[web2py] Re: How using is it to have the redirects shown while in development...

2011-03-21 Thread Mengu
i can think of this being helpful only for logging purposes. On Mar 21, 9:20 am, Jason (spot) Brower encomp...@gmail.com wrote: Now that I am working in Django at my work, I notice that when using the built in server it notifies you of all the redirects. How useful is this and would it be

[web2py] Menu based on Boolean table fields.

2011-03-21 Thread annet
In db.py I defined the following table: db.define_table('cardfunction', Field('company_id',db.company,default='',notnull=True,unique=True), Field('home',type='boolean',default=True), Field('logo',type='boolean',default=False), Field('tagline',type='boolean',default=False),

[web2py] Re: moving from Drupal to Web2py

2011-03-21 Thread Anthony
Have you seen http://code.google.com/p/web2py/source/browse/scripts/extract_mysql_models.py ? On Monday, March 21, 2011 3:00:56 AM UTC-4, VP wrote: I have a Drupal app, which is quite bloated. I'm estimating if it's cost efficient to convert this app to web2py. Essentially, I'm most

Re: [web2py] setup.py to install web2py globally into the python env/virtualenv

2011-03-21 Thread Martín Mulone
Thanks praneeth for the contribution, I think this is great. 2011/3/20 Praneeth Bodduluri life...@gmail.com Hello all, In an attempt to make web2py pip installable, so that I can use gluon as a module in other python programs, I created a setup.py that can be used to create a source dist

[web2py] Re: How to create a parallel mobile site

2011-03-21 Thread ChrisM
I'm just taking first steps in using jquery mobile, I copied and pasted a basic html template from the jquery site put it on a app engine demo site i have, but it does not load up properly on an iphone. I am struggling to pinpoint problem, do you guys think that this is web2py configuration

[web2py] Re: web2py Issues

2011-03-21 Thread pbreit
This is hard to follow. Can you isolate the parts that don't work? Are you able to radically simplify the logic?

Re: [web2py] Re: Proposals for New Tagline

2011-03-21 Thread AdamF
Hi, I've read all the discussion about the tagline... and unfortunately I cannot agree with most of the votes. But maybe it's because I am coming from enterprise world and I have a different perspective... For me if you put enterprise in the tagline that means only a few things; it's a

[web2py] Re: hierarchical authorization

2011-03-21 Thread Massimo Di Pierro
You would need something as an LDAP web service. I guess one could create it with web2py. On Mar 21, 1:17 am, Martin Weissenboeck mweis...@gmail.com wrote: Is it possible to use LDAP together with the Goole App Engine? 2011/3/21 Martin Weissenboeck mweis...@gmail.com Thank you for

[web2py] Table already exists

2011-03-21 Thread LarryEitel
Getting: InternalError: (1050, uTable 'b' already exists) How can I get past this? Yes, the table exists. I suppose I can turn off migration testing. Anyway to update logs, .table files etc to conform to existing tables? Thank you :)

[web2py] Re: Proposals for New Tagline

2011-03-21 Thread Massimo Di Pierro
That is what I always assumed. On Mar 21, 8:23 am, AdamF kyu...@gmail.com wrote: Hi, I've read all the discussion about the tagline... and unfortunately I cannot agree with most of the votes. But maybe it's because I am coming from enterprise world and I have a different perspective... For

Re: [web2py] Re: XML manipulation

2011-03-21 Thread Richard Vézina
Hello Mart, I need to generate WordML out of web2py... Is there a easier or more integrated way then use xslt transformation that is the easiest way that comes to my mind? Thanks Richard On Sun, Mar 20, 2011 at 8:20 PM, mart msenecal...@gmail.com wrote: I use lots of XML to drive automation,

[web2py] Re: web2py Issues

2011-03-21 Thread Kevin Ivarsen
Why do you need to redirect back to the same view to display the error? The normal way of doing this is basically what you currently have: if there is an error in the form in the POST, immediately redisplay the form. I think the reason this is failing is because of the formkey technique used

[web2py] Re: web2py Issues

2011-03-21 Thread Kevin Ivarsen
One other thought - if web2py wasn't rejecting the form based on the formkey after redirect, I think you would actually be running into an infinite redirect loop here the way things are currently structured! Cheers, Kevin

Re: [web2py] Table already exists

2011-03-21 Thread Kenneth Lundström
On 21.3.2011 5:46, LarryEitel wrote: Getting: InternalError: (1050, uTable 'b' already exists) How can I get past this? Yes, the table exists. I suppose I can turn off migration testing. Anyway to update logs, .table files etc to conform to existing tables? Thank you :) Is it so that you have

[web2py] Re: web2py Issues

2011-03-21 Thread Neveen Adel
Thanks a lot Kevin for your time explanation :) On Mar 21, 3:44 pm, Kevin Ivarsen kivar...@gmail.com wrote: One other thought - if web2py wasn't rejecting the form based on the formkey after redirect, I think you would actually be running into an infinite redirect loop here the way things

[web2py] jquery mobile

2011-03-21 Thread ChrisM
I am looking for a basic scaffold app that uses jquery mobile , I also use app engine to host my code. tried modifying existing app but run into problems, web2py doesn't serve the mobile page even with a hello world type template. Could you step me through what i should be configuring, sorry but i

[web2py] Menu based on Boolean table fields.

2011-03-21 Thread annet
In db.py I defined the following table: db.define_table('cardfunction', Field('company_id',db.company,default='',notnull=True,unique=True), Field('home',type='boolean',default=True), Field('logo',type='boolean',default=False), Field('tagline',type='boolean',default=False),

Re: [web2py] Menu based on Boolean table fields.

2011-03-21 Thread Martín Mulone
Take a look to this code. #list slices who own def my_slices(): user_id = session.auth.user.id slices = db(db.slices.user_id == user_id).select(db.slices.id, db.slices.title) myslices = [ (T('Add slice'), False,

[web2py] Re: Table already exists

2011-03-21 Thread LarryEitel
Thank you for the explanation and suggestion. My foray into web2py is bearing fruit!

[web2py] Re: Stumped on error: The end tag is unmatched, please check if you have a starting block tag

2011-03-21 Thread Neodudeman
Thanks for your help! Was able to solve this. Turns out that I was editing the wrong, but similar, view file. Changing the variable from {{end = len(list)}} to {{right = len(list)}} worked! Thanks again. On Mar 20, 9:45 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I think this is

Re: [web2py] django toolbar

2011-03-21 Thread Tom Atkins
This looks great. Do you mean this Django toolbar: http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/ http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/If so I'd be very interested in SQL queries showing the number of queries run during response

[web2py] strange lost password behavior

2011-03-21 Thread rif
Hi guys, Is the default lost password working for you? In my deploy I always get an Invalid email validation warning.

[web2py] Re: jquery mobile

2011-03-21 Thread Anthony
Can you provide more information? What does your web2py controller and view code look like?

[web2py] Re: django toolbar

2011-03-21 Thread Massimo Di Pierro
The queries are not currently collected. On Mar 21, 9:52 am, Tom Atkins minkto...@gmail.com wrote: This looks great.  Do you mean this Django toolbar: http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/

Re: [web2py] Re: setup.py to install web2py globally into the python env/virtualenv

2011-03-21 Thread Praneeth Bodduluri
Massimo, Submitted at: https://code.google.com/p/web2py/issues/detail?id=220 -- Praneeth IRC: lifeeth On Mon, Mar 21, 2011 at 9:59 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: This is great! Monday and Tuesday are busy days for me but I will check this asap. Please open a web2py

Re: [web2py] strange lost password behavior

2011-03-21 Thread Marin Pranjic
Which version of web2py are you using? On Mon, Mar 21, 2011 at 3:56 PM, rif feric...@gmail.com wrote: Hi guys, Is the default lost password working for you? In my deploy I always get an Invalid email validation warning.

[web2py] Re: Converting legacy MySQL databases to web2py DAL

2011-03-21 Thread ron_m
Looks great, thanks for the addition. I worked on this a bit when it first was added but since I don't use mysql any more in the application I am working on and have a high workload I never got any further.

Re: [web2py] strange lost password behavior

2011-03-21 Thread rif
1.94.5 the latest.

Re: [web2py] strange lost password behavior

2011-03-21 Thread rif
ok, the validation was because the email was not registered, with a valid email I get this: Traceback (most recent call last): File /Users/alex/web2py/gluon/restricted.py, line 188, in restricted exec ccode in environment File

[web2py] Re: jquery mobile

2011-03-21 Thread ChrisM
Thanks, i downloaded latest web2py , created new app init And the view is Just a hello world with links to jquery and jqmobile plus the Css files, this html demo taken from the lists demo on the jq mobile demo site and renamed to Init/default/views/index.html Have tried with links to the jquery

[web2py] Re: jquery mobile

2011-03-21 Thread Anthony
What exactly is the behavior you see? When you go to http://yoursite.appspot.com/init/default/index, what happens? What is the exact content of your index.html file? Does it extend any layout file (if so, what does that look like)? Have you confirmed that your web2py installation is

[web2py] Re: Table already exists

2011-03-21 Thread villas
There are two aspects to this: the actual DB tables and the web2py mapping to the DB. The latter are stored in the .tables files in the database folder. To keep the two in step, web2py automatically migrates the DB and updates the mapping from the models. To turn off that functionality (for

Re: [web2py] Re: Proposals for New Tagline

2011-03-21 Thread Richard Vézina
And what about : Web2py : The framework that solves the business needs Richard On Mon, Mar 21, 2011 at 9:36 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: That is what I always assumed. On Mar 21, 8:23 am, AdamF kyu...@gmail.com wrote: Hi, I've read all the discussion about

[web2py] Re: XML manipulation

2011-03-21 Thread villas
Hi Richard As a novice, the easiest solution I found was something like this: * create wordml.xml template in views/default/ folder * prepare the xml, place variables for the data * create a wordml function in controller * manipulate your data into the variables in the controller ready to place

Re: [web2py] Re: XML manipulation

2011-03-21 Thread Richard Vézina
It is not bad for start... But what happen when you change your query in term of number of columns or rows? Do you have to make an other template each time... Personnaly I don't like xml that much, so I don't want to have to get back at editing my template all the time. Richard On Mon, Mar 21,

[web2py] Re: Proposals for New Tagline

2011-03-21 Thread villas
Hi Adam, That may be true -- for you. Web2py should target the market sector that it wants and try to appeal to that sector. Should web2py target an enterprise developer who has already chosen his software strategy and often has huge investments in existing vertical market systems and sometimes

[web2py] Re: the facebook clone video

2011-03-21 Thread sipiatti
Hi Massimo, another nice video! :) I am amazed of this reader robot and your sytem to use it for making such videos. I would like to use it to make python tutorials in a school for python programmig faculty -- if possible. Can you tell me what is it, is it open source or free to use? Thanks

[web2py] problem checkbox widgets

2011-03-21 Thread Martín Mulone
I think is not working. Anybody is using it with multiple=true?. I make a fix. def widget_checkbox(self, field, value, **attributes): generates a TABLE tag, including INPUT checkboxes (multiple allowed) see also: :meth:`FormWidget.widget` from

[web2py] Re: moving from Drupal to Web2py

2011-03-21 Thread geoff golder
You would have to write your own migration. There are pretty good snipptets and modules around for getting data out of Drupal; but you are going to have to create your own table structure to handle nodes and comments. Users should go pretty smoothly; depending on how much 'profile' information

[web2py] Re: moving from Drupal to Web2py

2011-03-21 Thread pbreit
How big are the tables? Is Excel a reasonable low-tech option for massaging CSV files?

[web2py] Re: Proposals for New Tagline

2011-03-21 Thread pbreit
In the non-enterprise world, it's the exact opposite. Enterprise implies expensive, unpleasant, old, hard to acquire/install/use, bloated, Java/.net, etc. I'd be surprised if many enterprises are even considering Django.

[web2py] Export DB from admin?

2011-03-21 Thread pbreit
Can I export and import my whole DB in admin or do I need to do it table-by-table?

[web2py] Re: Export DB from admin?

2011-03-21 Thread Anthony
You can use export_to_csv_file, but I don't think you can do it from admin: http://web2py.com/book/default/chapter/06#CSV-(all-tables-at-once) Anthony

[web2py] Re: the facebook clone video

2011-03-21 Thread Massimo Di Pierro
Not yet sorry. But I will release it eventually. Massimo On Mar 21, 12:55 pm, sipiatti sipia...@gmail.com wrote: Hi Massimo, another nice video! :) I am amazed of this reader robot and your sytem to use it for making such videos. I would like to use it to make python tutorials in a school

[web2py] Re: moving from Drupal to Web2py

2011-03-21 Thread VP
Thanks. I'm wondering if this script preserves foreign key constraints (e.g. node comments). I have several hundred users and about 10,000 nodes. On Mar 21, 4:48 am, Anthony abasta...@gmail.com wrote: Have you seenhttp://code.google.com/p/web2py/source/browse/scripts/extract_mysql_m... ?

[web2py] Re: XML manipulation

2011-03-21 Thread mart
Hi Richard, Yeah, I hate transforms too :( I haven't really worked with wordml, but... it all looks the same to me... I would definitely take the dictionary approach, should be fairly simple. If you like i can grap a web2py table, convert it to xml (that is how you are getting you xml?), then

[web2py] Re: the facebook clone video

2011-03-21 Thread LightOfMooN
hmm.. Is it a some new syntax or just abstraction for presentation? For example: user = User(a0 or me) ? friends = db(User.id==Link.source)(Link.target==me).select() and many others

[web2py] Re: jquery mobile

2011-03-21 Thread howesc
sorry if this sends you on a wild-goose chase, i don't have an of those fancy i-devices myself (iphone, ipod, ipad) but i'm working on a project that does and those developers use http://www.charlesproxy.com/ and route their traffic through it to see request/response info. So, once you are

[web2py] can web2py internal webserver handle serveral requests in parallel?

2011-03-21 Thread olivier
I plan to use web2py as a simple desktop app service (using the packaged web2py for windows). Will the web server (I don't know which server ships in the stand alone version) handle several requests in parallel if I use ajax calls to several controller functions? I am wondering if this could be

Re: [web2py] Re: new URL router use cases

2011-03-21 Thread Tom Atkins
I am designing an app with a URL structure like this: myapp.com/yoursitename 'yoursitename' is effectively an argument as there could be many sites and users are allowed to create their own sites. But I'd like it to be 'top level'. Then within yoursitename there will be URLs like this:

[web2py] Re: new URL router use cases

2011-03-21 Thread VP
I think each yoursitename should be a different app. I think it's most efficient that way. On Mar 21, 4:37 pm, Tom Atkins minkto...@gmail.com wrote: I am designing an app with a URL structure like this: myapp.com/yoursitename 'yoursitename' is effectively an argument as there could be many

[web2py] Re: Export DB from admin?

2011-03-21 Thread VP
Is export_to_csv a preferred way of backup up database? On Mar 21, 1:58 pm, Anthony abasta...@gmail.com wrote: You can use export_to_csv_file, but I don't think you can do it from admin:http://web2py.com/book/default/chapter/06#CSV-(all-tables-at-once) Anthony

Re: [web2py] Re: new URL router use cases

2011-03-21 Thread Tom Atkins
Just to clarify - each 'yoursitename' is part of the same app - it could be 'youusername' or 'yourorganisation' depending on the app. e.g. see github's url structure: https://github.com/isotoma/ https://github.com/isotoma/yaybu https://github.com/isotoma/yaybuisotoma is the 'username' or

Re: [web2py] Re: new URL router use cases

2011-03-21 Thread David Warnock
Tom, I am designing an app with a URL structure like this: myapp.com/yoursitename 'yoursitename' is effectively an argument as there could be many sites and users are allowed to create their own sites. But I'd like it to be 'top level'. An alternative might be to use subdomains eg

Re: [web2py] Re: new URL router use cases

2011-03-21 Thread Tom Atkins
Thanks for the reply - I've considered the subdomain option but don't want to use it in this case. This article: http://warpspire.com/posts/url-design/ http://warpspire.com/posts/url-design/was previously linked on the forum and summarises very well the reasons I'm keen to go for a URL

Re: [web2py] Re: Proposals for New Tagline

2011-03-21 Thread Richard Vézina
web2py : A small framework that allow you to think Big ;-) Richard On Mon, Mar 21, 2011 at 2:46 PM, pbreit pbreitenb...@gmail.com wrote: In the non-enterprise world, it's the exact opposite. Enterprise implies expensive, unpleasant, old, hard to acquire/install/use, bloated, Java/.net,

Re: [web2py] Re: new URL router use cases

2011-03-21 Thread Jonathan Lundell
On Mar 21, 2011, at 2:37 PM, Tom Atkins wrote: I am designing an app with a URL structure like this: myapp.com/yoursitename 'yoursitename' is effectively an argument as there could be many sites and users are allowed to create their own sites. But I'd like it to be 'top level'. Then

[web2py] Re: Proposals for New Tagline

2011-03-21 Thread AdamF
Hi, That may be true -- for you. Web2py should target the market sector that it wants and try to appeal to that sector. And thats the question that I am not able to answer: what is the real target for Web2py ? I believe it deserves separate discussion. And I think it's much more

Re: [web2py] Re: Proposals for New Tagline

2011-03-21 Thread AdamF
web2py : A small framework that allow you to think Big ;-) Richard Web2py: solid as rock, easy as pie ;) I am not a native speaker so sorry if it sounds stupid ;) Regards Adam

Re: [web2py] Re: new URL router use cases

2011-03-21 Thread Tom Atkins
Thanks Jonathan! What would be the mapping of, say, myapp.com/yoursitename/xyz? yoursitename would be the first arg I guess xyz would be the second arg - although it'd be handy if it could be a controller or function! Your suggestion solves my problem - I've just added: functions=['admin',

[web2py] Re: Converting legacy MySQL databases to web2py DAL

2011-03-21 Thread mart
Hey Kevin, This is sweet! thanks for that! Mart :) On Mar 21, 11:53 am, ron_m ron.mco...@gmail.com wrote: Looks great, thanks for the addition. I worked on this a bit when it first was added but since I don't use mysql any more in the application I am working on and have a high workload I

Re: [web2py] Re: new URL router use cases

2011-03-21 Thread pbreit
Yeah, I suspect it can be done with routing. This might be a common use case (ex: Github, Bitbucket, Twitter) so wondering if it's worth making sure it's well-supported?

[web2py] Re: Proposals for New Tagline

2011-03-21 Thread villas
And thats the question that I am not able to answer: what is the real target for Web2py? There's only one person who initally decided the direction and the essence of Massimo's vision is expressed in the preface to the book and it's nice to be familiar with that. I believe therefore web2py is

[web2py] Re: Proposals for New Tagline

2011-03-21 Thread pbreit
I would say it's not too different from Django and Rails. If you are contemplating building any type of database-driven web site/service, Web2py is definitely worth your consideration, especially if you are interested in ease-of-use.

[web2py] Re: Export DB from admin?

2011-03-21 Thread pbreit
I'd be curious to hear thoughts on that as well. I was contemplating what to do when switching from SQLite to Postgres, but I'd also like to undertand better what to do in production.

[web2py] Re: the facebook clone video

2011-03-21 Thread pbreit
You have to follow the video pretty closely but you'll see that Massimo sets those up as short-cuts. I think they were in the model.

[web2py] reddit again

2011-03-21 Thread Massimo Di Pierro
This morning I posted the facebook clone video on reddit. It was popular. It was second for a while in /r/programming. We had 2000+ views and many positive comments. That is when some anonymous redditors started attacking us:

[web2py] Re: reddit again

2011-03-21 Thread Massimo Di Pierro
By the way ... you may notice that most of the comments are pro- web2py. The negative comments can always be traced to the same small group of users. On Mar 21, 7:13 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: This morning I posted the facebook clone video on reddit. It was popular.

Re: [web2py] Re: web2py applications and version control systems

2011-03-21 Thread mattynoce
i'm a n00b when it comes to version control, so i'm wondering if i can ask some specific questions. i've RTFM but i'm sure there are things i'm missing, so feel free to let me know if my questions are too n00bish. i'm using GAE and i'm on a mac, using the web2py source code (not the compiled

[web2py] referencing request, session from module folder

2011-03-21 Thread kawate
hello ; i put my module in application/modules folder. i assumed that session, request is global, but referencing session and request cause undefined name error. currently i pass these as parameters, so far it works as i expected. But teach me how to make global environment available to my

[web2py] Re: referencing request, session from module folder

2011-03-21 Thread yutaka kawate
thank you but i am very sorry, i did typing miss. actually, i did so. it looks that system try to pickle response variable. i am trying environment['response'] = None 2011/3/22 Floyd canna...@gmail.com try use self in login(...) method: def login(self,) request =

[web2py] Re: XML manipulation

2011-03-21 Thread villas
Hi Richard, In my case I was making the XML fit a specification given to me by someone else. It isn't very flexible to change it, but I doubt that the specification will be changing much either. It is a pity there isn't a Zen of XML saying there should ideally be just one obvious way of doing

Re: [web2py] Re: REST the web2py way - RFC

2011-03-21 Thread Tom Atkins
this may be of interest: http://stackoverflow.com/questions/5050481/restful-backend-framework-for-backbone-js-and-co

[web2py] Re: Export DB from admin?

2011-03-21 Thread villas
Each DB has its own methods. The integrity and consistency of relational data is of crucial importance. I would only trust the approved and recommended backup tool for the DB. I normally write separate commandline scripts to do the backups which run from cron during the night. The script also

[web2py] Re: Export DB from admin?

2011-03-21 Thread vtp2...@gmail.com
I don't know if it was because I used the old SQLite version (Debian 5), but SQLite constantly had a database lock problem. (You can Google this). And when there's a database lock problem, you'll have to restart the server essentially. Other than that, SQLite is very fast; a lot faster than

[web2py] Re: moving from Drupal to Web2py

2011-03-21 Thread villas
Hi pbreit Take a look at Massimo's csvstudio!! http://code.google.com/p/csvstudio/ On Mar 21, 6:42 pm, pbreit pbreitenb...@gmail.com wrote: How big are the tables? Is Excel a reasonable low-tech option for massaging CSV files?

[web2py] Re: referencing request, session from module folder

2011-03-21 Thread Floyd
try use self in login(...) method: def login(self,) request = self.environment['request'] session = self.environment['session'] Bye, Floyd

[web2py] Re: Converting legacy MySQL databases to web2py DAL

2011-03-21 Thread fib
apologies I am a newbie I believe that this may be what I was searching for as I have an existing mySQL db and am struggling getting my head into the web2py Can I add the mysqldb module in web2py and run this code there and if so - how sorry if this seems too simple

Re: [web2py] Re: XML manipulation

2011-03-21 Thread Richard Vézina
That's a brillant idea... I check about it tomorrow. Thanks Richard On Mon, Mar 21, 2011 at 5:05 PM, mart msenecal...@gmail.com wrote: Hi Richard, Yeah, I hate transforms too :( I haven't really worked with wordml, but... it all looks the same to me... I would definitely take the

[web2py] Re: Converting legacy MySQL databases to web2py DAL

2011-03-21 Thread fib
apologies I am a newbie I believe that this may be what I was searching for as I have an existing mySQL db and am struggling getting my head into the web2py Can I add the mysqldb module in web2py and run this code there and if so - how sorry if this seems too simple

Re: [web2py] Re: XML manipulation

2011-03-21 Thread Richard Vézina
Yes to much idea to make them all! R On Mon, Mar 21, 2011 at 9:09 PM, villas villa...@gmail.com wrote: Hi Richard, In my case I was making the XML fit a specification given to me by someone else. It isn't very flexible to change it, but I doubt that the specification will be changing much

[web2py] Re: Converting legacy MySQL databases to web2py DAL

2011-03-21 Thread Kevin Ivarsen
In web2py, you could import MySQLdb and make SQL queries directly, but you would lose out on a lot of the time-saving features that web2py offers, such as automatic form generation for database tables. Instead, you would typically use web2py's DAL (Database Abstraction Layer), which provides a

[web2py] Flourish Conf 2011 (Chicago Area)

2011-03-21 Thread G. Clifford Williams
Anyone planning on attending Flourish Conf '11? Unfortunately it doesn't look like they have any Python speakers this year but apparently there will be tables for both Web2Py and ChiPy Massimo, who's manning the table? http://www.flourishconf.com/2011/miniexpo

[web2py] processes, threads and performance tuning

2011-03-21 Thread VP
I was trying to tweak various settings in terms of processes and threads. This is what I observed. With web2py's default setting (I believed 1 process 15 threads), I got about 30 requests/second for my app. With 3 processes and 2 threads, I got about 90 requests/second. This is 3 times more!!!

[web2py] Re: referencing request, session from module folder

2011-03-21 Thread yutaka kawate
There is no problem if run from dev_appserver.py. Some wrong in session file system. so the safe way is passing session,request as prameters. thank you woo, big earth quake again. the code is in db.py mymodules = local_import('mymodules.who') who = mymodules.Who(globals()) in modules.Who class

Re: [web2py] processes, threads and performance tuning

2011-03-21 Thread Jonathan Lundell
On Mar 21, 2011, at 8:35 PM, VP wrote: I was trying to tweak various settings in terms of processes and threads. This is what I observed. With web2py's default setting (I believed 1 process 15 threads), I got about 30 requests/second for my app. With 3 processes and 2 threads, I got

Re: [web2py] Re: referencing request, session from module folder

2011-03-21 Thread Jonathan Lundell
On Mar 21, 2011, at 8:41 PM, yutaka kawate wrote: There is no problem if run from dev_appserver.py. Some wrong in session file system. so the safe way is passing session,request as prameters. thank you Yes. A module has its own namespace, so it doesn't have access to the caller's globals.

Re: [web2py] Re: web2py applications and version control systems

2011-03-21 Thread pbreit
First, you clone web2py from Google Code: hg clone https://web2py.googlecode.com/hg/ web2py Then, to update web2py, you go in to the web2py directory and issue these two commands: $ hg pull $ hg update This will not touch applications/yourapp. Then, my init app is a second mercurial repository

[web2py] Re: Flourish Conf 2011 (Chicago Area)

2011-03-21 Thread Massimo Di Pierro
I was planning to be there. Can you help? Massimo On Mar 21, 9:39 pm, G. Clifford Williams g...@notadiscussion.com wrote: Anyone planning on attending Flourish Conf '11? Unfortunately it doesn't look like they have any Python speakers this year but apparently there will be tables for both

Re: [web2py] Re: new URL router use cases

2011-03-21 Thread Indra Gunawan
Agree, Flask way looks more elegant (see Variable Rules). It could be nice if this way also exists on Web2Py. On 22 March 2011 06:05, Tom Atkins minkto...@gmail.com wrote: I was playing with Flask and I have to say its solution to routing is very nice:

[web2py] Re: the facebook clone video

2011-03-21 Thread Massimo Di Pierro
yes, here: User, Link, Post = db.auth_user, db.link, db.post me, a0, a1 = auth.user_id, request.args(0), request.args(1) myfriends = db(Link.source==me)(Link.accepted==True) alphabetical = User.first_name|User.last_name def name_of(user): return '%(first_name)s %(last_name)s' % user it is the

Re: [web2py] Re: web2py applications and version control systems

2011-03-21 Thread pbreit
I should have mentioned that while hg pull will pull down all of the most up-to-date files from the main repository, it will leave all the files in your locally directory unchanged. Nothing actually happens until you perform the hg update. hg update by itself will then change all of the files

Re: [web2py] Re: new URL router use cases

2011-03-21 Thread Jonathan Lundell
On Mar 21, 2011, at 7:44 PM, Indra Gunawan wrote: Agree, Flask way looks more elegant (see Variable Rules). It could be nice if this way also exists on Web2Py. On 22 March 2011 06:05, Tom Atkins minkto...@gmail.com wrote: I was playing with Flask and I have to say its solution to routing

[web2py] Re: reddit again

2011-03-21 Thread pbreit
Massimo, sorry to say but I think your posting style invites the unwanted attention (av201001, too). I'm a Web2py supporter but I think they are right, we don't play well in the discussions. Posting a video under the title Facebook clone in 11 minutes is unnecessarily provocative. Joking about

[web2py] Re: Export DB from admin?

2011-03-21 Thread ron_m
I moved from MySQL to PostgreSQL a few months ago with a small database but with a significant number of many to many relations as well as one to many. Here is what I did: Exported the data from MySQL using the export_to_csv_file call from the shell with the model activated which pushes all

  1   2   >