[web2py] Re: {{=LOAD()}} and JavaScript function

2012-07-03 Thread Annet
> Can you post your exact code as it is now? Sorry, a work in progress, this is the exact code: The site/index.html view" {{extend 'site/generic.html'}} $(document).ready(function(){ $('a[href=#{{=tab}}]').tab('show'); $('#equalize').ajaxSuccess(function() { $(this).equalHe

[web2py] session.menu in function and class="active"

2012-07-03 Thread Annet
Part of my application is nodeID driven, therefore I need to be able to force the menu to be generated when ids don't match, I thought I'd solve the problem by having a function that generates the menu in session: def index(): if request.args(0)!=session.id or not len(request.args):

[web2py] conditional models requires check if table already exists for db admin to work

2012-07-03 Thread selecta
In my project I use conditional models since I have a lot of tables. However I have a problem since one of the database tables (defined in a conditional model) has to be defined in another conditional model here an example /models/plugin_restapidoc/plugin_restapidoc.py /models/wizard/wizard.py /m

[web2py] Re: Using admin interface on GAE, getting errors on update or insert

2012-07-03 Thread Sushant Taneja
Whenever any query in run on GAE which involves usage of two or more properties, App engine forces you to define the index for those properties of the entity type. You need to modify the index.yaml file to achieve this. Take a look at this: https://developers.google.com/appengine/docs/python/con

Re: [web2py] conditional models requires check if table already exists for db admin to work

2012-07-03 Thread vinicius...@gmail.com
Use this pattern below everywhere you define a table: if not 'mytable' in db.tables: db.define_table('mytable', ...) I always use it. -- Vinicius Assef On 07/03/2012 07:33 AM, selecta wrote: In my project I use conditional models since I have a lot of tables. However I have a problem si

[web2py] Re: how to update a digitally signed component via response.js?

2012-07-03 Thread Miguel Lopes
I just can't manage to make this work. I'm trying to follow the book by supplying a hmac_key. Here's the code: # controller inter_component.py HKEY='secret' # later to be stored in uuid generated and stored in session def index(): return dict(HKEY=HKEY) def myform(): form = SQLFORM.fa

[web2py] Obtaining search results from Blekko API

2012-07-03 Thread adohertyd
Hi all, I'm trying to get to grips with web2py. I want to get the user to fill in a search form, the term they search for is sent to my python script which should send the query to the blekko API and output the results to them in a new HTML page. I've implemented the following code but instead

[web2py] Re: smartgrid look & feel with last trunk

2012-07-03 Thread Cliff Kachinske
What about the Back button. It's really a link, too. On Monday, July 2, 2012 6:12:30 PM UTC-4, Anthony wrote: > > I agree -- I think it's good to make a visual distinction between the > references (links) and the actions (buttons). > > Anthony > > On Monday, July 2, 2012 5:40:17 PM UTC-4, Jim S

[web2py] Minimum memory requirements?

2012-07-03 Thread Alec Taylor
I've just bought an account with WebFaction which gives me: 256MB memory, 100GB hard-drive space and 600GB bandwidth. (Apache) I am hosting my web2py site (on latest trunk) and one blog on WordPress with this account. When I changed the routes.py and then clicked "reload routes" it made my mem

Re: [web2py] Re: 3-table many-to-many with IS_IN_DB

2012-07-03 Thread Cliff Kachinske
in auth_user I have the request_tenant field, as we have already discussed. It is set like this: if 'auth' in session: db.auth_user.request_tenant.default = session.auth.user.request_tenant else: db.auth_user.request_tenant.default = '' Each tenant has a different domain of the form tenant.

[web2py] updating linked fields

