[web2py] Re: Upload to Static folder? Serve File without streaming?

2010-07-02 Thread Scott
With regards to storing the file, can you still use regex to validate the filename if you choose to utilize this direct upload method? I'm working on a project where a requirement is to store the files as-is on the filesystem as they will be utilized by other programs. On Jul 2, 8:27 pm, mdipierr

[web2py] Re: Admin app (or much of it) can work on appengine

2010-07-02 Thread Scott
That would be fantastic!! If you need help, I'd be happy to lend a hand...

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

2010-07-08 Thread Scott
I just checked out the cube2py repository from code.google.com and am attempting to run it on the Source branch of web2py 1.79.2 (2010-06-08 22:45:26). Attempting to run it generates this error: Traceback (most recent call last): File "C:\Users\scott\Documents\workspace\web2py\

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

2010-07-08 Thread Scott
om the development repository (on google > > code) > > > -Mathieu > > > On Thu, Jul 8, 2010 at 16:40, Scott wrote: > > > I just checked out the cube2py repository from code.google.com and am > > > attempting to run it on the Source branch of web2py 1.79.2

[web2py] Re: fedora experts?

2010-07-09 Thread Scott
Line 28: change 'you' to 'yum' 28c28 < you install python2.5 --- > yum install python2.5 Other than that, I can test the script on a RedHat system tomorrow... Cheers! On Jul 9, 9:26 am, mdipierro wrote: > I managed to wrote this script > > http://code.google.com/p/web2py/source/browse/scripts/s

[web2py] Re: web2py 1.93?

2010-07-09 Thread Scott
Massimo, Is it in the repository hosted on Google Code? I just checked it out and it's showing as version 1.79.2 (2010-06-08 16:40:21) in the Admin. Thanks! On Jul 9, 9:36 am, Massimo Di Pierro wrote: > I am planning to release the nightly build as stable 1.93 on Monday.   > Please check it ou

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

2010-07-09 Thread Scott
I think this should replace the Welcome application and the documentation should be integrated into the web2py book. I'm impressed with the complete rewrite! I like the way that you get web2py-admin-esque functionality without having to use the admin directly, and it all works through Google App

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

2010-07-10 Thread Scott
Thank you Massimo! My comments are below. > > - Can the tag cloud be made hyper-linkable?  That is to say, clicking > > on a word in the tag cloud might show a list of relevant tagged pages. > Can be done but right now there is a logic problem. Which pages should > the tags link to? I guess wiki

[web2py] Re: openwysiwyg?

2010-07-13 Thread Scott
Never used it.

[web2py] Re: cube2py news

2010-07-13 Thread Scott
Massimo, I'll take a look at the arguments and instructions tomorrow and give you a report. Cheers, --Scott On Jul 13, 5:49 am, mdipierro wrote: > Please checkout cube2py again. Now it has two new features: > > 1) a button [widget builder] that allows you to build widgets from

[web2py] Re: SOAP Access

2010-07-14 Thread Scott
I use suds to authenticate users through a Web service call. I don't have a need at this time to expose a server interface, but I could see where it would be useful to add that functionality to the existing XMLRPC, RSS, plugins, etc. That having been said, client interfaces are a lot easier to im

[web2py] Profiler Suggestion

2010-07-16 Thread Scott
In the current trunk I propose modifying line 549 to read as follows: stat.strip_dirs().sort_stats("time").print_stats(80) This will cause the profile output to be sorted by the "tottime" column and limit the output to the first 80 lines. I follow a methodology similar to Google's in that I atte

[web2py] Re: Profiler Suggestion

2010-07-17 Thread Scott
That would help, wouldn't it? :-) gluon/main.py, under def responder2(s, h). On Jul 17, 3:27 am, mdipierro wrote: > which file is this? > > On 16 Lug, 20:07, Scott wrote: > > > > > > > > > In the current trunk I propose modifying line 549 to read as fo

[web2py] Re: cube2py news

2010-07-17 Thread Scott
s the type of transition, e.g. fade, etc. (***look @ code!!) tag_cloud: Embeds a tag cloud update: * hidden_fields is a list of comma separated fields On Jul 13, 10:46 pm, Scott wrote: > Massimo, > > I'll take a look at the arguments and instructions tomorrow and give > yo

