[web2py] Re: experimental in trunk... common_fields and precints

2011-06-26 Thread Chris S
So does that mean tables defined before: db._common_fields=[Field('request_precinct',default=request.env.http_host,writable=False,readable=False)] Don't get populated with the common field? If so that's great, lets you define which tables get fields, or even have several levels of "common fields".

[web2py] Re: experimental in trunk... common_fields and precints

2011-06-25 Thread Chris S
Ah there was one other scenario I meant to as. Can you have an entry in the table which, when filtered, always passes? Here I'm thinking about a cross-site admin that could register a single time and be retrieved from any of the accessing URL's. On Jun 25, 7:08 pm, Chris S wrote:

[web2py] Re: experimental in trunk... common_fields and precints

2011-06-25 Thread Chris S
This is great, I've been away from web2py for about a year now and this feature is exactly what I was trying to do quite some time ago by manually storing and filtering by a SiteId. A couple of questions. 1 - Is there a way to over ride the filter if you do not want it, for say Administration? 2 -

[web2py] Re: How do I optimize cache expiration on GAE?

2010-09-15 Thread Chris S
I'm sorry I just re-read your post. If the three files I listed as no-cached are not in static they are not being cached as expected. The app.yaml by default tells the GAE server to server from the /static folder directly with a 90-day cache. On Sep 15, 10:56 pm, Chris S wrote: > I che

[web2py] Re: How do I optimize cache expiration on GAE?

2010-09-15 Thread Chris S
I checked and noticed the following files as having no expiration date. jquery-ui.css groups_logo_sm.gif rpx.js These files have a date and are set to 90-days, chrome is suggesting a year. base.css calendar.css ptjq.pkg.js peertool.js background.gif header.gif menu.gif question32.png agplv3-88x31.

[web2py] Re: GAE: recipies to cope with long loading of pages?

2010-08-30 Thread Chris S
It's been a few months since I attempted to cache as you're asking. When I tried it did not work on GAE though I'm not clear if that was a memcache+GAE bug or just my implementation. What I know you can do is cache things like this. def gaecache(table,row,criteria): """ S

[web2py] Re: GAE: recipies to cope with long loading of pages?

2010-08-30 Thread Chris S
t in one of your models you can just call the function only on highly accessed queries. You could even make the cache time (3600 seconds above) as an input if you wanted to make the function very generic. On Aug 30, 9:20 pm, Chris S wrote: > Um... of course that example should also end wi

[web2py] Re: GAE: recipies to cope with long loading of pages?