2012-07-03 Thread Andrew Evans
Hi I am trying to update the records in my database for a field that is linked. I have two entries in the table channel. When I edited channel_name field I expected everything would have changed (because it is linked). but it did not. How do I go about changing the data? *cheers db.define_table(

[web2py] Re: Digest authenatication with web2py and JSONRPC?

2012-07-03 Thread Massimo Di Pierro
Sorry. We do not have this. It should be trivial to add. I may try later today. Open a ticket anyway. On Saturday, 30 June 2012 06:45:06 UTC-5, Alec Taylor wrote: > > My current frontend works nicely, being built with web2py views > (templates). > > Now I need to create a new frontend in JavaScr

[web2py] Re: {{=LOAD()}} and JavaScript function

2012-07-03 Thread Anthony
I would expect the ajaxSuccess handler to fire after each of the three Ajax calls. Have you confirmed whether it is firing (e.g., maybe add an alert to it to see if a message pops up)? If so, the problem may be with the equalHeights function. On Tuesday, July 3, 2012 4:49:08 AM UTC-4, Annet wro

[web2py] Re: session.menu in function and class="active"

2012-07-03 Thread Massimo Di Pierro
I do not understand the problem. You want to replay with what? You can do simply if you do not care about class="active" On Tuesday, 3 July 2012 04:09:16 UTC-5, Annet wrote: > > Part of my application is nodeID driven, therefore I need to be able to > force the menu to be generated when ids

[web2py] Re: updating linked fields

2012-07-03 Thread Anthony
> > db.define_table('channel', > Field('channel_name')) > > db.define_table('schedule', > > Field('userinfo',db.auth_user,default=auth.user_id,readable=False,writable=False), > Field('show',db.show,requires=IS_IN_DB(db,db.show.id,'%(title)s')), > Field('channel',requires=IS_IN_DB(

[web2py] Re: how to update a digitally signed component via response.js?

2012-07-03 Thread Massimo Di Pierro
There is more than one problem. 1) you can supply your own secret key but there is no need to. If the user is logged-in, the secret key is randomly generated once per session. That is more secure than having a global one 2) user_signature is a boolean, not a key 3) the signature in the url is

[web2py] Re: Minimum memory requirements?

2012-07-03 Thread Massimo Di Pierro
Are you saying reloading routes, causes memory go up? What if you restart the web server? What is your configuration? what web2py and python version? On Tuesday, 3 July 2012 08:24:15 UTC-5, Alec Taylor wrote: > > I've just bought an account with WebFaction which gives me: 256MB memory, > 100GB h

Re: [web2py] Re: Minimum memory requirements?

2012-07-03 Thread Vasile Ermicioi
I don't recommend using web2py with apache on webfaction, use uwsgi instead of apache (without nginx) https://groups.google.com/forum/?fromgroups#!searchin/web2py/uwsgi$20webfaction/web2py/PWpwayGa4Io/bBVyehyZ3ogJ

Re: [web2py] Re: updating linked fields

2012-07-03 Thread Andrew Evans
Your right ty :-) How can I select channel_name then from my view (so I don't have to change a million entries) {{for broadcast in schedule:}} {{=broadcast.channel}}

Re: [web2py] Re: Minimum memory requirements?

2012-07-03 Thread Alec Taylor
On Wed, Jul 4, 2012 at 12:32 AM, Vasile Ermicioi wrote: > I don't recommend using web2py with apache on webfaction, use uwsgi instead > of apache (without nginx) > > https://groups.google.com/forum/?fromgroups#!searchin/web2py/uwsgi$20webfaction/web2py/PWpwayGa4Io/bBVyehyZ3ogJ Okay, will try that

Re: [web2py] Re: Minimum memory requirements?

2012-07-03 Thread Alec Taylor
On Wed, Jul 4, 2012 at 12:32 AM, Vasile Ermicioi wrote: > I don't recommend using web2py with apache on webfaction, use uwsgi instead > of apache (without nginx) > > https://groups.google.com/forum/?fromgroups#!searchin/web2py/uwsgi$20webfaction/web2py/PWpwayGa4Io/bBVyehyZ3ogJ Okay, will try that

Re: [web2py] Re: updating linked fields

2012-07-03 Thread Andrew Evans
Gah nvm :-P Its 7 30 am I was a bit under the weather :-P sorry :-( On Tue, Jul 3, 2012 at 7:35 AM, Andrew Evans wrote: > Your right ty :-) > > How can I select channel_name then from my view (so I don't have to change > a million entries) > > {{for broadcast in schedule:}} > > > > {{=b

[web2py] Re: conditional models requires check if table already exists for db admin to work

2012-07-03 Thread Anthony
Doesn't seem like a great idea to be repeating table definitions. Maybe you should put this one in a non-conditional model file, or define it in a module and do an import. Anthony On Tuesday, July 3, 2012 6:33:28 AM UTC-4, selecta wrote: > > In my project I use conditional models since I have a

Re: [web2py] Re: ANN: ide2py: editor, shell and debugger for web2py (experimental)

2012-07-03 Thread Mariano Reingart
You have to grab the latest repository version using mercurial: hg clone https://code.google.com/p/rad2py/ BTW, rad2py is still experimental. Sadly I didn't get a financial aid grant/scholarship to develop it faster, so it will have rough edges in the short term. The debugger is now embed in web

Re: [web2py] Re: Minimum memory requirements?

2012-07-03 Thread Alec Taylor
Alright, I wrote this up as a guide (to help others in same situation), so tell me if it's right or wrong: Go to https://my.webfaction.com/applications and add this as an application, keep note of port for below (replace "yourporthere" with it): $ curl http://projects.unbit.it/downloads/uwsgi-1.2

Re: [web2py] Re: Digest authenatication with web2py and JSONRPC?

2012-07-03 Thread Alec Taylor
> On Saturday, 30 June 2012 06:45:06 UTC-5, Alec Taylor wrote: >> >> My current frontend works nicely, being built with web2py views >> (templates). >> >> Now I need to create a new frontend in JavaScript (probably using >> AngularJS) that will be used for the mobile app with PhoneGap. >> >> Are th

[web2py] Re: Memory problems on Webfaction

2012-07-03 Thread Alec Taylor
Alright, I wrote this up as a guide (to help others in same situation): Go to https://my.webfaction.com/applications and add this as an application, keep note of port for below (replace "yourporthere" with it): ### $ curl http://projects.unbit.it/downloads/uwsgi-1.2.3.tar.gz > uwsgi-1.2.3.

[web2py] Re: A page served by two different backends

2012-07-03 Thread cyan
I see your point. Perhaps I should revise my definition of 'static' and 'dynamic': when I generate an HTML using a view of web2py, everything returned by the server will stay the same and will potentially change only after I refresh the page - this is what I mean by static. On the other hand,

[web2py] Re: How much python is needed to learn web2py

2012-07-03 Thread pbreit
Very little. The Book's Python overview should be sufficient to get going and create most apps: http://web2py.com/books/default/chapter/29/2

Re: [web2py] Re: Minimum memory requirements?

2012-07-03 Thread Vasile Ermicioi
1) go to https://my.webfaction.com/applications and create an application, uwsgi for e.g. App category: custom App type: custom app (listening on a port) and once done you will see the port near app name (it is a number) 2) connect via ssh and execute those commands, but put instead yourportthere

Re: [web2py] Re: how to update a digitally signed component via response.js?

2012-07-03 Thread Miguel Lopes
Tx you so much for the solution. This one was really holding me back. Miguel On Tue, Jul 3, 2012 at 3:27 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > There is more than one problem. > > 1) you can supply your own secret key but there is no need to. If the user > is logged-in, the