[web2py] Re: The one video you should watch

2010-07-20 Thread Scott
It sounds like a cooling fan to me. Try an external microphone and see if the fan noise persists? On Jul 20, 6:08 pm, mdipierro wrote: > I wish I knew how. I do not know where the z comes from. > > On Jul 20, 4:07 pm, Mengu wrote: > > > > > > > > > great screencast but you should really sto

[web2py] Controller result "escaped" - impacts sparklines web2py slice

2010-07-20 Thread Scott
All, It's been a few months since I've looked at the sparklines web2py slice (http://web2pyslices.com/main/slices/versions/79/169 or http://groups.google.com/group/web2py/browse_thread/thread/2a6a7b2cbfe97278/). It seems that the latest stable and dev builds break the slice because the controller

[web2py] memcache error

2010-07-21 Thread Scott
following ticket is generated: Traceback (most recent call last): File "/home/scott/Projects/web2py/gluon/main.py", line 391, in wsgibase session._try_store_in_db(request, response) File "/home/scott/Projects/web2py/gluon/globals.py", line 361, in _try_store_in_db

[web2py] Re: memcache error

2010-07-21 Thread Scott
One other thing I've noted is that by setting this, attempting to view /welcome/appadmin/ccache will generate the following ticket: Traceback (most recent call last): File "/home/scott/Projects/web2py/gluon/restricted.py", line 178, in restricted exec ccode in environmen

[web2py] Re: memcache error

2010-07-21 Thread Scott
}} On Jul 21, 8:43 am, mdipierro wrote: > I do not remember who wrote that code but I just looked at it and I am > bit confused by it. > Anyway, I think I have a fix. Please try replace gluon/contribmemcache/ > memcache.py with this file: > > http://web2py.googlecode.co

[web2py] Re: memcache error

2010-07-21 Thread Scott
ding Memcache stats to the appadmin controller as a separate task. On Jul 21, 10:53 am, mdipierro wrote: > Please try trunk again and let me know. > > On Jul 21, 9:11 am, Scott wrote: > > > > > > > > > Massimo, > > > That fixed the " > &

[web2py] Re: memcache error

2010-07-21 Thread Scott
Massimo, I just checked out the trunk and I'm seeing an issue preventing the loading of the Welcome app: File "C:\Users\scott\Documents\workspace\web2py-dev\gluon\main.py", line 384, in wsgibase if static_file: UnboundLocalError: local variable 'static_file' refere

[web2py] Re: memcache error

2010-07-21 Thread Scott
Massimo, please add the import: from gluon.cache import CacheAbstract to the top of gluon\contrib\memcache\__init__.py. Thanks! On Jul 21, 7:24 pm, Scott wrote: > Massimo, > > I just checked out the trunk and I'm seeing an issue preventing the > loading of the Welcome a

[web2py] Re: please explain this twitter post

2010-07-21 Thread Scott
Any chance you might publish the paper on the web2py site? On Jul 21, 5:54 pm, mdipierro wrote: > Oops. It seems the link got > truncatedhttp://www.computer.org/portal/web/csdl/doi/10.1109/MCSE.2010.97

[web2py] Re: rocket performance issues

2010-07-24 Thread Scott
Please allow me to preface my comments: I have nothing against Rocket; my opinions come from years of experience with Java EE deployments. I think raising the max_threads to 1024 is a good idea. However, my opinion is that Rocket alone should not be used for a production deployment; much as I wou

[web2py] Re: new in trunk: clone.py

2010-07-24 Thread Scott
Personally, I think this is a great idea particularly when designing Intranet sites. This makes it very easy to implement your company's look and feel without having to go through a lot of hoops. I say put in a warning or caveat that must be accepted when using the script to absolve web2py of lia

[web2py] Re: Step-by-step tutorial on getting Cube2py up and running?

2010-07-24 Thread Scott
What is the admin group name? That is, the group to create where you can add users who can edit existing pages. Thanks! On Jul 12, 11:47 am, mdipierro wrote: > I posted 1.80.1 stable. If you just download that you can install the > latest cube2py from here using web2py admin > > http://www.web2