2010-08-30 Thread Chris S
Um... of course that example should also end with "return data". On Aug 30, 2:23 pm, Jurgis Pralgauskis wrote: > I quite use reference fields -- maybe thats the problem... >  can this be cached the way select is? > > sth like > db.define_table("Topics", >           Field("parent_id","reference To

[web2py] Re: GAE: recipies to cope with long loading of pages?

2010-08-30 Thread Chris S
The version of web2py in trunk has already been patched to use app stats. http://googleappengine.blogspot.com/2010/03/easy-performance-profiling-with.html It might help a little. Most likely on GAE it's DBIO that slows it down. On Aug 30, 10:01 am, mdipierro wrote: > It is slow. does it contain

[web2py] Re: web2py clone question - applications/welcome/ABOUT' is inside repo 'applications/welcome'

2010-08-29 Thread Chris S
You can use subrepos (http://mercurial.selenic.com/wiki/ Subrepositories?action=show&redirect=subrepos) in mercurial. Though I have only messed with it out of curiosity I can't say I've used it extensively. On Aug 29, 5:52 pm, mdipierro wrote: > I think hg does not support nested repos. > > Ma

[web2py] Re: LOAD and response.files

2010-08-09 Thread Chris S
09 pm, mdipierro wrote: > The problem with this approach is that you can longer embed widgets in > regular views via {{=plugin_wiki.widget(name,**attr)}} because the > response.files list would be updated after the response.files are > included. > > Massimo > > On Aug 9, 4:43 pm, C

[web2py] LOAD and response.files

2010-08-09 Thread Chris S
When using plugin_wiki (or just the LOAD command in general) is it possible to somehow include response.files to include custom css and js files? It would be nice if I could only load .js files which are widget specific if that widget is in use. I really don't want to have to load every .js file

[web2py] Re: Will a compiled app run on GAE?

2010-08-05 Thread Chris S
bute a commercial web2py app running on GAE. > > -- > Mat > > On Thu, Aug 5, 2010 at 10:48 PM, Chris S wrote: > > Can I ask what advantage running a compiled app is on GAE? > > > There is a new (experimental or beta I forget) option you can use in > > the app

[web2py] Re: From autogenerated form to custom form

2010-08-05 Thread Chris S
Using a custom form in your view should not change your controller any. Just use the same controller and instead of the view having: {{=form}} It should have: {{=form.custom.begin}} // your custom stuff including submit button {{=form.custom.end}} I've never tried it but setting formname to "Non

[web2py] Re: Help with Validators

2010-08-05 Thread Chris S
There might be a way to enforce this at the database level, but one of the more experienced members will have to address that. What I can offer, is something I've done several times to apply custom validation at the form level. In the controller create the form using the onvalidation method. d['fo

[web2py] Re: Will a compiled app run on GAE?

2010-08-05 Thread Chris S
Can I ask what advantage running a compiled app is on GAE? There is a new (experimental or beta I forget) option you can use in the app.yaml file: derived_file_type: - python_precompiled Does byte compiling provide benefit beyond precompiled? It's quite possible it does and I just don't understan

[web2py] Re: plugin_wiki

2010-07-21 Thread Chris S
It's available on the download page of the web2py site: http://www.web2py.com/examples/default/download Additionally, I check out cube2py from the google code repository and copy the source files from there. If you want to be able to download the latest trunk and see what's changed. On Jul 21, 11

[web2py] Re: plugin_wiki / roles

2010-07-21 Thread Chris S
I've been really exploring plugin_Wiki since it's launch and I can at least answer what the Role: box does. If a group is listed in this box for a page ONLY that group can then access the page. Notice I say group because while "user_1" is the default group for a specific user you can just as easi

[web2py] Re: cube2py news

2010-07-20 Thread Chris S
lean to render a Chekbox, etc) > > >> ** SEO Tools ( Just Like Wordpress-AIOSP) > > >> -- > > > >> On Jul 19, 8:48 pm, Júlio Monteiro wrote: > > > >> > Hello, > > > >> > In my opinion title should stay, specially for us Brazi

[web2py] Re: cube2py news

2010-07-19 Thread Chris S
I've been looking through cube2py and just can not figure out what the "Title" field for a wiki_page is used for. The slug is used when: -referencing a link -generating the URL (match against slug) The title is used: -In the auto generated History page So why not just always refer to a page by

[web2py] Re: web2py 1.81.4 is OUT

2010-07-18 Thread Chris S
Is there a better explanation of how RPX integrates with the native web2py now that it's included in trunk? I would very much like to read a little more on how this works. For example: *Can you use RPX in combination with local user registration? *If we use a custom auth_user table can we use thi

[web2py] Re: Response.Flash help me understand

2010-07-18 Thread Chris S
specify keepvalues changes on submission. I guess that's in the nuances of 'clearing' a form of check boxes which were pre-populated. On Jul 18, 2:09 pm, Chris S wrote: > You know what I didn't even know about the optional keepvalues > argument.  However reading on it

[web2py] Re: Response.Flash help me understand

2010-07-18 Thread Chris S
eantime, can you pass 'keepvalues=True' to your > form.accepts() ?http://web2py.com/book/default/section/7/1 > > The nice thing about doing the redirect is that you're not constantly > bothered with the resubmit form data prompt if you go forward then > back. > > On Jul 1

[web2py] Response.Flash help me understand

2010-07-16 Thread Chris S
I've used response.flash before but I'm just not following the work flow here. I'm sure I'm missing something easy so maybe someone can point out what I'm missing. I'm using a SQLFORM.facotry to generate a form which consist of several Boolean fields. It's built as a list of fields looking like:

[web2py] Re: cube2py news

2010-07-13 Thread Chris S
nly thing making me want to stick to WYSIWYG editing in HTML, though I like the look of markmin. On Jul 13, 4:06 pm, mdipierro wrote: > The first user (id==1) is editor by default (but not on GAE). Create a > group with role='editor' and make yourself member using appadmin. >

[web2py] Re: openwysiwyg?

2010-07-13 Thread Chris S
Ditto, never used it On Jul 13, 3:50 pm, Bruno Rocha wrote: > Never used it > > 2010/7/13 MikeEllis : > > > FWIW, openwysiwyg doesn't work in Chrome. > > Mike > > > On Jul 13, 1:19 pm, Jean-Guy wrote: > >> Never used it! > > >> Jonhy > > >> On 2010-07-13 13:02, mdipierro wrote: > > >> > on a vie

[web2py] Re: cube2py news

2010-07-13 Thread Chris S
g something easy, or maybe the first registered user needs to become an 'editor'? I'm not sure how anyone gets to be an editor if you have to first be one to assign the rights... On Jul 13, 12:42 pm, Chris S wrote: > I also meant to ask, does plugin_wiki just come with

[web2py] Re: cube2py news

2010-07-13 Thread Chris S
I also meant to ask, does plugin_wiki just come with cube2py? Can it also be downloaded somewhere separately? I thought it could, but I can't find it anwywhere. Can someone point me to where plugin_wiki is? On Jul 13, 12:39 pm, Chris S wrote: > I just loaded the latest trunk, and th

[web2py] Re: cube2py news

2010-07-13 Thread Chris S
I just loaded the latest trunk, and the latest cube2py at: https://cube2py.googlecode.com/hg/cube2py I cleared the datastore and memcache then pointed my browser to 127.0.0.1:8080/cube2py I get the login screen, but when I try to register I get a 404. The entire log from the initial page view to

[web2py] Re: markmin, t2, t3, cube9 etc. (important update)

2010-07-07 Thread Chris S
I've just loaded this from the mercurial source listed on google code. Running on GAE (local dev server) and using the Web2py trunk I'm getting: ReservedWordError: Cannot define property using reserved word 'parent'. If you would like to use this name in the datastore consider using a different n

[web2py] Re: sql.py error?

2010-07-01 Thread Chris S
ke somehow the same SQL Row instance is being 'reused' for > > > creating a new row > > > which I would not expect to happen. > > > > - Dave Lypka. > > > > On Jun 30, 1:03 am, Yarko Tymciurak > > > wrote: > > > > &g

[web2py] Re: Caching downloads

2010-06-30 Thread Chris S
= parse_url(request, environ) >             if static_file: >                 if request.env.get('query_string', '')[:10] == > 'attachment': >                     response.headers['Content-Disposition'] = > 'attachment' >                 resp

[web2py] Re: Caching downloads

2010-06-30 Thread Chris S
7;')[:10] == > 'attachment': >                     response.headers['Content-Disposition'] = > 'attachment' >                 response.stream(static_file, request=request) > > On 30 Giu, 15:42, Chris S wrote: > > > I'll take a look and see

[web2py] Re: How may I do that

2010-06-30 Thread Chris S
>From the book: "next is the URL to redirect to after success. If the URL contains the substring "[id]" this will be replaced by the id of the record currently created/updated." While I haven't used that specifically I would say: form=crud.create(db.atable,next=URL(r=request,f='atable_read',args=

[web2py] Re: Caching downloads

2010-06-30 Thread Chris S
sers with and > without ssl, than we can include it. > > On 30 Giu, 15:25, Chris S wrote: > > > I'm not sure I understand the comment.  Following the link it says > > that Microsoft file formats can not be opened if the cache-control is > > set to no-cache. > &

[web2py] Re: Caching downloads

2010-06-30 Thread Chris S
-control breaks IE with SSL > > http://support.microsoft.com/kb/316431 > > On 30 Giu, 13:57, Chris S wrote: > > > I've had this bookmarked and have been looking over it recently.  I > > added a c_download (cached download) function as described above to > > allo

[web2py] Re: Accessing auth_user table

2010-06-30 Thread Chris S
y', length=512, default= '', > writable=False, readable=False), >     SQLField('reset_password_key', length=512, default='', > writable=False, readable=False), >     SQLField('first_name', length=128,default=''), >     SQLField(&

[web2py] Re: Disabling registration

2010-06-30 Thread Chris S
; I am clear with first point. > > Not with second one. > > How can I make only registered users to create new usersright now > when I am logged in and click on register it redirects me to profile > page. > > Thanks > > On Jun 30, 12:03 pm, Chris S wrote: > > &

[web2py] Re: Accessing auth_user table

2010-06-30 Thread Chris S
x27;s available through my application > but I can't get any value out of auth_user table. > Is it somehow protected? > Do I need to add some extra piece of code to expose them in my > application in order to be able to acqiure any value out of them? > > Desperate searcher. &g

[web2py] Re: Caching downloads

2010-06-30 Thread Chris S
I've had this bookmarked and have been looking over it recently. I added a c_download (cached download) function as described above to allow local caching of files. The above code did not get me there though I ended up using: def c_download(): controller=request.vars.c file=request.vars.

[web2py] Re: Disabling registration

2010-06-30 Thread Chris S
Check out the book located at www.web2py.com/book you'll find a lot of useful information in it. For 1: Section 8.1 talks about restricting registration http://www.web2py.com/book/default/section/8/1?search=Restrictions+on+registration For 2: Section 8.2 talks about the settings built into Auth.

[web2py] Re: sql.py error?

2010-06-29 Thread Chris S
ed it allowed me to add duplicate enteries). The error has been the same the whole time and goes away if gql.py is reverted. Hope that wrapper function in global.py doesn't confuse anyone it's not part of this problem I don't believe. On Jun 29, 5:13 pm, mdipierro wrote: > I

[web2py] Re: Accessing auth_user table

2010-06-29 Thread Chris S
I don't guess I follow. Isn't that the same as: def userexist(namecheck): if db(db.auth_user.username==namecheck).count() > 0: return 'yes' else: return 'no' So I"m saying your querry should be: query = (db.auth_user.username==username) Hope that helps On Jun 29, 5:34 p

[web2py] Re: sql.py error?

2010-06-29 Thread Chris S
ion in a single function call. On Jun 29, 3:27 pm, Chris S wrote: > I'm actually not sure how to set break points.  I'm using Eclipse so > I'm sure there's a way but while I'm educating myself.  Here's all you > should need to know if the above isn't d

[web2py] Re: sql.py error?

2010-06-29 Thread Chris S
7;m still learning python/web2py and this one's a bit above me. On Jun 29, 3:01 pm, Yarko Tymciurak wrote: > can you give a complete example necessary to reproduce? > > Alternatively, you can debug yourself:  set a breakpoint at gluon/ > tools.py::Auth:add_permission() > > and

[web2py] Re: sql.py error?

2010-06-29 Thread Chris S
Crap that should read: To reproduce: def test(): auth.add_permission(id,'name','table1') auth.add_permission(id,'name','table2') return I'm trying to assign two different permissions to the same group in a single function to get the error. O

[web2py] Re: sql.py error?

2010-06-29 Thread Chris S
: def test(): auth.add_permission(id,'name','table1') auth.add_permission(id,'name','table1') return Either one of the above can be run by itself, but both in the same controller will fail with the above error on the 2nd permission. On Jun 29, 1:35 pm, Chris S wrote: &g

[web2py] sql.py error?

2010-06-29 Thread Chris S
I think the most recent update to trunk I've found a spot in sql.py where functionality is different though it might be intended. In the last stable release you could make a call: auth.add_permission(group.id,'name','table_name') You could do this with out first checking for it's existence alread

[web2py] Re: models for auth system

2010-06-29 Thread Chris S
Gluon/tools.py You'll find the Auth class in there. In auth is defin_tables() where you'll see the default tables. You'll notice it only defines the defualts if you haven't specified a custom table in it's place. That's where I looked to figure out how to define custom fields in the Auth table.

[web2py] Re: Routes.py on GAE

2010-05-25 Thread Chris S
outes.py? > > On May 16, 1:00 am, Chris S wrote: > > > > > I've updated my code and run it again.  Sorry for the delay last time > > I downloaded a web2py trunk it was in Subversion.  While it didn't > > take me long to get it in Mercurial it did trig

Re: [web2py] Re: Routes.py on GAE

2010-05-25 Thread Chris S
Any news on this bug? I havent seen anything. Chris S wrote: > Apparently it doesn't copy/paste correctly. The second routes.py that > I used kept the entire routes_in in a single line. > > On May 15, 10:00 am, Chris S wrote: > > I've updated my code and run it agai

[web2py] Re: Routes.py on GAE

2010-05-15 Thread Chris S
Apparently it doesn't copy/paste correctly. The second routes.py that I used kept the entire routes_in in a single line. On May 15, 10:00 am, Chris S wrote: > I've updated my code and run it again.  Sorry for the delay last time > I downloaded a web2py trunk it was in Subve

[web2py] Re: Routes.py on GAE

2010-05-15 Thread Chris S
favicon.ico'),('/ robots.txt', '/init/static/robots.txt')) routes_out = () However it gave the exact same error as above. Hope this helps. On May 13, 12:25 am, Dane wrote: > Looks like same problem I've been having. > > On May 10, 5:23 pm, Chris S wrote: > &

[web2py] Re: Routes.py on GAE

2010-05-12 Thread Chris S
a the next couple of days. On May 11, 5:51 pm, mdipierro wrote: > I just posted a new gluon.rewrite.py in trunk that should report more > details about your error. > > Massimo > > On May 11, 7:53 am, Chris S wrote: > > > The routes.py file that I am attempting to

[web2py] Re: Routes.py on GAE

2010-05-11 Thread Chris S
st it we can help you isolate the problem. > > Massimo > > On May 10, 4:23 pm, Chris S wrote: > > > Does routes.py work on GAE?  I've recently deployed an app which used > > the 5-line routes.py from the book for routing robots.txt and > > favicon.icon.  

[web2py] Routes.py on GAE

2010-05-10 Thread Chris S
Does routes.py work on GAE? I've recently deployed an app which used the 5-line routes.py from the book for routing robots.txt and favicon.icon. I just wanted to get rid of that 100% error rate on those two files. I recevied the following message. Only after removing routes.py again did the app

[web2py] Re: New to web app development -- is web2py a good choice

2010-05-06 Thread Chris S
I've heard it said that the documentation for web2py isn't as good as some other options. I'm not sure if that's true with the new revisions to the available online book, but I am sure anyone saying that does not utilize this group. I've never seen support for anything as good as this google grou

[web2py] Re: GAE dynamic field

2010-05-03 Thread Chris S
ere describing? I've just gotten started and would hate to build on an initially design with poor efficiency. On May 3, 1:18 pm, mdipierro wrote: > On May 3, 1:15 pm, Chris S wrote: > > > I'm sure there's a way to do this, but I'm not using the proper search >

[web2py] GAE dynamic field

2010-05-03 Thread Chris S
I'm sure there's a way to do this, but I'm not using the proper search terms. I'm wanting to use GAE but want to avoid having to re-upload the app just to change a bit of text on the site. My first thought was to simply store any dynamic text in a table and edit the table entry. This works great

[web2py] Re: Error Tickets on GAE local

2010-05-01 Thread Chris S
ppserver has a -d option. Perhaps that helps. > > massimo > > On May 1, 3:49 pm, Chris S wrote: > > > > > I've downloaded the latest web2py and can't seem to figure out how to > > view tickets on the local GAE server.  Back around version 1.6 > > som

[web2py] Error Tickets on GAE local

2010-05-01 Thread Chris S
I've downloaded the latest web2py and can't seem to figure out how to view tickets on the local GAE server. Back around version 1.6 something I was able to view the Appadmin version of tickets, but not anymore. I'm getting an error right now that says: "Internal error Ticket issued: unrecoverable

[web2py] Missing ")" in GAE memcache template

2010-04-30 Thread Chris S
This might already be known, and I'm honestly not 100% sure I'm reporting it in the right place. If this is wrong please point me to where I should report these issues in the future. I'm not nearly competent enough to find bugs most of the time. In Applications/Welcome/Models/db.py: # session.c

[web2py] Re: GAE Import Ticket

2010-04-15 Thread Chris S
oogle in their logs and those seem to be available forever. > > good luck! > > christian > > On Apr 14, 12:57 pm, Chris S wrote: > > > Just to be certain I have upgrade to the latest web2py and nothing has > > changed. > > > On Apr 14, 2:26 pm, Chris S wro

[web2py] Re: GAE Import Ticket

2010-04-14 Thread Chris S
Just to be certain I have upgrade to the latest web2py and nothing has changed. On Apr 14, 2:26 pm, Chris S wrote: > Oh, I'm running web2py Version 1.66.2 I believe.  I haven't worked on > this project since that was the current version.  Updating shouldn't > break anyt

[web2py] Re: GAE Import Ticket

2010-04-14 Thread Chris S
Oh, I'm running web2py Version 1.66.2 I believe. I haven't worked on this project since that was the current version. Updating shouldn't break anything right? If so I can give that a shot. On Apr 14, 2:24 pm, Chris S wrote: > Sure thing. > > In my d

[web2py] Re: GAE Import Ticket

2010-04-14 Thread Chris S
;t define these two models it's a bit different. Chris On Apr 14, 2:12 pm, mdipierro wrote: > This is not a Python error > > > KindError: No implementation for kind > > can we see the complete traceback and the code that triggers it? > > On Apr 14, 1:40 pm, Chris S wrote: >

[web2py] GAE Import Ticket

2010-04-14 Thread Chris S
I'm trying to use a function that I can call via a cron job to remove old tickets and sessions. When I try to call the function on the ticket I get "KindError: No implementation for kind". I suspect this is because I need to import the model for the Tickets, but I can't find where it's defined.

[web2py:34627] Re: Can't load web2py GAE on version 1.71.1

2009-11-04 Thread Chris S
Oh good it's not me then :) On Nov 4, 3:42 pm, mdipierro wrote: > oops. I will repost 1.71.2 in a minute. I made a mistake. > > Massimo > > On Nov 4, 3:22 pm, Chris S wrote: > > > I'm at a loss here.  I saw there were GAE changes for version 1.71.1 > >

[web2py:34625] Re: Can't load web2py GAE on version 1.71.1

2009-11-04 Thread Chris S
------- I was sure it was simple last time. Just run web2py, launch with launcher, visit in web browser. On Nov 4, 3:22 pm, Chris S wrote: > I'm at a loss here.  I saw there were GAE changes for version 1.71.1 > and wanted to see what it would take to get my project upgraded.  To

[web2py:/] Can't load web2py GAE on version 1.71.1

2009-11-04 Thread Chris S
I'm at a loss here. I saw there were GAE changes for version 1.71.1 and wanted to see what it would take to get my project upgraded. To start with I've just downloaded the web2py_src, I ran 'python web2py.py' and it starts up building the applications. After that I add the web2py folder to my G

[web2py:34216] Re: Google Adsense

2009-10-30 Thread Chris S
remove that col-span attribute so I could use div blocks as I wanted. On Oct 30, 11:35 am, mdipierro wrote: > try > > python web2py/scripts/cleanhtml.py /path/to/layout.html > > it will help you find orphan tags. > > On Oct 30, 10:51 am, Chris S wrote: > > > I've a

[web2py:34210] Re: Google Adsense

2009-10-30 Thread Chris S
I've apparently got some orphaned HTML tags, so I'll get that all cleaned up. I'm sure that's what's causing the problem. On Oct 30, 10:33 am, Chris S wrote: > I'll see how I can best explai

[web2py:34205] Re: Google Adsense

2009-10-30 Thread Chris S
hat changes anything, now that I know it 'should' work and it's a matter of my implementation. On Oct 30, 10:24 am, mdipierro wrote: > works for me. > Where did you put it exactly? Perhaps is a place hidden by the css? > > On Oct 30, 9:56 am, Chris S wrote: > > &g

[web2py:34196] Google Adsense

2009-10-30 Thread Chris S
I was trying to ad the google search bar from Adsense where I could search my web2py page with google. The way it works after running through setup options you're given a code snippet to past into any page you want. I figured it would be easy but It's not working 100% for me yet. The code googl

[web2py:34104] Re: Dynamically built Form

2009-10-29 Thread Chris S
actory(*[Field(item) for item in list]) > > On Oct 29, 2:41 pm, Chris S wrote: > > > That's great, I'm sure I'll find all sorts of places that's useful now > > that I know about it. > > Now that I can dynamically build my Fields for my list, I've

[web2py:34103] Re: Dynamically built Form

2009-10-29 Thread Chris S
Oh great thats even cleaner, can I add validators to a form built this way while you're here? On Oct 29, 3:04 pm, mdipierro wrote: > or in one line > > form=SQLFORM.factory(*[Field(item) for item in list]) > > On Oct 29, 2:41 pm, Chris S wrote: > > > That's g

[web2py:34099] Re: Dynamically built Form

2009-10-29 Thread Chris S
ement not just appended to the list after it. Any suggestions? On Oct 29, 10:43 am, Jonathan Lundell wrote: > On Oct 29, 2009, at 8:36 AM, Chris S wrote: > > > > > lol, well I've been all around that.  Thank you so much, works just > > fine now. > > > Is there

[web2py:34062] Re: Dynamically built Form

2009-10-29 Thread Chris S
ierro wrote: > form=SQLFORM.factory(*[fields[num] for num in range(len(fields))]) > > On Oct 29, 10:25 am, Chris S wrote: > > > I've been trying to get a form built where the number of Fields are > > dynamic.  I was successful with the plan form by using: > > ---

[web2py:34058] Dynamically built Form

2009-10-29 Thread Chris S
I've been trying to get a form built where the number of Fields are dynamic. I was successful with the plan form by using: Form Implementation fields=[] for item in list: fields.append(item) fields.append(INPUT(_name=item,requires=IS_INT_IN_RANG

[web2py:32969] Re: Cron table deletion on GAE

2009-10-15 Thread Chris S
e N is the level of > concurrency you set for your task queue. > > Robin > > On Oct 14, 10:09 am, Chris S wrote: > > > I'm fine with having to Cron the job.  I would just like to manually > > limit the number deleted in a single cron.  That way I won't get a

[web2py:32883] Re: Cron table deletion on GAE

2009-10-14 Thread Chris S
de the web app but I do > not know how. > > Massimo > > On Oct 14, 9:53 am, Chris S wrote: > > > That was 'better' but same problem.  With the change you've given it > > still errors out but 199 deletions were performed (previously nothing > > was de

[web2py:32879] Re: Cron table deletion on GAE

2009-10-14 Thread Chris S
tore_in_db created_datetime=request.now) File "/base/data/home/apps/my-app/1.337029206592219112/gluon/contrib/ gql.py", line 240, in insert self._db['_lastsql'] = 'insert' File "/base/data/home/apps/my-app/1.337029206592219112/gluon/ sql.py", line 1241, in __geta