Re: [web2py] Re: How much python is needed to learn web2py

2012-07-03 Thread ANIKET KADAM
u mean in web2py a very python is used On Tue, Jul 3, 2012 at 8:56 PM, pbreit wrote: > Very little. The Book's Python overview should be sufficient to get going > and create most apps: > http://web2py.com/books/default/chapter/29/2 >

Re: [web2py] Re: How much python is needed to learn web2py

2012-07-03 Thread ANIKET KADAM
u mean in web2py a very little python is used ( above sentence is my typo error ) On Tue, Jul 3, 2012 at 9:53 PM, ANIKET KADAM wrote: > u mean in web2py a very python is used > > > On Tue, Jul 3, 2012 at 8:56 PM, pbreit wrote: > >> Very little. The Book's Python overview should be sufficient to

Re: [web2py] Re: How much python is needed to learn web2py

2012-07-03 Thread Bruce Wade
LOL all of web2py is python. I think he meant you don't need to have a master level at python to use web2py for most basic projects. On Tue, Jul 3, 2012 at 10:24 AM, ANIKET KADAM wrote: > u mean in web2py a very little python is used ( above sentence is my typo > error ) > > > On Tue, Jul 3, 2012

Re: [web2py] Re: How much python is needed to learn web2py

2012-07-03 Thread ANIKET KADAM
is it very difficult to customize front end in web2py? On Tue, Jul 3, 2012 at 9:54 PM, Bruce Wade wrote: > LOL all of web2py is python. I think he meant you don't need to have a > master level at python to use web2py for most basic projects. > > > On Tue, Jul 3, 2012 at 10:24 AM, ANIKET KADAM >