[web2py] Re: Recent change to string escaping breaks dynamic javascript

2010-07-24 Thread Scott
I think the JSON helper function should be implemented. This logic should be contained within the controller and not within the view as I would deem it business logic and not rendering logic. On Jul 24, 7:52 pm, mdipierro wrote: > Should we have a JSON helper (same as you JD)? > > On Jul 24, 1:1

[web2py] Re: book revision

2010-07-24 Thread Scott
Cube2py explanation along with examples for all of the widgets and how to implement. Since we're headed in that direction... :) On Jul 24, 9:08 pm, mdipierro wrote: > Thanks. this is very helpful > > On Jul 24, 7:57 pm, Jonathan Lundell wrote: > > >http://code.google.com/p/web2py-book/wiki/Book

[web2py] Re: Step-by-step tutorial on getting Cube2py up and running?

2010-07-24 Thread Scott
Thanks! On Jul 24, 9:22 pm, Bruno Rocha wrote: > The admin group is 'editor' > > but you can change that login in plugin_wiki.py model > > I had to change it to run fine on GAE. > > 2010/7/24 Scott : > > > > > What is the admin group name?  That

[web2py] Re: Recent change to string escaping breaks dynamic javascript

2010-07-25 Thread Scott
t should be available, like all the > other helpers, in either context. > > Whether we implement it or not,  I think the technique of passing python > objects into javascript at render time with json serialization is quite > useful and merits an example in the next revision of the book. > >

[web2py] cube2py system (meta) page example request

2010-07-28 Thread Scott
Massimo provided excellent examples of meta-menu and meta-code on Vimeo. However, could someone post examples of meta-header, meta- sidebar, and meta-footer? Thanks!

[web2py] Re: "Why I hate Django" by Cal Henderson

2010-07-30 Thread Scott
I do not agree with item 1. Session data should never be stored client-side as it opens a rather large attack vector. The only thing which should be stored client-side is the session token in a secure, HTTPOnly cookie (which web2py currently supports). If cookies are disabled, a hidden POST fiel

[web2py] Re: fun with metaclasses

2010-07-31 Thread Scott
I support community contributions but there still needs to be an "editor" or someone ultimately responsible for the changes. On Jul 31, 11:27 am, VP wrote: > I completely support these ideas.  It seems the book is Massimo's > effort, not a community's effort.  Documentation needs to be a > commun

[web2py] Re: "Why I hate Django" by Cal Henderson

2010-07-31 Thread Scott
user. > > >> If the session is stored client side and the attackers hijacks the > >> cookie, he can tamper with the data in the session and, depending on > >> what the session cookie stores, may get access to more than data of > >> the compromised user. > >

[web2py] Re: "Why I hate Django" by Cal Henderson

2010-07-31 Thread Scott
ss than the 4k limit). On Jul 31, 8:38 pm, Thadeus Burgess wrote: > @Scott, I think your argument is based on assuming a bad programming > design. If you have any type of data that needs to be secure to that > detail, I hope to god your not storing them in the session in the > first place

[web2py] Re: book 3rd edition call of help

2010-08-01 Thread Scott
Regarding the article, this was started up in a second thread: http://groups.google.com/group/web2py/browse_thread/thread/1142aa8ab1de80cb Regarding the IDE, my preference is Wing IDE for its superior debugging capabilities and there are detailed instructions on using it with web2py here: http://w

[web2py] Re: ARTICLE: The good and bad about web2py

2010-08-01 Thread Scott
Here are my thoughts, point by point: - web2py does support unit testing as it uses python code. I think the article author means you cannot currently set up unit tests within the administration console. You can configure tests as much or as little as you like from the command line. - I think t

[web2py] Re: ARTICLE: The good and bad about web2py

2010-08-01 Thread Scott
. On Aug 1, 4:36 pm, Scott wrote: > Here are my thoughts, point by point: > > - web2py does support unit testing as it uses python code.  I think > the article author means you cannot currently set up unit tests within > the administration console.  You can configure tests as much or

[web2py] Re: ARTICLE: The good and bad about web2py

