Re: [web2py] Re: Is there a working bootstrap3 formstyle for auth?

2015-05-26 Thread Richard Baron Penman
I wasn't using the scaffolding app, just setting the formstyle and then checking the user login/register forms. On Sat, May 23, 2015 at 2:58 AM, Niphlod wrote: > uhm. could you point out what are the pages of the scaffolding app you're > referring to ? they don't seem that bad to me. > > On Frida

Re: [web2py] Re: Is there a working bootstrap3 formstyle for auth?

2015-05-22 Thread Richard Baron Penman
I tried those bootstrap styles from latest source and they seem to work well for SQLFORM, however face problems for the non-standard features in the auth forms mentioned. On Fri, May 22, 2015 at 8:40 PM, 黄祥 wrote: > the newest version of web2py that have bootstrap 3 scaffolding app, is > maintain

Re: [web2py] Re: Login to web2py from external script

2015-01-13 Thread Richard Baron Penman
> http is stateless do you mean because the decoding is handled at the server layer before reaches web2py? On Tue, Jan 13, 2015 at 6:04 PM, Niphlod wrote: > http is stateless. > > > On Tuesday, January 13, 2015 at 6:12:27 AM UTC+1, Richard Penman wrote: >> >> Yeah same data of course, but differ

Re: [web2py] Re: Login to web2py from external script

2015-01-13 Thread Richard Baron Penman
and web2py is not On Tue, Jan 13, 2015 at 6:04 PM, Niphlod wrote: > http is stateless. > > > On Tuesday, January 13, 2015 at 6:12:27 AM UTC+1, Richard Penman wrote: >> >> Yeah same data of course, but different encoding than form specifies so I >> expected back end to reject it. >> >> why it shou

Re: [web2py] Re: Login to web2py from external script

2015-01-12 Thread Richard Baron Penman
Yeah same data of course, but different encoding than form specifies so I expected back end to reject it. why it shouldn't be ? it's just different encodings to send the same data over the wire. On Monday, January 12, 2015 at 3:36:12 AM UTC+1, Richard Penman wrote: > > Strangely I found that the

Re: [web2py] Re: webfaction nginx uwsgi install

2015-01-12 Thread Richard Baron Penman
e. > The correct file should be placed in > ~/webapps/${webfaction_app_name}/uwsgi/uwsgi.xml . Check there, otherwise it > would be better to re-run the script to double check that everything has > been installed/configured correctly. > > Paolo > > 2015-01-12 3:09 GMT+01:

Re: [web2py] Re: webfaction nginx uwsgi install

2015-01-11 Thread Richard Baron Penman
When the script is run it converts this template into what I posted. So how has web2py changed since that would break this? On Sun, Jan 11, 2015 at 11:29 PM, Paolo Valleri wrote: > According to the script you mention, the uwsgi.xml should be much different > because it doesn't referee to any spe

[web2py] Re: Migrating only a single auth table ?

2014-11-23 Thread Chris Baron
Ah, I think I understand. Thank you. On Wednesday, November 19, 2014 10:29:17 AM UTC-6, Leonel Câmara wrote: > > No it won't fail, it won't try to recreate auth_user unless you deleted > your .table files, in which case you need to do a fake migration first. > -- Resources: - http://web2py.com

[web2py] Re: Migrating only a single auth table ?

2014-11-19 Thread Chris Baron
"Then you can define your auth.settings.extra_fields['auth_group'], put your extra columns there, and do a regular migration." -- This is the first thing I tried to do. Won't that fail because auth_user already exists? I only want to migrate a single table -- auth_group. On Wednesday, Novembe

[web2py] Migrating only a single auth table ?

2014-11-18 Thread Chris Baron
I am trying to add columns to auth_group, but the migration breaks here : auth.define_tables(username=False, signature=False, migrate=True) It tries to migrate auth_user first, and fails because it already exists. How do I migrate only the auth_group table ? -- Resources: - http://web2py.com

Re: [web2py] Re: Can't get web2py working with GAE locally

2014-08-30 Thread Richard Baron Penman
oh, where is that documented? I didn't find it in the help message (web2py.py -h) or the book. On Sat, Aug 30, 2014 at 1:31 AM, Massimo Di Pierro wrote: > But now we simply do > > web2py.py -G GAE > > and everything is taken care for you you automatically. > > > On Wednesday, 27 August 2014 08:4

Re: [web2py] Re: How to call rows format?

2014-08-28 Thread Richard Baron Penman
ah OK, that makes sense. On Thu, Aug 28, 2014 at 2:42 PM, Anthony wrote: > In this case, the leading underscore is more to ensure the format attribute > doesn't clash with any possible field names (which are also accessed as > attributes of the table object). > > Anthony > > > On Thursday, August