Re: [web2py] Re: How much python is needed to learn web2py

2012-07-03 Thread Bruce Wade
No if you know HTML/CSS/Javascript you can do whatever you want to the frontend very easily. On Tue, Jul 3, 2012 at 10:28 AM, ANIKET KADAM wrote: > is it very difficult to customize front end in web2py? > > > On Tue, Jul 3, 2012 at 9:54 PM, Bruce Wade wrote: > >> LOL all of web2py is python. I t

Re: [web2py] Re: How much python is needed to learn web2py

2012-07-03 Thread ANIKET KADAM
thank you bruce but how much time period is needed to master web2py On Tue, Jul 3, 2012 at 10:02 PM, Bruce Wade wrote: > No if you know HTML/CSS/Javascript you can do whatever you want to the > frontend very easily. > > On Tue, Jul 3, 2012 at 10:28 AM, ANIKET KADAM > wrote: > >> is it very diff

Re: [web2py] Re: How much python is needed to learn web2py

2012-07-03 Thread Bruce Wade
Well that depends, if you mean master it in knowing how to create models, views, and actions, how urls map, ajax etc... then it will take 1) As long as it takes you to read through the manual. 2) As long as it takes you to practice what you learned. Using web2py is probably the easier python frame

[web2py] Remove Special Characters and Whitespace in db field

2012-07-03 Thread Andrew Evans
Hello I have a field for a table Field('profile_name',length=64), I would like to make sure special characters and whitespace can't be added to it How would I go about doing this? and produce an error message if it occurs on form submission (div.error)) *cheers

Re: [web2py] Re: How much python is needed to learn web2py

2012-07-03 Thread ANIKET KADAM
hello again i m googling a web much about web2py i have used it to make simple app from http://killer-web-development.com/ just to get the taste of it, but can we create a website like ( Scribd / Slideshare / youtube etc i mean big / large) On Tue, Jul 3, 2012 at 10:15 PM, Bruce Wade wrote: > We

[web2py] Re: Remove Special Characters and Whitespace in db field

2012-07-03 Thread Andrew Evans
Ok nvm I just read that web2py will not allow this by default *cheers :-) On Tue, Jul 3, 2012 at 10:47 AM, Andrew Evans wrote: > Hello I have a field for a table > > Field('profile_name',length=64), > > I would like to make sure special characters and whitespace can't be added > to it > > How w

[web2py] Invitation to use Google Talk

2012-07-03 Thread Google Talk
--- You've been invited by ANIKET KADAM to use Google Talk. If you already have a Google account, login to Gmail and accept this chat invitation: http://mail.google.com/mail/b-e70ae31b19-cbaf6feea5-_ylKr7vvPbuu7Z45YsUJYBlJgCY To

Re: [web2py] Re: How much python is needed to learn web2py

2012-07-03 Thread Bruce Wade
My site is probably the largest site using web2py at this time. https://secure.youadworld.com/ ignore the security warning we are getting the new certificates up today. This site has: Binary tree with over 50,000 nodes Ad viewer Custom shopping system MLM Bonus structures Customer support engine

Re: [web2py] Re: How much python is needed to learn web2py

2012-07-03 Thread ANIKET KADAM
that means it can handle large traffic now scalling is problem in each and every framework On Tue, Jul 3, 2012 at 10:37 PM, Bruce Wade wrote: > My site is probably the largest site using web2py at this time. > https://secure.youadworld.com/ ignore the security warning we are > getting the new c