2010-08-01 Thread Scott
I knew IntelliJ had a few plugins for PHP, Ruby, etc. but didn't think the Python plugin made it out of beta. I'll go take another look. Thanks! On Aug 1, 5:08 pm, "Robert O'Connor" wrote: > -Rob > > On Sun, Aug 1, 2010 at 4:42 PM, Scott wrote: > > I mi

[web2py] Re: GAE precompilation

2010-08-05 Thread Scott
Richard, I've tested this with web2py and did notice a slight performance increase with the default welcome application and cube2py. I noticed a larger increase with math intensive routines. I've submitted a patch to Massimo so look for it soon in the web2py trunk on Google Code. Thanks! On Ju

[web2py] Re: GAE precompilation

2010-08-05 Thread Scott
Also of note, since I saw a mention of this on other threads: If you are deploying to GAE, do *not* compile the application within the web2py admin console. Instead, rely on the GAE app.yaml python precompilation as mentioned above. On Aug 5, 9:06 pm, Scott wrote: > Richard, > > I&

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

2010-08-05 Thread Scott
Cross post: https://groups.google.com/group/web2py/browse_thread/thread/d2b314ef36abda8c

[web2py] Re: login method mappings

2010-09-15 Thread Scott
information, such as first and last name. I'd like to set up a get_user method which would call this second Web service to populate the user name. To do that, I need to pull the 'username' variable, I suppose from the auth object? I appreciate your help. --Scott On Aug 10, 8

[web2py] Re: login method mappings

2010-09-15 Thread Scott
): client = SoapClient(wsdl=os.path.abspath(os.path.join('applications/test/ private/UserProfile.wsdl'))) response = client.getUserProfile(Userid=auth.user.username) return dict(first_name = str(response.firstname), last_name = str(response.lastname))

[web2py] Re: gae memcace clear?

2010-09-20 Thread Scott
If you are interested in caching view or controller output, please check the examples section: http://web2py.com/examples/default/examples#cache_examples Notice the timers which indicate how long before the view or controller output is re-rendered. You can also check out appadmin.py included wit

[web2py] Re: Memory usage

2010-09-21 Thread Scott
he? This would save on database reads/writes and offload some of your memory requirements. I know Webfaction supports memcached. Cheers, --Scott On Sep 21, 9:47 am, Johann Spies wrote: > Yesterday for the first time I deployed web2py on a commercial > platform (Webfaction) and today I

[web2py] Re: GAE appstats problem in app.yaml

2010-09-25 Thread Scott
What version of the GAE development server are you using? On Sep 24, 5:55 am, mdmcginn wrote: > GAE appstats no longer works in app.yaml for 1.85.3 and some earlier > versions (at least using dev_appserver.py) > > This URL gets response code > 500:http://localhost:8080/_ah/login?continue=http://

[web2py:17496] pdf/doc attachments work in sqlite, not in GQL