[web2py:32878] Re: Cron table deletion on GAE

2009-10-14 Thread Chris S
o wrote: > Not sure. Try this: > > myset=db(db.item2.id>0) > while myset.delete(): pass > > Massimo > > On Oct 14, 9:29 am, Chris S wrote: > > > Setting up Cron jobs on GAE is simple enough.  But I'm not > > understanding something with creating a cr

[web2py:32875] Cron table deletion on GAE

2009-10-14 Thread Chris S
Setting up Cron jobs on GAE is simple enough. But I'm not understanding something with creating a cron that can delete table entries. I was attempting to make the cron remove all items in a selection with: db.delete(sqldb.item2) return 'Delete complete' The problem is it fetches the 1000 limit

[web2py:32555] Re: Midphase + web2py how do I set it up?

2009-10-09 Thread Chris S
ro wrote: > You may need this:http://www.web2py.com/AlterEgo/default/show/219 > > You may also have problems with appliances that use 2.5 syntax but > nothing that you cannot find a way around to. The source of web2py is > 2.4 compliant. > > Massimo > > On Oct 5, 4:39 pm, Chris S w

[web2py:32254] Re: Midphase + web2py how do I set it up?

2009-10-05 Thread Chris S
art paying hosting fees myself so swapping isn't an option though I would look for a different host if I decide I prefer the non- google option. On Oct 5, 10:03 am, Álvaro Justen [Turicas] wrote: > On Mon, Oct 5, 2009 at 10:15, Chris S wrote: > > > I heard back from tech support