[web2py] Re: session.menu in function and class="active"

2012-07-03 Thread Annet
> I do not understand the problem. The problem is that normally I have my menu definitions in menu.py which is executed before any function in any controller. However, this menu is part of a site controller which is completely nodeID driven, which means that every function first checks if t

[web2py] Re: {{=LOAD()}} and JavaScript function

2012-07-03 Thread Annet
Hi Anthony, I would expect the ajaxSuccess handler to fire after each of the three Ajax > calls. Have you confirmed whether it is firing (e.g., maybe add an alert to > it to see if a message pops up)? I'll do that first thing tomorrow morning. I unable to do that now. > If so, the problem

Re: [web2py] Re: Routes - simple requirement, but how??

2012-07-03 Thread Wikus van de Merwe
You right, the prefix is what makes possible to use the same plugin code across many apps. Setting the "alias" for the plugin manager sounds like a good solution to me. from gluon.tools import PluginManager plugins = PluginManager() plugins.wiki.path = "wiki"

[web2py] Organizing checkboxes to appear in a 3 column layout

2012-07-03 Thread Andrew Evans
Hello I have the following field Field('genre',requires=IS_IN_DB(db,db.genre.id, '%(title)s', multiple=True), widget=SQLFORM.widgets.checkboxes.widget), I am trying to figure out how to layout the checkboxes so there in a 3 column grid Any ideas *cheers

[web2py] Send HTML form submission to python script

2012-07-03 Thread adohertyd
I need to send some HTML form data to a python script for formatting but don't know how to do this. The user enters the data into a HTML form. The data is sent to a script where it is cleaned up and tokenized. The revised data is sent to another python function where it is to be used. How do I g

[web2py] Making fields optional

2012-07-03 Thread joe
I have a table called dogs, and a table called dog food. In the dogs table, the field food is a foreign key referencing the dog food table. Is there any way to make the field in dogs optional? (I have already tried setting default = none, and required = false, both failed). Thanks for your

Re: [web2py] Re: How much python is needed to learn web2py

2012-07-03 Thread Derek
See, the thing with web2py is because it is such a good design, it is very easy to reason about it, because it is logical and consistent. So, I think it takes a short time to become an expert on it. However, as with anything, "mastering" takes work. On Tuesday, July 3, 2012 10:36:43 AM UTC-7, A

Re: [web2py] Re: How much python is needed to learn web2py

2012-07-03 Thread ANIKET KADAM
ok On Tue, Jul 3, 2012 at 11:51 PM, Derek wrote: > See, the thing with web2py is because it is such a good design, it is very > easy to reason about it, because it is logical and consistent. So, I think > it takes a short time to become an expert on it. However, as with anything, > "mastering" t

[web2py] Weird results with session variables

2012-07-03 Thread BlueShadow
Hi I like to show the five latest article on my index page. And I like to have them either sorted by views or by date. So the user is allowed to switch. I tried this by implementing two session variables sw and sort. sort should contain the how its currently sorted. sw contains the two options

[web2py] Re: Weird results with session variables

2012-07-03 Thread pbreit
The code is pretty messy. Is this correct: session.sw=["Views","Date"] Or should it be: session.sortiert=["Views","Date"] Also, you might have an indenting problem. Lines 9-16 look like they are indented by one space under line 7.

Re: [web2py] Re: Minimum memory requirements?

2012-07-03 Thread Luther Goh Lu Feng
At some point, will it be beneficial to have fabric scripts to setup web2py on webhosts? http://fabfile.org On Wednesday, July 4, 2012 12:27:15 AM UTC+8, Vasile Ermicioi wrote: > > 1) > go to https://my.webfaction.com/applications and create an application, > uwsgi for e.g. > App category: cus

[web2py] Re: Making fields optional

2012-07-03 Thread Jim S
I would: dogs.dogfood.requires.requires = IS_NULL_OR(IS_IN_DB(db, db.dogfood.id)) ...or something like that. The above is untested... On Tuesday, July 3, 2012 2:17:53 PM UTC-5, joe wrote: > > I have a table called dogs, and a table called dog food. In the dogs > table, the field food is a for

