[web2py] Re: redirect('http://www.web2py.com')

2012-05-01 Thread Hassan Alnatour
No am not using ajax , i used a javascript redirect now , but why the python redirect is not working and when i use it , it keeps my domain and adds the url that i want to redirect to it

[web2py] Copying Date From Sqlite to a Mysql database

2012-05-01 Thread Hassan Alnatour
Dear ALL, How Can i copy all the records and tables in my sqlite database to a mysql database ? regards,

[web2py] Re: Copying Date From Sqlite to a Mysql database

2012-05-01 Thread kokoyo
hi, try this: http://www.maxkpage.com/blog/free-sqlite-to-mysql-converter-super-easy/ On Tuesday, May 1, 2012 4:11:19 PM UTC+9, Hassan Alnatour wrote: > > Dear ALL, > > How Can i copy all the records and tables in my sqlite database to a > mysql database ? > > regards, >

[web2py] Best practices question

2012-05-01 Thread Rod Watkins
Hello everyone, I have a question regarding best practices with respect to SQLform and custom widgets. My forms require custom layouts to achieve look I am after. So far, to accomplish this, I have used SQLform to handle the form processing (brilliant, by the way) and then have done my form l

Re: [web2py] Re: [w2py-dev] Re: Movuca - Social CMS beta 0.1

2012-05-01 Thread kokoyo
Hi Bruno, thank so much for your movuca i tried this version: rochacbruno-Movuca-ed8c8dc but got error: run : http://localhost:8000/ movuca /setup/install ---> it shows: bootstrap run : http://localhost:8000/ movuca /home/index

[web2py] Re: redirect('http://www.web2py.com')

2012-05-01 Thread pbreit
That's very strange because redirect() is pretty straightforward. How are you POSTing to /members ? What does that FORM POST look like? From an internal page or from elsewhere? What is the exact URL that it takes you to? Does it always go to the same URL or does it sometimes go to a different U

Re: [web2py] Re: [w2py-dev] Re: Movuca - Social CMS beta 0.1

2012-05-01 Thread Bruno Rocha
Looks like you have an error because of your web2py version. Movuca requires web2py-trunk, it needs the new user_groups key in auth, On Tue, May 1, 2012 at 2:45 AM, kokoyo wrote: > Hi Bruno, thank so much for your movuca > i tried this version: rochacbruno-Movuca-ed8c8dc but got error: > run :

[web2py] Re: Strange import problem

2012-05-01 Thread Rakesh Singh
I had a similar issue with another application some time back. Eventually I found this article and moved my imports around which resolved my issue : http://codingrecipes.com/python-importerror-cannot-import-name-x Hope that helps you. On Tuesday, 1 May 2012 06:06:51 UTC+2, Bruce Wade wrote:

Re: [web2py] Re: [w2py-dev] Re: Movuca - Social CMS beta 0.1

2012-05-01 Thread kokoyo
Exactly, It works like a charm after updated web2py version as you said. Amazing speed thank a lot Bruno regards. On Tuesday, May 1, 2012 4:54:28 PM UTC+9, rochacbruno wrote: > > Looks like you have an error because of your web2py version. > > Movuca requires web2py-trunk, it needs the new user

[web2py] How to compute Field on update based on previous value.