2009-03-04 Thread Scott
[-1]}} {{=A('link to abstract ['+type+']',_href=URL (r=request,f='download',args=[item.abstract_file]))}} {{pass}} No errors, appears that the file is not being uploaded properly (the view returns None, indicating that neith

[web2py] Editing the auth table schema

2012-06-30 Thread Scott
I'm trying to remove the fields 'first_name' and 'last_name' from the auth_user database, or at least stop them from showing up on the registration forms and such. I've tried the following in db.py: db.auth_user.first_name.readable = db.auth_user.first_name.writable = False I also placing th

[web2py] webgrid- column width

2011-05-02 Thread scott
Just started with web2py, and got the webgrid module running immediately. very impressive. How can I display the columns widths so they reflect the datatypes (and lengths) in the table. Currently, the default view is only about 3 columns across the screen

[web2py] Re: Consuming a web2py web service in C#?

2011-06-01 Thread Scott
This is what I have concluded... The problem is that many "Windows" based JSON-RPC serializers (Including jayrock) and proxy's append a 3 byte UTF-8 BOM (Byte Order Mark) to the beginning of the resulting encoded JSON text that is sent in the body of the HTML request. Note that this is not a "feat

[web2py] How to do 3 (hopefully not too weird) things w/ my DB definition in models

2010-10-05 Thread Scott Hunter
there a way to tell when a define_table has to actually create the table, so I can stuff in an initial record? I suppose I could do a query after the definition, but then it will get done for every request. Thanks in advance, Scott Hunter P.S. I'm currently using v1.65.10; if a newer versio

[web2py] Re: How to do 3 (hopefully not too weird) things w/ my DB definition in models

2010-10-05 Thread Scott Hunter
the only time you're assured there would be no conflict. I may be mistaken about being able to add UNIQUE=true once the field already exists. I'll check out the latest version, and see if that addresses the issue. Any ideas about the initialization questions? - Scott On Oct 5,

[web2py] Re: How to do 3 (hopefully not too weird) things w/ my DB definition in models

2010-10-06 Thread Scott Hunter
evaluated. - Scott On Oct 6, 9:36 am, mdipierro wrote: > Perhaps I do not understand the question. If you add a field you know > you are adding it. If you need to initialize it with a function then > you have to loop over all records and to an update_record. Are you > trying to p

[web2py] Re: How to do 3 (hopefully not too weird) things w/ my DB definition in models

2010-10-06 Thread Scott Hunter
Perfect, and checking for "CREATE TABLE", I can address #3. Thanks, Scott On Oct 6, 10:00 am, mdipierro wrote: > Now I understand. There is not api exposed to do this but you can with > a trick > > if 'ADD fieldname' in db._lastsql: >     do_whatever_you

[web2py:23227] Re: Auth forwarding

2009-06-03 Thread Scott Hunter
dated 1/8/2009. Scott On May 13, 4:23 pm, mdipierro wrote: > Thanks Fran. This was your patch! > > On May 13, 3:22 pm, Fran wrote: > > > > > On May 13, 7:45 pm, ScottHunter wrote: > > > > Version 1.61.4 (2009-04-21 10:02:50) > > > Fixed on 2009-05

[web2py:23228] Re: Auth forwarding

2009-06-03 Thread Scott Hunter
ed, and is building the login page; why should it matter HOW it was requested?) Thanks for any help, Scott On Jun 3, 5:21 pm, Scott Hunter wrote: > I've just downloaded the MacOSX v 1.63.3, and its exhibiting this same > problem.  I had gotten an earlier copy through launchpad, and the

[web2py:27983] Hacking the Windows version of web2py.py