[web2py:32237] Re: Midphase + web2py how do I set it up?

2009-10-05 Thread Chris S
wrote: > On Fri, Oct 2, 2009 at 10:58, Chris S wrote: > > > Just wanted to update here for anyone else that tries to implement on > >Midphasehosting. > > > 1 - The RewriteBase for me needed to be: > > RewriteBase /home//public_html/ > > You should not use a &quo

[web2py:32105] Re: Midphase + web2py how do I set it up?

2009-10-02 Thread Chris S
This is on a shared host. On Oct 2, 9:17 am, DenesL wrote: > Hi Chris, > > Interesting... are you using shared hosting or dedicated? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to t

[web2py:32096] Re: Midphase + web2py how do I set it up?

2009-10-02 Thread Chris S
x27;t installed but it is supported. I put in a ticket to have python installed on our host, and hopefully if the customer service rep was right I'll be updating you with more info once that's done. On Oct 1, 10:26 am, Chris S wrote: > I've got a friend that's letting me

[web2py:32011] Midphase + web2py how do I set it up?

2009-10-01 Thread Chris S
I've got a friend that's letting me try out web2py on his unlimited host so I can compare to the GAE. However, I'm just not clear on how to get this setup. He's using midphase and I have cPanel and FTP access to the site. I've uploaded the contents of my web2py folder into the Public_html/ myfol