Re: [web2py] Re: How much python is needed to learn web2py

2012-07-03 Thread peter
Bruce I do not quite get it. You quote all these impressive usage figures for your site, yet it seems it is not yet in production but in development. By just doing very ordinary things on the site and in a very brief period of time I managed to get dead links and several tickets. Are you trying

Re: [web2py] Re: How much python is needed to learn web2py

2012-07-03 Thread Bruce Wade
What do you mean the site isn't in production? Or course the site is in production. And also in continuous development/deployment. Unless you call 43,340 members and $46 million through the site still in development lol Right now my server guy has been updating the SSL on 6 back end servers that c

Re: [web2py] Re: How much python is needed to learn web2py

2012-07-03 Thread Bruce Wade
Just watch the first page the how many ads views pulls the last record ID inserted refresh that page a few times to see how active it is. On Tue, Jul 3, 2012 at 2:54 PM, Bruce Wade wrote: > What do you mean the site isn't in production? Or course the site is in > production. And also in continuo

Re: [web2py] Re: How much python is needed to learn web2py

2012-07-03 Thread Bruce Wade
Also look at: http://www.alexa.com/siteinfo/youadworld.com Global Rank: 135,488 US Rank: 41,687 Reach % Change 1 month 0.00116% +40% [image: Change in Reach % over the trailing 1 month period] 3 month 0.00092% +1080%[image: Change in Reach % over the trailing 1 month period] So sorry if I find

Re: [web2py] Re: How much python is needed to learn web2py

2012-07-03 Thread Keith Edmunds
On Tue, 3 Jul 2012 15:11:10 -0700, bruce.w...@gmail.com said: > So sorry if I find it a little humorous when you think it is still in > development mode FWIW, I thought the same when I saw, "We welcome all the new commers to join this incredible site, Please full-fill the following form." Maybe

Re: [web2py] Re: How much python is needed to learn web2py

2012-07-03 Thread Bruce Wade
Yeah that is true, however the company is 100% focused on the Chinese market right now. ;) So the Chinese version of the site is much better then the English and I honestly don't have time to also update all the English with only myself and one other backend coder and a single frontend/graphics guy

[web2py] Re: Weird results with session variables