Re: [web2py] Re: How to call rows format?

2014-08-28 Thread Richard Baron Penman
I ask because typically a leading underscore would indicate a private method. On Aug 28, 2014 2:21 PM, "Anthony" wrote: > That's it. > > On Thursday, August 28, 2014 3:59:48 AM UTC-4, Richard Penman wrote: >> >> Hello, >> my database table defines 'format' - what is the proper way to use this >>

Re: [web2py] Re: How can Web2py prevent web scraping?

2014-08-26 Thread Richard Baron Penman
Thanks for info On Tue, Aug 26, 2014 at 10:26 PM, Derek wrote: > You should use proper HTTP status codes. > 429 is the appropriate response code. > > http://tools.ietf.org/html/rfc6585 > > While 503 did have wording suggesting it can be used for rate limiting, that > has been removed. > > http://

Re: [web2py] Re: Fatal Python error: Couldn't create autoTLSkey mapping

2013-01-16 Thread Richard Baron Penman
I found simply increasing the allocated memory resolved this error: 1024 512 256 On Tue, Jan 15, 2013 at 11:33 PM, Daniel Gonzalez wrote: > I have not yet upgraded :( > > > On Tuesday, January 15, 2013 1:25:06 PM UTC+1, Richard Penman wrote: >> >> Already 2.7.3. >> >> Did you find the problem f

Re: [web2py] Re: Fatal Python error: Couldn't create autoTLSkey mapping

2013-01-15 Thread Richard Baron Penman
Already 2.7.3. Did you find the problem fixed after upgrading? On Tue, Jan 15, 2013 at 11:22 PM, Daniel Gonzalez wrote: > The links I sent are related to mod_wsgi / apache / python 2.7.2, but it is > a generic python 2.7.2 problem. The problems do not happen always. > > What python version are

Re: [web2py] Re: Fatal Python error: Couldn't create autoTLSkey mapping

2013-01-15 Thread Richard Baron Penman
hmm, that looked promising but unfortunately found I am already at 2.7.3: $ python -V Python 2.7.3 On Tue, Jan 15, 2013 at 10:00 PM, Daniel Gonzalez wrote: > I am actually researching the same problem. Please take a look here: > > https://groups.google.com/d/topic/modwsgi/DW-SlIb07rE/discussion

Re: [web2py] Re: Fatal Python error: Couldn't create autoTLSkey mapping

2013-01-15 Thread Richard Baron Penman
I used subprocesses on my previous server with uwsgi and had no problem. On Tue, Jan 15, 2013 at 9:51 PM, Niphlod wrote: > I may be out of line here, but the problem may lie in the fact that if you > want to start a subprocess usually subprocess.call uses a thread to > communicate with it. u

Re: [web2py] Re: RuntimeError: table appears corrupted

2012-12-28 Thread Richard Baron Penman
Thanks - that did it. Any idea what happened and how to prevent this? If helpful I can send the previous and current .table files. On Sat, Dec 29, 2012 at 6:32 PM, Massimo Di Pierro wrote: > Can you try delete (backup first) all yourapp/database/*.table then try > again. > > > On Friday, 28 Dec

Re: [web2py] Re: RuntimeError: table appears corrupted

2012-12-28 Thread Richard Baron Penman
These work: DAL(uri, migrate=False, fake_migrate=False) DAL(uri, migrate=False, fake_migrate=True) These produce Runtime error: DAL(uri, migrate=True, fake_migrate=False) DAL(uri, migrate=True, fake_migrate=True) --

Re: [web2py] Re: RuntimeError: table appears corrupted

2012-12-28 Thread Richard Baron Penman
> migrate=True, fake_migrate=True strangely that produces the same table corrupted error --

Re: [web2py] Re: Migrating with postgres

2012-11-16 Thread Richard Baron Penman
That is the process I first tried, based on info in the web2py book. The problem for this was when web2py was regenerating the tables it raised an error that auth_user already exists. On Sat, Nov 17, 2012 at 3:55 AM, pbreit wrote: > I think you might want to try: > 1. copy all of the files in "d

Re: [web2py] Re: Migrating with postgres

2012-11-14 Thread Richard Baron Penman
I am still on web2py 1.99.4. Perhaps that is the reason. For now my solution was to manually update the postgres database and use fake_migrate to create the corresponding .table files. http://web2py.com/books/default/chapter/29/06#Fixing-broken-migrations I also develop with sqlite and migrations

Re: [web2py] Re: How to create long running tasks?

2012-11-08 Thread Richard Baron Penman
: > using SIGKILL is not a good way to end processes and zombies are evil not > only in "Night of the Living > Dead"<https://en.wikipedia.org/wiki/Night_of_the_Living_Dead> ;-) > they consume resources. > > > mic > > > 2012/11/8 Richard Baron Penman >

Re: [web2py] Re: How to create long running tasks?

2012-11-08 Thread Richard Baron Penman
it will detach from the parent (the launching) process and work > in the background. > > pip install python-daemon > > http://pypi.python.org/pypi/python-daemon/ > > > mic > > > 2012/11/7 Richard Baron Penman > >> OK, got a solution that has been working w

Re: [web2py] Re: How to create long running tasks?

2012-11-06 Thread Richard Baron Penman
OK, got a solution that has been working well for last few days now. I made 2 mistakes previously that caused me trouble: 1) The child processes are independent. I had used ctrl+c to kill web2py, which was passed on to the child processes. When kill -9 [web2py PID] was used the child processes co

Re: [web2py] Re: How to create long running tasks?

2012-11-01 Thread Richard Baron Penman
> I don't get the "it's not applicable in this case" part. The way you start > them on web2py is the same one you can use with the scheduler Does not seem applicable because does not address the problem of dependent child processes. > Starting child processes from webserver main process is

Re: [web2py] Re: Server file dialog

2012-10-31 Thread Richard Baron Penman
That is correct. current.request.raw_args == '/css' So checking for empty args fixes this. I have submitted a patch for this and some other issues: http://code.google.com/p/web2py/issues/detail?id=1131&thanks=1131&ts=1351737416 I needed to be able to filter files by extension and prevent download

Re: [web2py] Re: Server file dialog

2012-10-31 Thread Richard Baron Penman
Nice! I will modify this for my own use. What is this included in gluon for? I noticed a double slash is shown for sub-folders: base//css/ (<- when in static/css) On Wed, Oct 31, 2012 at 8:09 PM, Niphlod wrote: > there's something, not really tested, that you can definitely try: > from gluon.to

Re: [web2py] Re: auth for entire controller

2012-07-25 Thread Richard Baron Penman
thanks for tips - yes I did have that inserted in the controller. On Thu, Jul 26, 2012 at 2:01 PM, Anthony wrote: >> The redirect in: >> if not any(has_membership): >> redirect(URL(r=request, c='default', f='index')) >> >> will not break the execution of models? > > > Since the original code

[web2py] Moving away from define_table

2012-05-10 Thread Christopher Baron
Hi, I've been using web2py for a few years now. What I find most annoying is the DAL. I understand that its easy for people who don't have a programming background, but anytime I want to make changes to columns - I run into issues large and small. I'd simply prefer to manage my database wit

Re: [web2py] Re: import_from_csv_file broken

2012-02-15 Thread Richard Baron Penman
did it from controller. And not a rollback because the data was inserted, just the fields are NULL. On Thu, Feb 16, 2012 at 4:52 PM, Ron McOuat wrote: > If you did this from a shell using the -S and -M web2py.py options then > the code must do a db.commit() as part of the program flow. A reques

Re: [web2py] Re: how to integrate web2py with existing static website

2012-01-03 Thread Richard Baron Penman
I am currently using uwsgi/nginx, and would prefer to stay with that setup because so many others recommended it. I saw some web2py examples here at the uwsgi wiki: http://projects.unbit.it/uwsgi/wiki/Example Does anyone have experience with configuring uwsgi/nginx to just serve web2py for certain

Re: [web2py] Re: compute field error

2012-01-01 Thread Richard Baron Penman
v1.99.2 I found I get no error when I change the database from postgres to sqlite. Richard On Sun, Jan 1, 2012 at 2:43 AM, Massimo Di Pierro wrote: > Your code works for me. What version of web2py? Try it is a newly > createted application. > > On Dec 31, 6:37 am, Plumo wrote: >> I found when

Re: [web2py] migrating to postgres error

2011-12-31 Thread Richard Baron Penman
ah thanks - that was it. I heard a year back the new DAL would take care of these name conflicts. On Sat, Dec 31, 2011 at 6:39 PM, Marin Pranjić wrote: > User is a reserved keyword in postgres, you need to rename field > > Marin > > On 31 Dec 2011 09:42, "Plumo" wrote: > > I have an app workin

Re: [web2py] routers only exposing default controller

2011-11-18 Thread Richard Baron Penman
yes only the default controller is available by default, until I defined the controllers variable.

Re: [web2py] routers only exposing default controller

2011-11-17 Thread Richard Baron Penman
21 PM, Jonathan Lundell wrote: > On Nov 17, 2011, at 8:03 PM, Richard Baron Penman wrote: > >> The point is the other controllers are not available without the >> controllers variable. I can provide the real domains used in a private >> conversation if helpful. >> >> Sinc

Re: [web2py] routers only exposing default controller

2011-11-17 Thread Richard Baron Penman
17, 2011, at 8:48 AM, Richard Baron Penman wrote: > >> OK domain1/sales >> (These are just examples - if would be helpful to have the exact >> settings and domains I am using we can have a private conversation.) >> >> The apps have different controllers. >

Re: [web2py] routers only exposing default controller

2011-11-17 Thread Richard Baron Penman
ard Baron Penman wrote: > >> in fact Bruno's suggestion to use the controllers variable does work for me. >> Previously I used what you suggest (see first post in this thread) and >> then only the default controller was exposed. >> >> What error? Accessin

Re: [web2py] routers only exposing default controller

2011-11-17 Thread Richard Baron Penman
sales) Richard On Fri, Nov 18, 2011 at 12:24 AM, Jonathan Lundell wrote: > On Nov 16, 2011, at 11:53 PM, Richard Baron Penman wrote: > >> what web2py version are you using? I have 1.99.2 >> >> >> This is the only variable I have defined in routes.py: >> >> ro

Re: [web2py] routers only exposing default controller

2011-11-16 Thread Richard Baron Penman
7;default', 'appadmin', 'view'], # also tried 'ALL' but did not work ), ) On Thu, Nov 17, 2011 at 12:56 AM, Jonathan Lundell wrote: > On Nov 16, 2011, at 5:32 AM, Richard Baron Penman wrote: > >> I found listing the controllers explicitly as Bruno me

Re: [web2py] Re: routers only exposing default controller

2011-11-16 Thread Richard Baron Penman
I found listing the controllers explicitly as Bruno mentioned fixed the problem. Previously domain/non-default-controller returned: invalid function (default/non-default-controller) I would expect all controllers to work by default. Richard On Wed, Nov 16, 2011 at 2:36 PM, Jonathan Lundell wrot

Re: [web2py] Re: routers only exposing default controller

2011-11-15 Thread Richard Baron Penman
The URL's are mapped like this: http://domain.com/function/args?vars The controllers are not exposed. v1.99.2 Richard On Wed, Nov 16, 2011 at 1:34 PM, Massimo Di Pierro wrote: > this should not be the case. if it is is a bug. > > On Nov 15, 10:18 pm, Plumo wrote: >> I am mapping apps to diffe

Re: [web2py] Re: excessive memory usage on webfaction

2011-11-10 Thread Richard Baron Penman
I think this primarily a problem of how web2py is being served rather than a web2py problem. Just the welcome app and no traffic takes 70MB of memory by default. On Fri, Nov 11, 2011 at 11:59 AM, Bruno Rocha wrote: > On Fri, Nov 11, 2011 at 12:52 AM, Richard Baron Penman > wrote: >&

Re: [web2py] Re: excessive memory usage on webfaction

2011-11-10 Thread Richard Baron Penman
I was also surprised how much resources the default configuration uses, just for the welcome app. Seems Django has better configuration. I tried that static technique but haven't noticed a difference yet. I only have the default welcome app static files. Webfaction support recommends reducing the

Re: [web2py] Re: error when upgraded to v1.99

2011-11-05 Thread Richard Baron Penman
models/ > dbowrappers.py", line 226, in create_admin id = > cls.db.user_profile.insert(**data) > > what's in data? > > for key in data: print ket, repr(data[key]), type(data[key]) > > > On Nov 4, 11:00 pm, Richard Baron Penman wrote: > > Yes the a

Re: [web2py] Re: error when upgraded to v1.99

2011-11-04 Thread Richard Baron Penman
t; lot of the auth logic yourself. > > > > On Nov 3, 10:07 pm, Richard Baron Penman wrote: >> from trunk, now a different error: >> >> Traceback (most recent call last): >>   File "/web2py/helpdesk/gluon/restricted.py", line 204, in restricted >

Re: [web2py] Re: error when upgraded to v1.99

2011-11-03 Thread Richard Baron Penman
from trunk, now a different error: Traceback (most recent call last): File "/web2py/helpdesk/gluon/restricted.py", line 204, in restricted exec ccode in environment File "/web2py/helpdesk/applications/helpdesk/controllers/default.py:index", line 11, in File "applications/helpdesk/module

[web2py] modules and plugins

2011-09-13 Thread Christopher Baron
Hi web2py users, Let's say I have a lot of functions that I would like to include into a plugin. I do not want all of these functions in the controller of the plugin. What's the best way to include a large number of utility functions into a plugin ? Thanks in advance, Chris

[web2py] Re: form.accepts returning false

2011-09-07 Thread Christopher Baron
. On Sep 7, 3:11 pm, Cliff wrote: > If your form doesn't have the default hidden fields, the controller > assumes it's a resubmit and fails silently. > > Check out the book, Chapter 7, SQLFORMS. > > But why would you want to do this? > > On Sep 7, 2:05 pm, Chris

[web2py] Re: form.accepts returning false

2011-09-07 Thread Christopher Baron
Form.errors is an empty storage object. So... it was unsubmitted ? How is this possible when I'm using the controllers/appadmin.py that comes with web2py ? On Sep 7, 2:01 pm, Rufus wrote: > Did you look at form.errors to find out why it returns false? > > If form.errors doesn't exist, the accep

[web2py] form.accepts returning false

2011-09-07 Thread Christopher Baron
Hi web2py users, When trying to update a row in a database table using the appadmin interface, it does not work. The same page returns with the original values. In the appadmin controller, form.accepts is returning false - this may have to do with a hack I've made to the controllers.appadmin.py

[web2py] Re: windows xp and source web2py

2011-09-06 Thread Christopher Baron
icly (if no firewall) and -p 80 sets the > port. > > On Sep 6, 2:15 pm, Christopher Baron wrote: > > > > > > > > > Hi web2py users, > > > I'm running a web2py server on a windows xp machine.  Let's call it > > the kiosk machine.  The ki

[web2py] windows xp and source web2py

2011-09-06 Thread Christopher Baron
Hi web2py users, I'm running a web2py server on a windows xp machine. Let's call it the kiosk machine. The kiosk machine has a static IP. I am able to ping the kiosk machine from other computers on the network. However, I'm unable to send an http request from a computer on the network to the

[web2py] Re: powertable ( multiple tables on the same page )

2011-07-20 Thread Chris Baron
e dict. > > 2011/7/20 Chris Baron > > > > > > > > > I'm still having a problem getting two powertables on one page.  If I > > comment out the code for the second powertable, everything is fine, > > but it seems the first powertable can't

[web2py] Re: powertable ( multiple tables on the same page )

2011-07-20 Thread Chris Baron
On Jul 20, 9:40 am, Chris Baron wrote: > Thank you for the prompt responses. > > On Jul 19, 4:12 pm, Roberto Perdomo wrote: > > > > > > > > > Hello, it's me again. > > > Well, I discovered that the problem of loading the table with "load&qu

[web2py] Re: powertable ( multiple tables on the same page )

2011-07-20 Thread Chris Baron
> table.dtfeatures['aoColumns'] = '' > > > dtfeatures implement any option from datatables.net > > > On Tue, Jul 19, 2011 at 1:32 PM, Christopher Baron > > wrote: > > >> Does anyone know where, what to set the 'aoColumns' property

[web2py] Re: powertable ( multiple tables on the same page )

2011-07-19 Thread Christopher Baron
ecause is very hevy for the group mail. > > 2011/7/18 Bruno Rocha > > > > > > > > > include ownTable._id = "something" and ownTable._class = "something" to set > > different class and id to the tables. > > > On Mon, Jul 18, 2011

[web2py] Re: powertable ( multiple tables on the same page )

2011-07-18 Thread Chris Baron
t; different class and id to the tables. > > On Mon, Jul 18, 2011 at 12:57 PM, Chris Baron wrote: > > > > > > > > > > > How do you do it ? > > > Here is my controller : > > > ownDataSource = db( db.gtree.contributor == &#x

[web2py] powertable ( multiple tables on the same page )

2011-07-18 Thread Chris Baron
How do you do it ? Here is my controller : ownDataSource = db( db.gtree.contributor == ' '.join( [ auth.user.first_name, auth.user.last_name ] ) ).select() class ownVirtualFields(object): @virtualsettings(label='Tree') def tree_url(self): gtree = self.gtree.id

[web2py] Re: table auth_user already exists

2011-06-27 Thread Christopher Baron
Ok, auth.define_tables( migrate=False ) seems to fix it, but what happens when a future web2py update changes the auth tables ? On Jun 27, 3:09 pm, Christopher Baron wrote: > I've tried > > db = DAL("mysql://%s:%s@%s/%s" % (user, password, host, dbname), > migrate=Fa

[web2py] Re: table auth_user already exists

2011-06-27 Thread Christopher Baron
I've tried db = DAL("mysql://%s:%s@%s/%s" % (user, password, host, dbname), migrate=False) and still have the same problem. On Jun 27, 3:07 pm, Christopher Baron wrote: > I upgraded via the admin update link and received an error, so I went > ahead and downloaded the sour

[web2py] Re: table auth_user already exists

2011-06-27 Thread Christopher Baron
gt; > > wrote: > > Did you upgrade by the web2py "admin" update link? > > > Richard > > > On Mon, Jun 27, 2011 at 2:22 PM, Christopher Baron > > wrote: > > >> Hi web2py users, > > >> Just upgraded to Version 1.97.1 > > >>

[web2py] table auth_user already exists

2011-06-27 Thread Christopher Baron
Hi web2py users, Just upgraded to Version 1.97.1 I checked my code out into the new directory, opened my browser, and received and error stating 'auth_cas' already exists. I removed all files from the databases folder and tried again receiving an error that 'auth_user' already exists. I'm using

[web2py] Janrain login_next

2011-06-24 Thread Chris Baron
Hi web2py users, I'm using Janrain for login. What's the best way to have a proper redirect after login? I would like to redirect to be the location visited before the login page. When a non logged in user attempts to access a page that requires login, they are redirected to the login page, and

Re: [web2py] Re: alias field names

2011-05-25 Thread Richard Baron Penman
Currently the datastore is at 1.3GB and costs next to nothing, so normally I wouldn't care. But this project is for a client who doesn't want to enable billing so I am trying every optimization I can find. On Thu, May 26, 2011 at 7:16 AM, howesc wrote: > i don't see the reason for this. true,

Re: [web2py] Re: alias field names

2011-05-24 Thread Richard Baron Penman
On Wed, May 25, 2011 at 2:13 AM, pbreit wrote: > Massimo's example gets you roughly the same result. so are you saying this would work too? db.table_name.my_descriptive_field_name = db.table_name.a Having a constant or an alias is pretty much the same. main drawback is additional global v

Re: [web2py] Re: alias field names

2011-05-24 Thread Richard Baron Penman
On Wed, May 25, 2011 at 1:50 AM, Vinicius Assef wrote: > > I didn't understand your "space reasons" > see first post

Re: [web2py] Re: alias field names

2011-05-24 Thread Richard Baron Penman
For space reasons I want the database to internally store 'a', but be able to use the longer name in code for readability. So I think your example should instead be: Field('a', 'string', alias='my_descriptive_field_name') But does that alias parameter exist? Not according to docs: http://web2py.c

Re: [web2py] Re: alias field names

2011-05-24 Thread Richard Baron Penman
would this work? db.table_name.my_descriptive_field_name = db.table_name.a I would rather avoid extra global variables and changing my database queries. On Wed, May 25, 2011 at 12:21 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > How about > > my_descriptive_field_name = db.a > >

Re: [web2py] blog app

2011-05-17 Thread Richard Baron Penman
shed yet) I guess that is a GAE indexes problem, my is running on > webfaction which is faster at this point. > > > On Tue, May 17, 2011 at 9:15 PM, Richard Baron Penman > wrote: > >> nice - I didn't know about bloog. >> >> I tried accessing that GAE app at

Re: [web2py] blog app

2011-05-17 Thread Richard Baron Penman
nice - I didn't know about bloog. I tried accessing that GAE app at http://blog.lucasdavi.la and the first request took almost 10 seconds - terrible! On Wed, May 18, 2011 at 9:09 AM, Bruno Rocha wrote: > Instant Press > http://code.google.com/p/instant-press/ > > Blo

Re: [web2py] Re: compressed field

2011-05-03 Thread Richard Baron Penman
have a look in gluon/dal.py to see the internals. Very convenient. On Tue, May 3, 2011 at 11:30 PM, Jose wrote: > > > On 3 mayo, 00:21, Massimo Di Pierro > wrote: > > You can easily make a custom type to do that: > > > > import xlib > > compressed = > > SQLCustomType( > > type > >

Re: [web2py] Re: error feed

2011-04-18 Thread Richard Baron Penman
Tickets are stored differently on normal server and GAE, and I want a solution that works on both. Is there a function that returns the current tickets? On Tue, Apr 19, 2011 at 2:12 AM, Jonathan Lundell wrote: > On Apr 18, 2011, at 8:54 AM, Richard Baron Penman wrote: > > cool, that

Re: [web2py] Re: error feed

2011-04-18 Thread Richard Baron Penman
cool, that is what I was thinking too. On Tue, Apr 19, 2011 at 1:48 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > On GAE tickets are stored on database. > > you could use routes_onerror to call an action that publishes the > latest error on an RSS feed. > > On Apr 18, 9:50 am, Plu

Re: [web2py] routes on GAE

2011-03-08 Thread Richard Baron Penman
yes also worked for me. People will need to change the application name, so should this be included in app.yaml but commented out? On Wed, Mar 9, 2011 at 2:03 PM, Jonathan Lundell wrote: > On Mar 8, 2011, at 6:36 PM, Plumo wrote: > > thanks John, that makes sense. > > I tested it on the stock

Re: [web2py] Re: Python fourth on the list

2011-02-28 Thread Richard Baron Penman
I often use elance.com, and currently they have 54 projects related to Python, and 1123 related to PHP. On Mon, Feb 28, 2011 at 1:06 PM, blackthorne wrote: > that is programming language popularity > not web programming language popularity > > On Feb 28, 12:28 am, Plumo wrote: > > wow, more po

[web2py] Unable to access admin, one other application

2011-02-22 Thread Chris Baron
250 S'' p251 sS'fieldname' p252 S"'graftedTreeId'" p253 sS'rtable' p254 S"}>" p255 sS'ref' p256 S"'graftedTree'" p257 sS'self' p258 S"}>" p259 sssS'traceback' p260 S'Traceback (most recent call last):\n File "/Users/cbaron/Desktop/ web2py/gluon/restricted.py", line 188, in restricted\nexec ccode in environment\n File "/Users/cbaron/Desktop/web2py/applications/ pluginApp/models/plugin_treeGrafter.py", line 22, in \n Field( \'affectedNodeId\', db.node ) )\n File "/Users/cbaron/Desktop/ web2py/gluon/dal.py", line 3493, in define_table\n t._create_references()\n File "/Users/cbaron/Desktop/web2py/gluon/ dal.py", line 3795, in _create_references\nraise SyntaxError, "Table: table \'%s\'does not exist" % rtablename\nSyntaxError: Table: table \'graftedTree\'does not exist\n' p261 s. Thanks in advance, Chris Baron

Re: [web2py] URL anchor breaks routes

2011-02-13 Thread Richard Baron Penman
I do want to remove the /page/ part. Specifying a list of functions would be fine - how is that done? On Mon, Feb 14, 2011 at 1:21 PM, Jonathan Lundell wrote: > On Feb 13, 2011, at 5:53 PM, Plumo wrote: > > In the main routes.py I have: > > > > routes_app = ((r'/(?Pcms|admin)\b.*', r'\g'), > >

[web2py] Re: Multi Tabbed Menu - Any Suggestions.

2011-01-06 Thread Chris Baron
http://jqueryui.com/demos/tabs/ You could also try writing your own if you're not happy with the way it works. Use the jquery code as a reference. On Jan 5, 11:58 pm, "David J." wrote: > I was wondering if anyone on the list has seen an good multi-level > horizontal tab menu. > > I have > > >

Re: [web2py] 3rd party library import error

2011-01-01 Thread Richard Baron Penman
thanks, I used the site-packages approach. On Sat, Jan 1, 2011 at 6:04 PM, Jonathan Lundell wrote: > On Dec 31, 2010, at 9:24 PM, Plumo wrote: > > My app uses Google's gdata client library: > http://code.google.com/p/gdata-python-client/ > > modules/ > gdata/ > atom/ > test.py > > test.py

[web2py] Re: python list serialization to json

2010-12-30 Thread Chris Baron
Its not my day for posting. request.vars.tabs is a list of strings in python when it gets to the controller. The response.json does exactly what its supposed to do. Sorry for the spam. On Dec 30, 12:59 pm, Chris Baron wrote: > In my controller: > > def default(): >     f=open(&#x

[web2py] python list serialization to json

2010-12-30 Thread Chris Baron
In my controller: def default(): f=open('/tmp/debug','w') f.write( str( request.vars.tabs ) )f.write( '\n' ) f.write( response.json(request.vars.tabs) ) return dict( tabs = response.json(request.vars.tabs) ) In /tmp/debug ["{'text': 'Tree List', 'args': {'trees': 'db.tree.id

Re: [web2py] Re: help desk app

2010-12-20 Thread Richard Baron Penman
Yes would be good if a clone existed. The only web2py helpdesk I found... needs work: http://y-a-t-s-y.appspot.com/ I expect the hardest part is receiving emails - adding to correct ticket, attachments, encoding problems, etc. This page describes the different kinds of ticket systems well: http:/

[web2py] another component question

2010-11-10 Thread Chris Baron
Hello web2py users, I've been playing around with components recently and they are helping me modularize my application. I was hoping someone could explain to me why they do what they do. I've noticed that when a controller function that is referenced by a component returns a dict(), it require

[web2py] Render svg using web2py without js library

2010-10-27 Thread Chris Baron
Thanks in advance, Chris Baron

[web2py:21427] Re: latest trunk reads web2py tweets

2009-05-07 Thread Baron
On May 7, 3:16 pm, mdipierro wrote: > because we'll be moving to mercurial and off launchpad soon how come? I'm currently deciding on hosting for a project and was leaning towards bitbucket (mercurial). What were the drawbacks of launchpad and the expected advantages of mercurial? Richard --~--

[web2py:21426] Re: Stream a blob

2009-05-07 Thread Baron
OK thanks - I'll change to upload then. Richard On May 7, 3:26 pm, mdipierro wrote: > On May 6, 10:05 pm, rbp wrote: > > > hello, > > > I just noticed that web2py has an easy way to stream data - that's > > fantastic! > > Currently I upload and download data without streaming which is really >

[web2py:21425] Re: javascript drawing on background image

2009-05-07 Thread Baron
hi Horst, I have done something similar using http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm on the client side and PIL on the web2py server. I considered processingjs but most of my clients use IE and it would be a hassle to install the plugin. Hopefully a future IE release comes with ca

[web2py:20587] Re: Cross database joins

2009-04-26 Thread Baron
On Apr 27, 11:45 am, mdipierro wrote: > On 26 Apr, 20:28, rbp wrote: > > > > > hello, > > > I read in this thread (http://groups.google.com/group/web2py/ > > browse_thread/thread/add0a8ff0a086111) that cross database joins are > > supported. > > I'm trying to get this working. > > > I define m

[web2py:19431] Re: The official Web2py Book by Massimo....for free?

2009-04-07 Thread Baron
oject so it should be possible for web2py too. Baron On Apr 7, 11:18 am, Michal Jursa wrote: > HEY PEOPLE! > Stop blaming Massimo for nonfree book! > > He wrote the book, he is owner of all rights, copyrights etc. and it is > absolutely on him if he will or will not let it go for f

[web2py:19338] Re: The official Web2py Book by Massimo....for free?

2009-04-06 Thread Baron
ive away the soft copy (I assume then that arrangement still satisfies your academic requirements). But when I suggested that same arrangement you got quite defensive... Did you approach Apress? The online Django book was published by Apress. Baron On Apr 6, 3:22 pm, mdipierro wrote: &g

[web2py:19199] Re: The official Web2py Book by Massimo....for free?

2009-04-05 Thread Baron
uy the book because I have already been using web2py for some time, but a beginner is unlikely. And my version is fast becoming out of date with all the new features. Unfortunately the wiki right now is still pretty empty and doesn't look like approaching the coverage of the manu

[web2py:19198] Re: The official Web2py Book by Massimo....for free?

2009-04-05 Thread Baron
> Massimo you should place some really deep and exact explanation about the book status and reasons why it is not free to the website..:) agreed - why does Massimo never weigh in on these threads? --~--~-~--~~~---~--~~ You received this message because you are subs

[web2py:18751] Re: Pycon 2009 - Important

2009-03-29 Thread Baron
I am so jealous - wish I could be there too! On Mar 29, 12:45 am, TheDude wrote: > Let us know how it goes! :) Will there be a summary follow up? :D > > On Mar 28, 9:27 am, mdipierro wrote: > > > See you at the web2py booth after Guido's talk today. (free hats) > > > Please attend the web2py D

[web2py:18520] Re: Full documentation

2009-03-24 Thread Baron
possible to kick start the documentation effort by allowing the copying of text sections from the manual? Clearly a lot of time was spent on the manual so it is understandable for a person to want to maintain ownership. However Massimo also spent a lot of time on web2py but still gave

[web2py:18483] Re: Qusestion about the book?

2009-03-23 Thread Baron
ight now is still pretty empty and doesn't look like approaching the coverage of the manual for a long time. So, would it be possible to kick start the documentation effort by allowing the copying of text sections from the manual? Baron --~--~-~--~~~---~--~~ Y

[web2py:18270] Re: Qusestion about the book?

2009-03-18 Thread Baron
t freely available online and use feedback from the community to update it: http://www.djangobook.com/en/2.0/ If Massimo needs to publish because of academia then fair enough, but that doesn't prevent also making it available online. Baron On Mar 17, 11:34 pm, Michal Jursa wrote: > well

[web2py:18197] Re: Qusestion about the book?

2009-03-17 Thread Baron
, 2009 at 6:56 PM, Baron wrote: > > > Are we allowed to copy sections from the published book into the wiki? > > Or would that break copyright? > > > On Mar 16, 10:47 am, mdipierro wrote: > > > This questions comes up once in a while. The reason for the publish

[web2py:18161] Re: Qusestion about the book?

2009-03-16 Thread Baron
Are we allowed to copy sections from the published book into the wiki? Or would that break copyright? On Mar 16, 10:47 am, mdipierro wrote: > This questions comes up once in a while. The reason for the published > book is not that I make any money from it. the reason is that I need > to justif

  1   2   >