[web2py:31813] Re: Database Select?

2009-09-28 Thread Chris S
erformed. What's the prefered 'trick' to make this run on GAE? On Sep 12, 7:01 pm, Chris S wrote: > Hu, some more troubleshooting has shown. > > rows=sqldb(sqldb.item.idnum.belongs(idnumList)).select > (sqldb.item.idnum,sqldb.item.name) > Doesn't perform as I think i

[web2py:31810] Re: Web2py on Sharedhost

2009-09-28 Thread Chris S
Would this be the same for FastCGI? Simply rename and add a handler? I've been trying GAE and would really like to try out a shared host with FastCGI instead. The GAE's lack of 'belongs in' type command is killing me. On Sep 28, 4:14 pm, Thadeus Burgess wrote: > Quite easily actually, some too

[web2py:31356] Re: GAE Uploading data.

2009-09-19 Thread Chris S
'time' variables in the table. I'm open to suggestions. On Sep 19, 8:02 pm, Robin B wrote: > On Sep 19, 6:13 pm, Chris S wrote: > > > From what I've read enabling billing doesn't increase the CPU time > > just some of the other quotas.  It's

[web2py:31336] Re: GAE Uploading data.

2009-09-19 Thread Chris S
with this yesterday and in a matter of a few > > minutes (delete all, re-upload) was over my quota.  Because of that > > I'd really like to avoid having to change data in the Datastore as > > much as I can.  With 20K+ items you don't get a lot of 'do-overs'. &