2009-08-04 Thread Scott Hunter
In the source & Mac-standalone versions of web2py, one can (and I did :)) change/replace the file web2py.py in order to modify the server application. (In my case, I'm adding a list of server IPs to choose from and spawning an extra process; the latter could presumably be done elsewhere, but it i

[web2py:29630] web2py complaints & rebuttals

2009-08-29 Thread Scott Hunter
e (called Storage) in order to circumvent the FORM and SQLFORM issues in #5 above Response #7: ? Any help would be appreciated. - Scott --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group.

[web2py:29984] web2py testing example(s)

2009-09-03 Thread Scott Hunter
lterEgo (#213) which sets things up using unittest, but I'm finding it hard to generalize from this one example. Thanks in advance, Scott --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users"

[web2py:33515] Problem w/ migration

2009-10-23 Thread Scott Hunter
I've added the following field to the table worksheet: SQLField('mysortkey', length = 40, default = 'something' ) I get a ticket reporting: Traceback (most recent call last): File "/home/scott/web2py_1_68_2/gluon/restricted.py", line 184, in restricted

[web2py:21475] Widget problem w/ duplication

2009-05-08 Thread Scott Hunter
in the content: xyz I have a similar problem w/ a widget that yields a SELECT producing one SELECT inside another (which the browser can handle). I'd used the ta_widget in earlier versions of web2py (01/09?). Thanks for the help, Scott --~--~-~--~~~---~--~~ Y

[web2py:21482] Re: Widget problem w/ duplication

2009-05-08 Thread Scott Hunter
inally described appears on the page w/ the error message (for a SELECT, you'd have to view the source to see the nesting). If I reload the form, the nesting appears (but the error messages do not). If I navigate away from and back to the insertion form, there's no nesting (and no error me

[web2py:21500] Re: Widget problem w/ duplication

2009-05-08 Thread Scott Hunter
That seems to have done the truck; thanks. I tried to model the code I was replacing as much as possible (I'm just changing the # of rows in a TEXTAREA or adding an OPTION to a SELECT), so there shouldn't be any confusion -- and there doesn't seem to be. Again, thanks. Scott On

[web2py:21791] Auth forwarding

2009-05-13 Thread Scott Hunter
to go to the page I originally requested, instead of default/index. So: is there machinery in auth to do this, or is it something I'll need to whip up myself? Thanks, Scott --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

[web2py:21799] Re: Auth forwarding

2009-05-13 Thread Scott Hunter
app/default/index, not the URL I originally requested. I put the following above the controller for the page I'm trying to go to: @auth.requires_login() And put this in default.py: def user(): return dict(form=auth()) Is there something I still need to do? Thanks, Scott On May 13, 1:00 pm

[web2py:21925] Re: sqlite and threading

2009-05-15 Thread Scott Hunter
hread access your app as if it were on a different server, using (say) urllib; then your request would get processed by the thread that can access the DB. Which of these might solve your problem depends on the specifics of what your thread is trying to do. Good luck, Scott On May 15, 12:22 pm, K

[web2py:9917] Windows executable and command line options

2008-10-07 Thread Scott Hunter
Is it possible to supply command line options to the windows executable version (web2py.exe) of web2py, either explicitly or via a config file, and if so, how? (I see that I can specify a config file w/ a command line option - "that's some catch, that catch-22" :) Thanks in

[web2py:9982] Daemons as Threads

2008-10-08 Thread Scott Hunter
model file, but got a complaint that it isn't a module. Thanks, Scott --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroup

[web2py:10008] Re: Daemons as Threads

2008-10-09 Thread Scott Hunter
didn't "instantiate its own connection to the database"; what does this involve? Thanks, Scott On Oct 8, 5:58 pm, mdipierro <[EMAIL PROTECTED]> wrote: > It depends on who starts the thread. The main problem is that the web > server monitors threads and kills them when th

[web2py:10359] Re: Python 2.6 anyone?

2008-10-17 Thread Scott Hunter
When trying to run web2py off of Python 2.6, we got the following error from code that works fine under Python 2.5.x (note that the error trace never ventures out of the web2py code). Our immediate solution is to use the older Python, but thought I'd point it out (this is run on a Windows 2000 SP

[web2py:10488] web2py on an iPhone?

2008-10-20 Thread Scott Hunter
The subject pretty much says it: will web2py run on an iPhone, and if not, what are (or might be) the obstacles that prevent it? - sbh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To

[web2py] Insert works using SQLite, not GAE/Datastore

2013-01-28 Thread Scott Hunter
To elaborate on title: I have a simple web2py app, from which I can insert records into a particular table (using a smart grid, or from within a controller), but trying to do so with the app posted to GAE, it fails (for either method). Operations using other tables work fine. I believe it has

[web2py] Re: Insert works using SQLite, not GAE/Datastore

2013-01-28 Thread Scott Hunter
As requested, here is the traceback: In FILE: /base/data/home/apps/s~sbhweb2py/1.364873083036857122/applications/ppt_demo/controllers/default.py Traceback (most recent call last): File "/base/data/home/apps/s~sbhweb2py/1.364873083036857122/gluon/restricted.py", line 212, in restricted ex

[web2py] Re: Insert works using SQLite, not GAE/Datastore

2013-01-28 Thread Scott Hunter
-- same error. I even tried explicitly casting it as a float -- exact same error. When I looked at the Datastore Statistics for that table/entity, it didn't show that field/property; in fact, none of the new fields appeared. - Scott On Monday, January 28, 2013 6:16:44 PM UTC-5, Alan Etkin

[web2py] Re: Insert works using SQLite, not GAE/Datastore

2013-01-28 Thread Scott Hunter
OK, it seems that GAE isn't fond of floats, but is quite happy with doubles -- its now happy with inserting both from a smartgrid-created form and from DAL calls. (I couldn't define any fields directly b/c the table/entity no longer appeared.) Thanks. On Monday, January 28, 2013 7:37:52 PM UT

[web2py] Re: Insert works using SQLite, not GAE/Datastore

2013-01-29 Thread Scott Hunter
Sorry - yes, I changed the model, replacing the floats with doubles. On Tuesday, January 29, 2013 4:33:12 AM UTC-5, Alan Etkin wrote: > > > OK, it seems that GAE isn't fond of floats, but is quite happy with > doubles > > Good to know, but, how did you fix GAE?. Have you changed your model? This

[web2py] web2py under GAE: disabling indexes

2013-02-21 Thread Scott Hunter
As I understand it, the GAE datastore will automatically create an index for every field of every table (to facilitate queries using single fields); those requiring multiple fields also get generated, but will get added to index.yaml by the SDK when tested locally. Since these are created outsi

[web2py] Re: web2py under GAE: disabling indexes

2013-02-21 Thread Scott Hunter
record in order to repopulate them. - Scott On Thursday, February 21, 2013 4:51:59 PM UTC-5, howesc wrote: > > i'm being lazy heredo you have the instructions (or link to > instructions) from GAE for disabling indexes? i don't have it handy right > now > > we

[web2py] Re: web2py under GAE: disabling indexes

2013-02-22 Thread Scott Hunter
elds; then migrate_table, which seems to build the table building/altering commands would need to be made to recognize the new entry & add the disable index command. There's not a lot of comments in the code, and I'd be afraid to break something, but might give it a try. - Scott P.S. Not

[web2py] Re: web2py under GAE: disabling indexes

2013-02-25 Thread Scott Hunter
plications/ppt_demo/models/db_wizard.py" , line 165, in label=T('Name')), TypeError: __init__() got an unexpected keyword argument 'custom_qualifer' On Saturday, February 23, 2013 12:30:48 PM UTC-5, howesc wrote: > > Scott, > > this is *completely* unteste

[web2py] Re: web2py under GAE: disabling indexes

2013-02-26 Thread Scott Hunter
/1.365574604253984974/gluon/dal.py",line 4368, in create_table ftype = self.types[field_type](**attr) TypeError: () takes no arguments (1 given) This only happens if one of the fields in question is a string; I get no error when the unindexed fields are all integer, boolean or double. -

[web2py] Re: web2py under GAE: disabling indexes

2013-02-26 Thread Scott Hunter
he indexes DOES make a difference; with the changes above, instead of using up over 30% of my quota, I'm "only" using 23%. If I can get the strings unindexed, and take out the web2py-supplied fields (created_by & _on, modified_by & _on, and maybe is_active), that should g

[web2py] Re: web2py under GAE: disabling indexes

2013-02-26 Thread Scott Hunter
With the latest patch, I was able to disable indices on the string fields I wanted to. Unfortunately (for me), I've just about used up my quota, so I'll have to wait until tomorrow to see how much doing so saves me. Thanks, Scott On Tuesday, February 26, 2013 8:50:29 PM UTC-5, ho

[web2py] Re: web2py under GAE: disabling indexes

2013-02-28 Thread Scott Hunter
index overhead a LOT; in my case, from 15K to <3K. - Scott On Thursday, February 28, 2013 11:12:52 AM UTC-5, howesc wrote: > > can you let me know if it works as desired now? if so, i'll submit the > patch to massimo for review and possible inclusion in the next release of >

[web2py] Thanks for the awesome framework/setting up PostgreSQL

2011-07-13 Thread Eric Scott
amiliar with SQL so it should not be too hard for me to set up the database; I just need recent documentation on setting web2py to work with it instead of sqlite. Thanks in advance for any input on guides to setting up PostgreSQL with web2py. Kind regards, Eric Eric Scott Bullington

[web2py] web2py and mercurial workflow question

2011-08-03 Thread Eric Scott
I'm new to web2py but find it a vast improvement over the PHP-based web framework I was using before, and so I'm already using web2py to develop my next web app. At the same time, I find myself in a situation where I'm needing to use several different computers to do my work. See I need to find a

[web2py] Re: web2py and mercurial workflow question

2011-08-04 Thread Eric Scott
Thank you Chris, Richard, and pbreit for your excellent input. Good to know I'm heading in the right direction. I'll definitely look into Fabric. Sounds like if I can gain some fluency in Fabric, it will allow me a lot more control over deployment. Thanks again, Eric On Aug 3, 5:40 pm, Chris

[web2py] Follow-up on web2py, mercurial, and Fabric

2011-08-08 Thread Eric Scott
Thanks again to pbreit, Chris, Richard, and any others I'm missing for answering my questions about web2py and mercurial. I'm rapidly getting used to mercurial with web2py and its working great for switching between computers. I do have a follow-up question about Fabric. Pbreit -- you're absolut

[web2py] Problem with reference fields

2011-08-08 Thread Eric Scott
I'm having problems getting tables linked in web2py using reference fields. For example, I have a model with table student and table contact. Table auth_user contains my app's users. In db.py, under db.define_table('auth_user') I have the following code to reference a one-to-many relationship be

[web2py] Re: Problem with reference fields

2011-08-08 Thread Eric Scott
27;ve not seen the code you use anywhere in the web2py book (at least not that I recall), so I will give it a try to see if it works. Thanks again, Eric On Aug 8, 3:58 pm, Richard Vézina wrote: > If you send you controller and model code at least with trace back it could > help to trooble

[web2py] Re: Problem with reference fields

2011-08-08 Thread Eric Scott
It could depend of your backend database if it support FK... > > If you had customized the auth_user table... Before add you FK field (the > ones above), try to make sure your custom auth_user is correct then add your > custom field one after one... > > Richard > > > > >

[web2py] Re: Follow-up on web2py, mercurial, and Fabric

2011-08-09 Thread Eric Scott
Thanks Richard and pbreit for your input. pbreit -- what you describe is similar to what I was thinking of. And yes, it would be nice if there were a standardized way to do this. Richard, since Bitbucket is acting as my central repo, I'll need to pull from bitbucket to the production server. But

[web2py] Form radio buttons from db with image - how to select "checked"?

2011-08-17 Thread Eric Scott
I'm new to both Python and web2py and am having difficulty coding a web2py radio form where each input field displays a name and an image. One (and only one) of these images should be set as the user's default image. I'm having trouble figuring out how to do this in web2py. I was able to produce

[web2py] Re: Janrain/site login

2011-08-24 Thread Eric Scott
ook/default/chapter/08#Other-Login-Methods-and-Log > There's also this:http://www.web2pyslices.com/slices/take_slice/124. > > Anthony > > > > > > > > On Monday, August 22, 2011 8:30:18 AM UTC-4, Eric Scott wrote: > > Is there anyway to use both Janra

[web2py] Problems running a module in web2py shell

2011-08-24 Thread Eric Scott
I'm having trouble running a module in the web2py shell. It's having difficulty with a db query that I execute with no problems in any controller. Here's the traceback: Traceback (most recent call last): File "", line 1, in File "/home/www-data/web2py/gluon/custom_import.py", line 280, in

[web2py] Re: Problems running a module in web2py shell

2011-08-24 Thread Eric Scott
read in an external site about web2py crontab that all cron scripts should have "db.commit()" at the end of each function with a query, so perhaps that's what's happening. On Aug 24, 12:33 pm, Massimo Di Pierro wrote: > try print db.tables > > On Aug 24, 10:55 am, E

[web2py] Passing web2py command line parameters when using apache/mod_wsgi

2011-08-25 Thread Eric Scott
How to I pass command line parameters to web2py when I'm not starting web2py from the command line. I'm using apache and mod_wsgi. I've looked closely at the documentation, and there's a section on how to pass parameters when it's running as a windows service, but the documentation is clear that

[web2py] Changed field name in table def, database OK, but getting key error

2011-08-25 Thread Eric Scott
I'm using postgresql. I had to change a field name in my table def, which are in the web2py models. The database changed accordingly, but now I get a key error when I try to insert a new record using appadmin. I made sure appadmin.py is the latest and greatest. Still getting key error. I don't

[web2py] Re: Changed field name in table def, database OK, but getting key error [SOLVED]

2011-08-25 Thread Eric Scott
To solve it > you must define the auth(s) tables in the db.py and set them to > migrate=false... so web2py stop to trigger their creation each time... > > Richard > > On Thu, Aug 25, 2011 at 1:53 PM, Eric Scott wrote: > > > > > > > > > I'm usin

  1   2   3   4   >