2012-07-03 Thread pbreit
I would suggest something like this (not tested and I don't know if I got the logic correct): def index(): session.sort = request.vars.sort or 'Views' if session.sort=='Date': rows=db().select(db.Article.ALL, orderby=~db.Article.Submitted, limitby=(0,5)) else:

Re: [web2py] Re: How much python is needed to learn web2py

2012-07-03 Thread Keith Edmunds
On Tue, 3 Jul 2012 15:17:59 -0700, bruce.w...@gmail.com said: > The good news is development is becoming a lot faster as we learned from > a lot of mistakes. That's nice. I realise you won't have the time right now, but an article summarising what you've learned would be good one day. -- We're l

Re: [web2py] Re: How much python is needed to learn web2py

2012-07-03 Thread Bruce Wade
Yes I have already been planing that I also have connections in packt who asked if I want to write a book on this topic sometime. On Tue, Jul 3, 2012 at 3:24 PM, Keith Edmunds wrote: > On Tue, 3 Jul 2012 15:17:59 -0700, bruce.w...@gmail.com said: > > > The good news is development is becoming a

[web2py] Re: Send HTML form submission to python script

2012-07-03 Thread Massimo Di Pierro
> > > index.html: > > > MY SEARCH ENGINE > > > >"100px"> > > > >   > > > > results.html > > {{extend 'layout.html'}} > This is the default/results.html template > {{=BEAUTIFY(response._vars)}} > > > {{=results}} > > default.py: > > import urllib > > > d

[web2py] Re: Web2Py on OpenShift

2012-07-03 Thread greaneym
Thanks for putting this out, it worked fine and was very helpful and now I have a web2py instance working on openshift. Margaret On Friday, June 8, 2012 10:07:39 AM UTC-5, Andrew wrote: > > Just FYI to anyone interested, I've put together a web2py template for > OpenShift

[web2py] Re: Making fields optional

2012-07-03 Thread Anthony
> > dogs.dogfood.requires.requires = IS_NULL_OR(IS_IN_DB(db, db.dogfood.id)) > Note, IS_NULL_OR has been deprecated in favor of IS_EMPTY_OR. Anthony

[web2py] Re: Remove Special Characters and Whitespace in db field

2012-07-03 Thread Anthony
> > Ok nvm I just read that web2py will not allow this by default *cheers > Where did you read that? web2py *will* allow whitespace and special characters in string fields. If you need to restrict the input, look into the IS_ALPHANUMERIC or IS_MATCH validators (see http://web2py.com/books/defa

Re: [web2py] Re: Remove Special Characters and Whitespace in db field

2012-07-03 Thread Andrew Evans
I was mistaken thank you for your help I guess what web2py does is escape those special characters, is that correct? Anyway I used the IS_APHANUMERIC function *cheers

Re: [web2py] Re: Remove Special Characters and Whitespace in db field

2012-07-03 Thread Anthony
> > I guess what web2py does is escape those special characters, is that > correct? > When you *display* text in a view, it will be escaped, so particular characters will get converted to HTML entities. Other than that, everything is left as is. Anthony

[web2py] Re: Web2Py on OpenShift

2012-07-03 Thread Massimo Di Pierro
Thank you. This is great. On Friday, 8 June 2012 10:07:39 UTC-5, Andrew wrote: > > Just FYI to anyone interested, I've put together a web2py template for > OpenShift (Red Hat's Opensource > PaaS). > > You can find it here: - https://github.com/prelegalwonder

[web2py] Working with custom form

2012-07-03 Thread Chris
I've just started with web2py, so this might be obvious but I struggle to see how it works: I have a controller action which returns a form: def register(): return dict(form=auth.register()) I also have a view 'register.html' for this action, which is *self-contained * as it does NOT use a

[web2py] creating an sqlite table with a column that has an on conflict clause

2012-07-03 Thread david karapetyan
Is there a way to create a table with db.define_table that has a column with an on conflict clause like 'create table t (col unique not null on conflict ignore)'?

[web2py] Re: Audit for all tables, independent of CRUD; and transaction rollback.

2012-07-03 Thread Joel Carrier
Hi Nick Name, Did you ever find a solution that met all your requirements? What you've described is exactly what I am facing now. Joel On Friday, May 6, 2011 6:18:49 PM UTC-4, nick name wrote: > > My use of web2py requires an audit trail for (essentially) all database > tables; The preferable

[web2py] Gluino with Flask

2012-07-03 Thread José Ricardo Borba
Sorry if this is not the correct place to post this, but is the only one that, I think, I give a correct answer. I'm starting a little project (yes, very little) and don't want to set entire web2py in this installation. So I use Flask to do this. But DAL is very powerfull and I still want to use i

[web2py] Re: Specify pdf name in appreport plugin

2012-07-03 Thread Jarrod
Muito obrigado Lucas! I have found the plugin very useful in my project. Big thanks for adding the the file name parameter. On Monday, July 2, 2012 7:51:05 PM UTC-5, Lucas D'avila wrote: > > Hello Jarrod! > > Please pull the last changes of branch v0.1.x or download the packed > plugin for it

[web2py] Re: Gluino with Flask

2012-07-03 Thread Massimo Di Pierro
I would not use gluino with Flask in production. There is a potential concurrency issue with Dal without web2py. On Tuesday, 3 July 2012 22:19:26 UTC-5, Borba wrote: > > Sorry if this is not the correct place to post this, but is the only one > that, I think, I give a correct answer. > > I'm sta

[web2py] Re: Server side rendering requiring js library. Svg to png. D3.js

2012-07-03 Thread Andrew
Hi Martin, Sure, just give me another day or two, I'll make a simple SQLite example of the d3one you mentioned. It isn't too complex to hook d3 up to a web2py json (or csv) output. I'm still experimenting in getting the graphs to dynamically update, and to also allow database updates from use