[web2py:31333] GAE Uploading data.

2009-09-19 Thread Chris S
Background: Working with an app on GAE currently I've run across a slight issue with uploading data into my app. I initially tried to download my tables to CSV from my development machine then use simply re-upload them into GAE. It's been a while since I tried that but it was timing out. Proble

[web2py:31227] Re: Deployment on GAE (appadmin)

2009-09-17 Thread Chris S
ase check trunk. now appadmin should work on GAE out of the box. It > > was a bug that it did not. > > > On Sep 16, 9:08 pm, Chris S wrote: > > > Cool thanks.  Is there a workaround you would suggest for now for > > > people like me that are testing/learning with the

[web2py:31162] Re: Deployment on GAE (appadmin)

2009-09-16 Thread Chris S
's in it. On Sep 16, 8:51 pm, mdipierro wrote: > The current shell does not work on GAE for one reason. Shell requires > to maintain its state between requests and its state is not > serializable therefore it cannot be maintained on GAE. I will look > more into this. > >

[web2py:31145] Re: Deployment on GAE (appadmin)

2009-09-16 Thread Chris S
for this (and admin really for all of my development). On Sep 16, 4:26 pm, mdipierro wrote: > You will see that even with those lines commented, if you logout from > google or if you login with a different google account you will not > have access to appadmin. > > On Sep 16, 2

[web2py:31132] Re: Deployment on GAE (appadmin)

2009-09-16 Thread Chris S
nly me? I still can't get to /admin and I'm guessing if I find another call to check_credentials I could do the same thing to access it. On Sep 16, 2:02 pm, Chris S wrote: > That gives the following error: for /welcome/appadmin/index > In FILE: /base/data/home/apps/aionprofess

[web2py:31130] Re: Deployment on GAE (appadmin)

2009-09-16 Thread Chris S
27;m currently uploading to. That's the same error the admin application gives when I try to access it. On Sep 16, 1:55 pm, mdipierro wrote: > Try remove > > if remote_addr not in hosts: >     raise HTTP(400) > > in youapp/controllers/appadmin > > Massimo > >

  1   2   >