2012-05-01 Thread François Delpierre
Hi, Here is exactly what I would like to have, but it does not compute on update : db.define_table('t_templates', Field('f_template', type='upload', label=T('File'),notnull=True), Field('f_revision', ty

[web2py] Re: How to compute Field on update based on previous value.

2012-05-01 Thread François Delpierre
I have no error message, but I suspect the row to not be populated with the ['f_revision'] field. Le mardi 1 mai 2012 13:31:43 UTC+2, François Delpierre a écrit : > > Hi, > > Here is exactly what I would like to have, but it does not compute on > update : > > db.define_table('t_templates', >

[web2py] MSSQL bit does not evaluate to True for boolean datatype

2012-05-01 Thread David Rager
All - Am starting a large-scale project to monitor solar plants using web2py and python as the main app layer. I am also using mssql so I can take advantage of the column storage indexing as we are logging a large amount of data. The issue I am facing is that MSSQL boolean datatypes (which tra

[web2py] Re: unable to deploy web2py application on GAE

2012-05-01 Thread ShriramK
Hello Monika, Could you tell if it ran successfully after registration as suggested by Eric ? Shriram On Thursday, April 12, 2012 5:00:47 PM UTC+5:30, Monika Vashistha wrote: > > > I have successfully managed to run my web2py application on dev_appserver. > However when I tried to deploy it on

Re: [web2py] How to compute Field on update based on previous value.

2012-05-01 Thread Khalil KHAMLICHI
this might not be the perfect solution but it might let you move on models : db.define_table('t_templates', Field('f_template', type='upload', label=T('File'),notnull=True), Field('f_revision', type='integer', label=T('Revision'), default=1, * writable=False, #hide

Re: [web2py] Re: Reloading modules

2012-05-01 Thread Yarin
@Massimo- you're saying a production application should not reload modules, but then what is the correct process for updating an app in production - i.e. installing an app by overwriting an old one - if it has modules that have changed? You're saying that an installing an app that overwrites an

Re: [web2py] Re: Reloading modules

2012-05-01 Thread Yarin
@Massimo- you're saying a production application should not reload modules, but then what is the correct process for updating an app in production - i.e. installing an app by overwriting an old one - if it has modules that have changed? On Sunday, April 29, 2012 12:02:52 PM UTC-4, Massimo Di Pi

Re: [web2py] SQLFORM.grid edit form

2012-05-01 Thread Jim Steil
I see a couple ways to handle it. 1. Using a custom view, wrap the button html with an if statement testing to see if request.args(1) == 'edit'. If so, then you are in the edit form for the grid. 2. Specify a custom view based on request.args(1) == 'edit' and then code the entire thing using

Re: [web2py] MSSQL bit does not evaluate to True for boolean datatype

2012-05-01 Thread Johann Spies
On 1 May 2012 10:33, David Rager wrote: > All - > Am starting a large-scale project to monitor solar plants using web2py and > python as the main app layer. > > I am also using mssql so I can take advantage of the column storage > indexing as we are logging a large amount of data. > > The issue I

[web2py] Re: Best practices question

2012-05-01 Thread Massimo Di Pierro
Hello Rod, I do not see a big advantage of one approach over another, with one exception. If you plan to package integration with jquery anytime for others to use it may be easier to do it as a widget defined in a web2py plugin. On Monday, 30 April 2012 21:32:27 UTC-5, Rod Watkins wrote: > >

[web2py] Re: Strange import problem

2012-05-01 Thread Massimo Di Pierro
One known problem with the custom import is that if there is a bug in the imported module, you always get an Importerror instead of the proper more-descriptive error. In you case I do not see what the error may be but any typo could be causing this. On Monday, 30 April 2012 23:06:51 UTC-5, Bruc

[web2py] Re: Welcome App not working on stable build. gluon.contrib (Module doesn't have attribute: contrib)

2012-05-01 Thread Massimo Di Pierro
How did you install web2py? Did you download and unzip the distribution or did you do something else? On Tuesday, 1 May 2012 05:57:52 UTC-5, Rhys wrote: > > Hi All, > > I've just installed the latest stable build of the framework and the > Welcome app is giving me an internal error. The examples

Re: [web2py] Re: Strange import problem

2012-05-01 Thread Bruce Wade
I will look closer at the code another programmer on my team wrote it. However when moving the methods from the imported module to the controller and using them doesn't get an error. On Tue, May 1, 2012 at 6:31 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > One known problem with th

Re: [web2py] Re: Reloading modules

2012-05-01 Thread Massimo Di Pierro
Models and controllers are executed at every request therefore it is safe to change them while the app is running. Web2py handles them the way it does to allow you how replacement. Python modules - in general - should not be replaced without turning the app off and on again. It really depends o

Re: [web2py] How to compute Field on update based on previous value.

2012-05-01 Thread Khalil KHAMLICHI
there is a typo : form = SQLFORM( t_templates, record) should be form = SQLFORM( db.t_templates, record) On Tue, May 1, 2012 at 12:13 PM, Khalil KHAMLICHI < khamlichi.kha...@gmail.com> wrote: > this might not be the perfect solution but it might let you move on > > models : > db.define_table('

[web2py] Re: How to compute Field on update based on previous value.

2012-05-01 Thread Anthony
I think the row object submitted to the compute function only includes the fields that are part of the update, so it won't include row['f_revision']. Instead, you could get the record id from request.vars and use that to query the current value of the f_revision field: db.define_table('t_templa

[web2py] Re: Amazon EC2 discussion: pros/cons, etc.

2012-05-01 Thread Richard Galka
Community AMI's are present for FreeBSD. Apparently at least a few are identified as windows systems, while others are identifed as (Linux Other). A quick search gives: http://www.daemonology.net/freebsd-on-ec2/ which identifies several different AMI's. (Also searching for FreeBSD on community

[web2py] Re: redirect('http://www.web2py.com')

2012-05-01 Thread Anthony
Can you post the full code that reproduces the problem? On Tuesday, May 1, 2012 3:08:18 AM UTC-4, Hassan Alnatour wrote: > > No am not using ajax , i used a javascript redirect now , but why the > python redirect is not working and when i use it , it keeps my domain and > adds the url that i w

[web2py] Re: Copying Date From Sqlite to a Mysql database

2012-05-01 Thread Anthony
If you want to use web2py, you can also do this: http://web2py.com/books/default/chapter/29/6#CSV-(all-tables-at-once) Anthony On Tuesday, May 1, 2012 3:17:20 AM UTC-4, kokoyo wrote: > > hi, try this: > http://www.maxkpage.com/blog/free-sqlite-to-mysql-converter-super-easy/ > > On Tuesday, Ma

[web2py] Re: How would I do something like this?

2012-05-01 Thread Anthony
Yes, use the lambda form -- that way it will only do the has_membership queries when the index function is called rather than on every request to the controller. Anthony On Tuesday, May 1, 2012 12:50:47 AM UTC-4, Annet wrote: > > Hi Bruce, > > I had the same problem, this is the best solution,

Re: [web2py] Re: Copying Date From Sqlite to a Mysql database

2012-05-01 Thread hasan alnator
Can you tell me some more about it how do i use it ?? and i want to use web2py and would this take all the recordes and stuff in the database ?

Re: [web2py] Re: How would I do something like this?

2012-05-01 Thread Bruce Wade
Ok thanks will try using it today. On Tue, May 1, 2012 at 7:01 AM, Anthony wrote: > Yes, use the lambda form -- that way it will only do the has_membership > queries when the index function is called rather than on every request to > the controller. > > Anthony > > > On Tuesday, May 1, 2012 12:5

Re: [web2py] Re: Reloading modules

2012-05-01 Thread Yarin
@Massimo- Thank you, I understand the practice but still not the prescription. By turning the app on/off you mean disable/enable? Don't all apps live in the same site-wide Python process, and wouldn't that mean that the global objects would remain? On Tuesday, May 1, 2012 9:40:00 AM UTC-4, Mass

Re: [web2py] Re: Copying Date From Sqlite to a Mysql database

2012-05-01 Thread Anthony
On Tuesday, May 1, 2012 10:02:51 AM UTC-4, Hassan Alnatour wrote: > > Can you tell me some more about it how do i use it ?? and i want to use > web2py and would this take all the recordes and stuff in the database ? > It should copy everything. You have to define all the db tables in web2py, tho

Re: [web2py] How to compute Field on update based on previous value.

2012-05-01 Thread François Delpierre
Thanks Khalil, I did a try but it did not work, in fact the form.vars.t_revision does not exists. 1. Could it be because I'm using SQLFORM.grid ? 2. I was aware that we can paste a list to onvalidation, but never a dict ( onvalidation={'onsuccess':mycustom} ), is this in the docs ? I would have

[web2py] Icons in button on .grid and .smartgrid

2012-05-01 Thread Jim Steil
Hi In a prior version of web2py (probably within the last 6-8 months) there were icons included on the default buttons use on the grid. The edit button had a little pencil and the delete had a trash can, etc. I just started a new app this week, and now they aren't there. Seems to me like t

Re: [web2py] MSSQL bit does not evaluate to True for boolean datatype

2012-05-01 Thread David Rager
For MSSQL the bit is stored. With MySQL the evaluations work correctly - with MSSQL they do not so wondering if there is an infra issue. I have tried both mssql and mssql2 - I was under the impression that mssql2 would stor the char T and F however that is not the case. On Tuesday, May 1, 201

[web2py] RFC: web2py-based workflow engine

2012-05-01 Thread Ross Peoples
In reference to: https://groups.google.com/forum/#!searchin/web2py/workflow/web2py/osEmmtu9hlg/2MHi_ZCeMBMJ Has anyone done any work on this yet? I was thinking about making a web2py-based workflow engine. I mentioned previously that I built one of these for an application I wrote several yea

Re: [web2py] Re: How would I do something like this?

2012-05-01 Thread Bruce Wade
Works like a charm thanks. On Tue, May 1, 2012 at 7:08 AM, Bruce Wade wrote: > Ok thanks will try using it today. > > > On Tue, May 1, 2012 at 7:01 AM, Anthony wrote: > >> Yes, use the lambda form -- that way it will only do the has_membership >> queries when the index function is called rather

[web2py] Re: Amazon EC2 discussion: pros/cons, etc.

2012-05-01 Thread pbreit
The AMI list that Amazon maintains is pretty reliable: https://aws.amazon.com/amis?platform=Cent+OS&selection=platform If you are still evaluating cloud providers, Rackspace is a bit more straightforward, can be cheaper and formally supplies a CentOS 6.0 image.

[web2py] Re: Icons in button on .grid and .smartgrid

2012-05-01 Thread Massimo Di Pierro
I probably broke it as a I moved to bootstrap. On Tuesday, 1 May 2012 10:32:52 UTC-5, Jim S wrote: > > Hi > > In a prior version of web2py (probably within the last 6-8 months) there > were icons included on the default buttons use on the grid. The edit > button had a little pencil and the del

[web2py] Escaping objects, and a book error...

2012-05-01 Thread encompass
http://web2py.com/books/default/chapter/29/3?search=escape And search for markdown2 and you get a broken link. With that outtadaway. :) I am looking how to escape particular items in html and want to know what is actually being escaped. Is there a list on this page somewhere to show me this? Is

Re: [web2py] Re: Icons in button on .grid and .smartgrid

2012-05-01 Thread Jim Steil
Ok, I created the attached file (based on what used to be in base.css) and added the following line in my layout.html. response.files.append(URL('static','css/css3buttons.css')) It is again working. -Jim On 5/1/2012 11:36 AM, Massimo Di Pierro wrote: I probably broke it as a I moved to

Re: [web2py] Re: sqlite int field that behave as string ?

2012-05-01 Thread Sebastian E. Ovide
I don't know how sqllite works... but using sqlbrowser (found it in the standard ubuntu repo) I could see that the field was String so I could change it to Number... (and match what declared in web2py) if sqlbrowser can do that, I guess that also web2py could do that too It is not a big de

[web2py] update images computed field .. again

2012-05-01 Thread CtrlSoft
hi i have a resize function wich creates image thumbanils... def THUMB(image, nx=120, ny=120): from PIL import Image import os try: img = Image.open(request.folder + 'static/img_folder/' + image) img.thumbnail((nx,ny), Image.ANTIALIAS) root,ext = os.path.spli

[web2py] Re: Escaping objects, and a book error...

2012-05-01 Thread Anthony
> > I am looking how to escape particular items in html and want to know what > is actually being escaped. Is there a list on this page somewhere to show > me this? Is it somewhere else? > Escaping is done via the Python cgi.escape function (which converts "&", "<", and ">" -- see http://doc

[web2py] Re: Time to move from Google Groups to a web2py or python??

2012-05-01 Thread Julio F. Schwarzbeck
http://www.qa-stack.com/ 100% web2py, 100% open source. Also here's the documentation: https://docs.google.com/document/d/18WpX6BYgv1MD3IeClLsvNNR1AerMFOC2W0tQJ84EmGg/edit?authkey=CNDZjA0 It still needs some work (more ajax, mobile UI and switch registration/user control possibly to a plug in),

[web2py] Noob Question. How do I make an external link?

2012-05-01 Thread zounds
I have this in my db.py: db.define_table('carrier', Field('name',), Field('url',), format='%(name)s') db.define_table('shipment', Field('shipment_id', represent=lambda value,row: \ A(value, _href=(row.carrier.url + value, ))), Field('carrier', db.carrier)) The shi

[web2py] Re: Noob Question. How do I make an external link?

2012-05-01 Thread Alan Etkin
We need to know what code are you using to store the url at the "carrier" table. The URL function (in case you are using it) builds relative urls with the request data. However, you can customize it forcing an absolute url with the host kwarg. See the book for examples www.web2py.com/book or th

[web2py] Re: Noob Question. How do I make an external link?

2012-05-01 Thread Anthony
> > db.define_table('shipment', > Field('shipment_id', represent=lambda value,row: \ > A(value, _href=(row.carrier.url + value, ))), > Why is your href a tuple? How about: A(value, _href=row.carrier.url + value) That should produce http://www.bing.com/search?q=trumpet as long as ro

[web2py] Re: How to intervene in web2py's upload process(store/retrieve/stream...) to do something with uploaded file?

2012-05-01 Thread Wikus van de Merwe
I think you need to customize the functions for storing/retrieving the uploaded file. In you model add: Field("myfile", "upload", custom_store=store_myfile, custom_retrieve=retrieve_myfile) Then implement the functions: def store_myfile(uploaded_file, filename=None, path=None): buffer = uploa

[web2py] Re: Time to move from Google Groups to a web2py or python??

2012-05-01 Thread Gour
On Tue, 1 May 2012 10:42:03 -0700 (PDT) "Julio F. Schwarzbeck" wrote: > http://www.qa-stack.com/ 100% web2py, 100% open source. It says "Welcome to QA-Stack.com - QA-Stack is a Q&A open source web application..." so I wonder whether you suggest to move from mailing list which is e.g. available a

[web2py] Re: Copying Date From Sqlite to a Mysql database

2012-05-01 Thread nick name
On Tuesday, May 1, 2012 3:11:19 AM UTC-4, Hassan Alnatour wrote: > > How Can i copy all the records and tables in my sqlite database to a mysql > database ? > Web2py comes with a tool called "cpdb" (under scripts/) that does exactly that, and more. run with "--help" to get complete explanation.

[web2py] Re: Noob Question. How do I make an external link?

2012-05-01 Thread zounds
Didn't even realize that. I made a lot of changes to that line trying to get it to work. I started off with: A(value, _href=db.shipper(row.shipper).url + value)), Which I got from http://stackoverflow.com/questions/10389775/how-can-i-make-sqltable-results-link-to-outside-pages. But was be

[web2py] Re: Time to move from Google Groups to a web2py or python??

2012-05-01 Thread Julio F. Schwarzbeck
Not really suggesting anything in particular, just another tool and "proof" that we can eat our own dog food, simple as that. Also, perhaps we are talking about different things, QA Stack is as it name implies, a Questions and Answers application, not a forum system, it has Q&A specific "tools"

[web2py] quick SQL question

2012-05-01 Thread Larry Wapnitsky
In a test (non-web2py) program, I'm using a MySQL query that invokes SELECT SUBSTRING_INDEX. What is the easiest way to convert this to the proper usage within web2py's DAL specifications? Thanks, Larry

[web2py] Re: quick SQL question

2012-05-01 Thread Larry Wapnitsky
Let me clarify that the substring in particular I'm using is the first 3 octets of an IP address.. On Tuesday, May 1, 2012 3:19:27 PM UTC-4, Larry Wapnitsky wrote: > > In a test (non-web2py) program, I'm using a MySQL query that > invokes SELECT SUBSTRING_INDEX. What is the easiest way to conve

[web2py] Re: Time to move from Google Groups to a web2py or python??

2012-05-01 Thread Gour
On Tue, 1 May 2012 12:06:03 -0700 (PDT) "Julio F. Schwarzbeck" wrote: > Not really suggesting anything in particular, just another tool and > "proof" that we can eat our own dog food, simple as that. OK. I'm just concerned to be left without my preferred medium for posting. > Now ability to "p

Re: [web2py] Re: Icons in button on .grid and .smartgrid

2012-05-01 Thread Massimo Di Pierro
Does this work for trunk? How about including it in web2py.css? On Tuesday, 1 May 2012 11:50:19 UTC-5, Jim S wrote: > > Ok, I created the attached file (based on what used to be in base.css) > and added the following line in my layout.html. > > response.files.append(URL('static','css/css3butto

[web2py] Re: web2py resources

2012-05-01 Thread Massimo Di Pierro
Web2py cheatsheet http://dl.dropbox.com/u/18065445/Tmp/web2py_cheatsheet.pdf >

[web2py] Re: How to compute Field on update based on previous value.

2012-05-01 Thread François Delpierre
Hi Anthony, The proposal does not work as is. It looks like there is no request.vars._formname. P.S. : There is a small typo : request.vars._formname.startswith(... However, with strong inspiration of your solution I made some additonal tests and found a compute function that perfectly works :

[web2py] Re: How to compute Field on update based on previous value.

2012-05-01 Thread Anthony
> > The proposal does not work as is. It looks like there is > no request.vars._formname. > How are you entering data into the table? If you are using SQLFORM, there should always be a hidden _formname field in the form. > P.S. : There is a small typo : request.vars._formname.startswith(...

Re: [web2py] Re: Icons in button on .grid and .smartgrid

2012-05-01 Thread Jim Steil
Not a problem for me at all. I just thought I'd separate it in case I didn't have the most recent from trunk. I haven't tested against the latest trunk. My version is from last week, 2012-04-24 08:39:47. -Jim On 5/1/2012 2:29 PM, Massimo Di Pierro wrote: Does this work for trunk? How

[web2py] Re: Noob Question. How do I make an external link?

2012-05-01 Thread Anthony
> > I had entered the carrier.url as "www.bing.com/search?q=" instead of " > http://www.bing.com/search?q=";. > Yes, without the "http://";, the browser will still see it as a relative URL and add it to the current domain. Instead of storing http:// with the URL, you could also do: _href='http

[web2py] Re: RFC: web2py-based workflow engine

2012-05-01 Thread Cliff
Ross, I like the on-the-fly ability. Each step in your template changes the state of the item. Each one of those states should have a title. There are two other states to account for, new and done. Workflows sometimes have more than one path to completion. I see an entity called a workflow

[web2py] [Solved] How to compute Field on update based on previous value.

2012-05-01 Thread François Delpierre
So both solutions are working. One on the form in the controller, one as compute in the models when defining the table. Thanks, Le mardi 1 mai 2012 21:38:59 UTC+2, François Delpierre a écrit : > > Hi Anthony, > > The proposal does not work as is. It looks like there is > no request.vars._formna

[web2py] Re: CMS question

2012-05-01 Thread Massimo Di Pierro
This is what I have so far... http://dl.dropbox.com/u/18065445/Tmp/w2cms.pdf you can try some of it here but you cannot login. You can edit the content of the white box. http://tests.web2py.com/w2cms/default/index - can clone any existing web site (copies, html, css, js, images and fixes al

Re: [web2py] Re: CMS question

2012-05-01 Thread Ivica Kralj
This looks great Massimo. It sure is kick-ass CMS. Can't wait to try it on my server :) ... I also like the name :) Just wondering, how URL's file (page) structure, will be dealt with ( one Controller/View for all pages, or each page will have it's own View) and how customisable will it be? And,

[web2py] Trouble using URLs to specify the language

2012-05-01 Thread ender72
Hi, I'm reading "web2py application development cookbook", page 277 "To specify a language for outgoing URLs using URL(), set request.lang to one of the supported languages [...]". Mmm... maybe something's wrong, because if I put this code in a view: {{ request.lang='it' link_it = URL('about

[web2py] Re: Noob Question. How do I make an external link?

2012-05-01 Thread zounds
Another quick question if I may. What if I didn't want to store the URL in a database at all? Can you have conditionals inside the db.define_table? Or maybe have separate function that would return the URL string and call it from inside the _href. Something like: _href='http://' + get_url(s

Re: [web2py] Re: CMS question

2012-05-01 Thread Massimo Di Pierro
One controller action deals with all pages. The page structure is http://.../w2cms/default/read// where w2cms/default/read/ can be collapsed into just using routes.py. The slug is put there just for show but it not used internally. It always uses the for speed. The slug is computed from the t

[web2py] Re: Welcome App not working on stable build. gluon.contrib (Module doesn't have attribute: contrib)

2012-05-01 Thread Rhys
All I did was download the distribution zip. Unzipped it and then ran it. Nothing else. That is why It's gotten me stumped. On Tuesday, May 1, 2012 11:34:43 PM UTC+10, Massimo Di Pierro wrote: > > How did you install web2py? Did you download and unzip the distribution or > did you do something

[web2py] Re: Welcome App not working on stable build. gluon.contrib (Module doesn't have attribute: contrib)

2012-05-01 Thread Rhys
I just made a clone of the trunk from git hub and it is giving me the same error. However, this time I can use the normal web2py.py server and everything is fine. Here is my setup for apache. #Use the virtual environment setup for python WSGIPythonHome /Users/rhystague/repos/env Server

Re: [web2py] Re: CMS question

2012-05-01 Thread Michele Comitini
Massimo, Great! I want it! :-) Does the single action mean that it is easily added to any existing application? Will it be a plugin? mic 2012/5/1 Massimo Di Pierro : > One controller action deals with all pages. The page structure is > > http://.../w2cms/default/read// > > where w2cms/default

[web2py] Re: Welcome App not working on stable build. gluon.contrib (Module doesn't have attribute: contrib)

2012-05-01 Thread Rhys
Solved it! There was a problem in my config for apache. Arrgh!! When I copied and pasted it form a text editor it placed / to signify a new line in one of the paths. Alias path to be exact, and therefor not everything was being located. Thanks Massimo for your comments. Cheers, Rhys On Wedn

[web2py] Lost printing auth_user - Server Error

2012-05-01 Thread Bruce Wade
Hi, The screen only shows Server Error the console output shows: , 'last_name': 'Wade', 'update_record': at 0x393e410>, 'uad_id': '12', 'reset_password_key': '', 'postal_code': 'V3B7W7', 'registration_key': '', 'id': 1, 'referral_id': '3244', 'city': 1, 'first_name': 'Stealth', 'reset_security_k

[web2py] Re: Amazon EC2 discussion: pros/cons, etc.

2012-05-01 Thread Derek
EC2 is good, but why would you use that when you can use GAE? What's the advantage? On Monday, April 30, 2012 2:59:21 AM UTC-7, lucas wrote: > > hello one and all, > > i am curious about using a cloud, like Amazon EC2. i don't know anything > about it. but i am curious and interested. i have

[web2py] Re: Lost printing auth_user - Server Error

2012-05-01 Thread Bruce Wade
Found the problem: redirect('settings','index') Should be: redirect(URL('settings','index')) but the response it uses to handle it is a major bug. On Tue, May 1, 2012 at 5:15 PM, Bruce Wade wrote: > Hi, > > The screen only shows Server Error the console output shows: > > , 'last_name': > 'Wade'

[web2py] Re: Noob Question. How do I make an external link?

2012-05-01 Thread Anthony
> > Another quick question if I may. What if I didn't want to store the URL > in a database at all? Can you have conditionals inside the > db.define_table? Or maybe have separate function that would return the URL > string and call it from inside the _href. Something like: > > _href='http:/

[web2py] Re: Trouble using URLs to specify the language

2012-05-01 Thread Anthony
According to router.example.py, it should be request.language, not request.lang, though the only reference I see in rewrite.py is request.uri_language, so maybe try both of those and see if it works. Anthony On Tuesday, May 1, 2012 5:27:07 PM UTC-4, ender72 wrote: > > Hi, > I'm reading "web2py

[web2py] Re: Welcome App not working on stable build. gluon.contrib (Module doesn't have attribute: contrib)

2012-05-01 Thread Massimo Di Pierro
I cannot reproduce this. On Tuesday, 1 May 2012 16:56:34 UTC-5, Rhys wrote: > > All I did was download the distribution zip. Unzipped it and then ran it. > Nothing else. That is why It's gotten me stumped. > > > On Tuesday, May 1, 2012 11:34:43 PM UTC+10, Massimo Di Pierro wrote: >> >> How did yo

Re: [web2py] Re: Welcome App not working on stable build. gluon.contrib (Module doesn't have attribute: contrib)

2012-05-01 Thread Rhys Tague
It was something in the apache config file. I've posted some replies to the thread to the end of this. It was a result from a copy and paste. Cheers, On 2 May 2012 11:49, Massimo Di Pierro wrote: > I cannot reproduce this. > > > On Tuesday, 1 May 2012 16:56:34 UTC-5, Rhys wrote: >> >> All I did

Re: [web2py] Re: CMS question

2012-05-01 Thread villas
It looks fascinating and I am looking forward to trying to integrate this into a project. For any CMS I always think there are 3 types of editors. 1. MarkUp-only editors 2. Markup / HTML / CSS editors 3. Programmers who can also embed scripts, database content, etc. Solutions always seem to b

Re: [web2py] Re: Welcome App not working on stable build. gluon.contrib (Module doesn't have attribute: contrib)

2012-05-01 Thread Massimo Di Pierro
Thanks for letting us know. On Tuesday, 1 May 2012 21:57:23 UTC-5, Rhys wrote: > > It was something in the apache config file. I've posted some replies to > the thread to the end of this. It was a result from a copy and paste. > > Cheers, > > On 2 May 2012 11:49, Massimo Di Pierro wrote: > >>

Re: [web2py] Re: CMS question

2012-05-01 Thread Massimo Di Pierro
I am thinking of turning it into a plugin once done, should be easy to do. On Tuesday, 1 May 2012 18:16:50 UTC-5, mcm wrote: > > Massimo, > > Great! I want it! :-) > > Does the single action mean that it is easily added to any existing > application? Will it be a plugin? > > > mic > > 2012/

[web2py] Re: Amazon EC2 discussion: pros/cons, etc.

2012-05-01 Thread pbreit
I think it's much easier to justify using a normal stack vs. something very proprietary that may not support SQL, https, domains, some python libraries, etc and can get crazy expensive.

[web2py] Re: Amazon EC2 discussion: pros/cons, etc.

2012-05-01 Thread howesc
i use GAE heavilythe biggest reason to not use GAE is if you want an app that does complex queries - you just can't do complex queries and roll-ups on GAE. there are other freedoms that EC2 give you that if you have the IT support to run them it might be worth it. i am wrestling with that

[web2py] is it possible to communicate over webservices in web2py application?

2012-05-01 Thread Amit
Hi, I have to develop one web2py application which will run on one machine (lets say SERVER), this machine will have MySql database also installed and running. Users can connect remotely to the Web2py app over Https(Lets say it CLIENT) There is one more system running over the network(Lets say N/