[web2py:37270] Re: GAE mkdir error

2009-12-15 Thread howesc
I had the same problem running the dev_appserver (the latest release 1.3.0). it was trying to create: /web2py/applications/app_name/errors which existed in my file system. I wrapped the entire for loop in: if not request.env.web2py_runtime_gae: and it works fine. thanks, christian On Dec

[web2py:37281] Re: GAE mkdir error

2009-12-15 Thread howesc
yes i did. :( i was a bit surprised that it finds some folders, but not the one named 'errors'. On Dec 15, 2:42 pm, mdipierro mdipie...@cs.depaul.edu wrote: Did you run the app first locally without dev_appserver? That should have created the missing folders. No? On Dec 15, 4:06 pm, howesc

[web2py:37319] Re: r1433 breaks app: GET vars no longer processed on POSTs

2009-12-15 Thread howesc
ran into this too. the version from trunk works. (i'm using python 2.5.2) thanks, cfh On Dec 15, 6:38 pm, mdipierro mdipie...@cs.depaul.edu wrote: I think this is now fixed in trunk. can you confirm? massimo On Dec 15, 4:52 pm, Fran francisb...@googlemail.com wrote: On Dec 15, 10:40 

[web2py] Re: suggestion: decouple tickets from admin interface

2010-01-21 Thread howesc
I'm using web2py on GAE, and wanted to be able to click on a link and view tickets in that world, so i basically did a copy of the code from the admin interface into my default.py so that my app can display the tickets. I'll paste it in here, hope it copies fine in email (i don't think i can add

[web2py] Re: suggestion: decouple tickets from admin interface

2010-01-22 Thread howesc
wrote: Thanks, howesc.  I think having a mechanism similar to this and supported by Massimo would not be too much of a security risk, assuming it's not turned on by default.  There's a big difference between allowing a user to view your source code and granting full admin access. I've added a new

[web2py] Re: Two domains, two web2py instances, two apps, same database

2010-01-28 Thread howesc
I agree with the 2 apps in one installation of web2py at minimum. 2 installations of web2py sounds like a maintenance nightmare to me. Is it possible to write a virtual host so that a certain domain may only see certain controllers in a web2py application? i suspect that it is, but getting the

[web2py] Re: Multi user development on web2py

2010-02-10 Thread howesc
Thadeus, I can't say what Mike is doing, but what i tend to do with the database (software setups very similar if not identical to those mentioned) is that i have 2 bits: - a script that will populate a database with dummy data if it is empty. I use this for bringing up new machines and getting

[web2py] Re: gae lib

2010-02-19 Thread howesc
That import comes from the google app engine API package that you download from google. when running the dev_appserver it's in your environment. if not running dev_appserver you can find the files where you installed the GAE code. web2py gae select syntax is the same as for any other DB, just

[web2py] substring comparison in GAE query

2010-03-19 Thread howesc
Hello, I swear i saw a post in the last week about creating database queries with substring syntax for filtering like: query = db(db.table.string_field[:4] == .com) but i can't find the post about that. am i dreaming? and does something like this work on the Google App Engine? I was trying

[web2py] Re: how to use GAE deferred

2010-03-19 Thread howesc
Hi all, So i need to do an GAE bigtable upgrade today, and add a new field and i need its value to be set properlyso i too want to do this. Turns out deferred is not what we web2py people want. just use the taskqueue directly. it's trivial (well i think it is, i have not deployed yet, but

[web2py] Re: substring comparison in GAE query

2010-03-19 Thread howesc
, Thadeus Burgess thade...@thadeusb.com wrote: You must be thinking of another framework and mixing the two? I read every post and have not seen that. Perhaps you mean db(db.table.string.like(%.com)).select() -Thadeus On Fri, Mar 19, 2010 at 2:49 PM, howesc how...@umich.edu wrote: Hello, I

[web2py] Re: GAE querying question.

2010-04-07 Thread howesc
THANKS matt and massimo!! i did not report this cause i thought it was not supported on GAE! you guys just made my week! cfh On Apr 6, 11:10 pm, Matt mjwat...@gmail.com wrote: Yup all good... Working now. Thanks again, Matt On Apr 7, 5:56 pm, Matt mjwat...@gmail.com wrote: Massimo,

[web2py] Re: more than 1000 records on GAE

2010-04-10 Thread howesc
2 things: 1. i've not observed this limit when running queries on GAE. i've gotten as many as 14,000 records back when running in the production environment. though it runs way too slow, and i end up eating up my 30 seconds. 2. somewhere (i can't remember where) a paging technique was suggested

[web2py] Re: GAE Import Ticket

2010-04-14 Thread howesc
i went through this in GAE as well, and figured this out: #get the storage, and tickle the right part to get the database table ts = TicketStorage(db=request.tickets_db) table_obj = ts._get_table(ts.db, ts.tablename, request.application) if table_obj: table_obj.truncate()

[web2py] Re: getting started with fbconnect

2010-04-19 Thread howesc
Rohan, Someone pointed out gaema (http://code.google.com/p/gaema/) on the group a couple of weeks ago as a tool that integrates google, twitter, facebook, and others with google app engine. i'm in the process of adapting it to work with web2py auth (for GAE and non GAE apps). If all goes well

[web2py] Re: GAE, parents, and row objects.

2010-04-20 Thread howesc
is parent a GAE thing? if not, then wouldn't parent be setup as a reference to book (in this example), and db.review.insert(parent = book.id, text = 'The book was great) would work? cfh On Apr 18, 9:15 pm, Matt mjwat...@gmail.com wrote: Thanks Massimo. Matt On Apr 19, 1:53 pm, mdipierro

[web2py] Re: getting started with fbconnect

2010-04-20 Thread howesc
= Storage(the_data._filter_fields(Users.find_by_id(user_id) [0], id=True))                 session.auth = Storage(user=user_obj, last_visit=request.now, expiration=2600)                 auth.user = user_obj On Apr 20, 10:10 am, howesc how...@umich.edu wrote: Rohan, Someone pointed out

[web2py] Re: Bug in crontab parsing in 1.77.3?

2010-04-22 Thread howesc
if not x.strip().startswith('#') and not x.strip() == ''] On Apr 21, 6:59 pm, mdipierro mdipie...@cs.depaul.edu wrote: this helps debug the problem. I will look more into it tomorrow. On Apr 21, 7:04 pm, howesc how...@umich.edu wrote: Hello, in 1.77.3, the following crontab file fails

[web2py] path in fcgihandler.py

2010-04-23 Thread howesc
Hi, quick question about the path in fcgihandler.py (from 1.77.3). Is there any reason that: path = os.path.dirname(os.path.abspath(__file__)) if not path in sys.path: sys.path.append(path) sys.path.append(os.path.join(path,'site-packages')) should not be replaced with: path =

[web2py] Re: Is ao.social/1.0.1 it supported in Web2Py?

2010-04-23 Thread howesc
if you end up having to modify ao.social, you might try out this: http://www.web2pyslices.com/main/slices/take_slice/77 it has been portef to web2py. though it used the new deprecated Facebook Connect for Facebook. cfh On Apr 23, 10:17 am, mdipierro mdipie...@cs.depaul.edu wrote: The only

[web2py] Re: Is ao.social/1.0.1 it supported in Web2Py?

2010-04-23 Thread howesc
sorry, typing too quickly. the last line of my previous post should read: it has been ported to web2py. though it uses the now deprecated Facebook Connect for Facebook. On Apr 23, 2:28 pm, howesc how...@umich.edu wrote: if you end up having to modify ao.social, you might try out this:http

[web2py] Re: SEO

2010-04-27 Thread howesc
another trick that web2py makes real easy, is make sure that each page has a unique URL by using request.args. your url might look like: http://www.foo.com/default/index/43576/Image-title-here/another-thing where 43576 in the above URL is the ID (like in massimo's example), but the other parts

[web2py] Re: background process

2010-04-28 Thread howesc
i like massimo's idea of using cron...but if you need it to be launched by the user perhaps you setup cron to run at small intervals and have the job simply check if the user has requested work, and then do the work. i suspect that is much easier than getting the threading right. cfh On Apr 28,

[web2py] Custom form renderings and attributes

2010-05-03 Thread howesc
Hello, Is it intentional that when using SQLFORM, and custom views (with form.custom.begin), that if i modify attributes after initial form construction I have to update form.custom.begin myself? here's my example: form = SQLFORM(db.artwork, request.args[0], fields=fields,

[web2py] fcgihandler.py and logging

2010-05-04 Thread howesc
Hello, it seems that the if LOGGING: block of fcgihandler.py is out of date. can we update it to: if LOGGING: application = gluon.main.appfactory(wsgiapp=gluon.main.wsgibase, logfilename='httpserver.log', profilerfilename=None) i'd also like to figure out the

[web2py] Re: fcgihandler.py and logging

2010-05-04 Thread howesc
thank you! On May 4, 9:13 am, mdipierro mdipie...@cs.depaul.edu wrote: In trunk! On May 4, 10:56 am, howesc how...@umich.edu wrote: Hello, it seems that the if LOGGING: block of fcgihandler.py is out of date.  can we update it to: if LOGGING:     application

[web2py] Re: auth_ tables problem

2010-05-04 Thread howesc
Annet, have you tried: # defines all needed tables without migration/table files auth.define_tables(migrate=False) where you configure auth for your app? cfh On May 4, 9:44 am, annet annet.verm...@gmail.com wrote: I have one application (called base) in which I define

[web2py] Re: Debuging web2py form.custom problems with AUTH

2010-05-04 Thread howesc
Not 100% sure of your problembut do you output session.flash, response.flash, and register.errors anywhere in your view? what you describe sounds like a validation problem, but if you don't output the register.errors you don't see the what the problem is. (at least i had this difficulty when

[web2py] Re: Erro in conditional IS_IN_DB() validator

2010-05-05 Thread howesc
Hi, I don't see where the orderby is being added - based on the traceback it looks like from a validator, but i learned that on GAE orderby can't be a string. i have some of my own forms for viewing and editing data, and they convert orderby so it works on GAE: @auth.requires_login() def

[web2py] Re: Running a script with Google App Engine

2010-05-10 Thread howesc
everything on GAE must be called via a URL (it must be a controller/ function). if you need to run it periodically look up how to do cron on GAE and create your cron.yaml. @auth.requires_membership() is your friend in this case to limit who can call your controller. :) i have several of these

[web2py] Re: Running a script with Google App Engine

2010-05-11 Thread howesc
/group/web2py/browse_thread/thread/93d3dad847..., does that mean they're only possible from within the application itself (not via script)? Thanks, Matthew On May 10, 7:04 pm, howesc how...@umich.edu wrote: everything on GAE must be called via a URL (it must be a controller/ function

[web2py] Re: Running a script with Google App Engine

2010-05-12 Thread howesc
nothing would prevent a new record to be inserted by a different user that would fall thought the cracks in the list of records that where already processed. This only works for simple queries. Massimo On May 11, 5:38 pm, howesc how...@umich.edu wrote: yes, it applies to the dev

[web2py] Re: large sites/application.

2010-05-14 Thread howesc
i have a variety of applications running on web2py. www.tenthrow.com has 33 tables in one postgres schema, and another 9 in another schema. it runs happily along with the low traffic we get right now. all my tables of the same schema are in the same model file (maybe it's time to split it out).

[web2py] Re: Do you use web2py in your company?

2010-05-14 Thread howesc
Massimo, I'm using web2py in almost all of my work right now. * www.tenthrow.com is all webpy with cherokee and postgres. (we are in the middle of a large redesign of the site and i was promised space in the footer for a link back to web2py) * the database backend for an iphone karaoke

[web2py] Re: Postgresql Schema in Web2py

2010-05-14 Thread howesc
Johny, Perhaps i mis-understandbut you have all your tables already created in postgres right? if so, then you can just define your model in web2py using the DAL, but set migrate=false for each table. Then you define the tables yourself (and have complete control over that part), but the

[web2py] Re: Custom form renderings and attributes

2010-05-15 Thread howesc
'),_action=) On May 3, 4:11 pm, howesc how...@umich.edu wrote: Hello, Is it intentional that when using SQLFORM, and custom views (with form.custom.begin), that if i modify attributes after initial form construction I have to update form.custom.begin myself? here's my

[web2py] Re: Display reference fields in read-only form

2010-05-17 Thread howesc
Hi, i have this defined as a model: db.define_table('question', Field('question', 'string', length=1056, notnull=True, unique=True, requires=[IS_NOT_EMPTY(), IS_NOT_IN_DB(db,'question.question')]), #version info Field('created_by', db.auth_user,

[web2py] Re: Postgresql Schema in Web2py

2010-05-17 Thread howesc
actually... So I looking around to find the better way to work around (ex.: validator and string type)... Johny 2010/5/14 howesc how...@umich.edu Johny, Perhaps i mis-understandbut you have all your tables already created in postgres right?  if so, then you can just define your

[web2py] Re: Actual situation of web2py compatibility

2010-05-22 Thread howesc
re preformance on GAE: it's a mixed bag. because of the different database structure, data access can have very different characteristics. Also, google requires that all requests must complete in under 30 seconds (which is not necessarily a limit in shared hosting). But, it scales to more

[web2py] Re: hiding email password

2010-05-24 Thread howesc
GAE has magic around sending emails. Someone extended the Mail() class in web2py to work with this magic. basically you don't need passwords to send from a GAE application if you are sending mail as one of the administrators. your configuration for mail should look like: mail=Mail()

[web2py] Sanitizer and strip()

2010-05-24 Thread howesc
Hello, I have a spot on my site where i want a user to be able to input HTML formatted text, with limitations to accepted tags. I would also like to use a WYSIWYG editor. The trouble that I'm having is that users like to write the stuff in Microsoft Word and paste it into the editor. When that

[web2py] Re: Complicated Join...

2010-05-28 Thread howesc
check out www.tenthrow.com, click on a concert and you will see an other concerts box. those are generated following several rules, the first if finding concerts that share tags with this concert. My tags have a magnitude or a weighting, so some are more valued than others. hence the magnitude

[web2py] Re: Complicated Join...

2010-05-29 Thread howesc
could use or operators in the limitby, spiffy. Thanks for your help so far. :) Best Regards, Jason On Fri, 2010-05-28 at 14:32 -0700, howesc wrote: check outwww.tenthrow.com, click on a concert and you will see an other concerts box.  those are generated following several rules

[web2py] gaehandler.py change

2010-05-29 Thread howesc
Hi all, in order to use blobstore on google app engine we have to be able to handle redirection back from google's upload API. when we are re- directed back all variables come from google in unicode. the fix i have is to add the following line just before the return from wsgiapp() in

[web2py] Re: gaehandler.py change

2010-05-30 Thread howesc
diagnostic. Is env['PATH_INFO'] unicode? In this case shouldn't it be env['PATH_INFO'] = env['PATH_INFO'].encode('utf8') On May 29, 6:40 pm, howesc how...@umich.edu wrote: Hi all, in order to use blobstore on google app engine we have to be able to handle redirection back from google's upload

[web2py] Re: gaehandler.py change

2010-05-31 Thread howesc
wrote: To clarify. the following line works? env['PATH_INFO'] = env['PATH_INFO'].encode('utf8') On May 30, 7:13 pm, howesc how...@umich.edu wrote: if i do type(...) on the variables it returns 'unicode'.  I'm not up on my encodings to know 100% the best way...i know that once i put

[web2py] Re: new stuff in trunk...

2010-06-02 Thread howesc
I use paypal Website Payments Standard and the *best* part about that is that while the user experience is crappy with the redirection, i *never* learn the user's credit card number, and therefore don't have to worry about regulations in how that info is handled (which extends to your server logs

[web2py] Re: disable label

2010-06-09 Thread howesc
last time i was wrestling with the forms i noticed that everything has nice class names - use css to put no-wrap on the label class. (firebug plugin to firefox really helps with inspecting generated HTML). also i think i read something about being able to specify table or div based layouts for

[web2py] Re: Key query support in Google App Engine

2010-06-09 Thread howesc
1) i don't mind removing __key__ from extra. it was just something i was using while figuring it out. (though i don't understand what it changes in how Rows is accessed). 2) The Key on GAE is a base64 encoded string of table_name: id=id (for the simple no-ancestor case). My understanding of

[web2py] Re: Internal error

2010-06-13 Thread howesc
Hi Cory, it's very hard to tell from the info so far. good that you have narrowed it down to a DB issue. have you checked the error files that web2py produces to see what is in there? those tickets are often quite helpful. (excuse me if you already checked) my best guess though is that

[web2py] Re: PIL to change images on the fly...

2010-06-13 Thread howesc
create a function for serving images, and add the sizes as parameters: img src=http://mysite.com/applciation/images/download/foo.png/ 300/400 / and in the function do the resize and output the binary data of the image. i'm not 100% sure of the best way to do it out side of google app engine

[web2py] Re: PIL to change images on the fly...

2010-06-14 Thread howesc
Regards, Jason On Sun, 2010-06-13 at 17:37 -0700, howesc wrote: create a function for serving images, and add the sizes as parameters:   img src=http://mysite.com/applciation/images/download/foo.png/ 300/400 / and in the function do the resize and output the binary data of the image

[web2py] Re: facebook oauth support

2010-06-29 Thread howesc
there is also this: http://web2pyslices.com/main/slices/take_slice/77 still not a plugin exactly, but it supports multiple authentication types. On Jun 29, 2:13 pm, Kuba Kucharski kuba.kuchar...@gmail.com wrote: hi, MCM the web2py community is very much interested in facebook graphApi

[web2py] Re: GAE / parents / ancestors in Web2py?

2010-07-02 Thread howesc
http://groups.google.com/group/web2py/browse_thread/thread/58d0d754d354c90f On Jul 2, 10:01 am, NickFranceschina nickfrancesch...@gmail.com wrote: anybody? On Jun 29, 10:03 pm, NickFranceschina nickfrancesch...@gmail.com wrote: I've been reading and googling and searching... but not sure

[web2py] Re: Problems changing table definition

2010-07-21 Thread howesc
I agree with massimo about using web2py's migration features where possible. Unfortunately there are some migrations that web2py just cannot do if there is data in the table (at least that was true in postgres a while ago). Such things include making a previous nullable field not nullable, and i

[web2py] Re: questions on groups

2010-07-23 Thread howesc
Frank, the code in db.py gets executed again on the second request. since auth.id_group() returns True the auth.add_group is not called. so you need an else that sets group_id11=auth.id_group() cfh On Jul 22, 7:56 am, Frank thethinkbo...@gmail.com wrote: I get a problem, after I created a

[web2py] Re: Don't really know how to ask but here goes

2010-07-25 Thread howesc
Chris, sounds like a fun...and possibly complex problem. some thoughts: - web2py could be made to work well for you - because web2py is easy to install and run on a laptop (i do all my development work on local web2py installs on a laptop), you could write everything as a set of web2py apps

[web2py] Re: book revision

2010-07-25 Thread howesc
I use google app engine a lot, and would love to have mention in the main content of the book when features won't work on GAE. some are now, and others are only in the GAE section at the end. also not everything in

[web2py] Re: advice on ListProperty

2010-07-27 Thread howesc
i too think that would be great. is that getting to DB specific for the DAL? cfh On Jul 25, 10:17 pm, Thadeus Burgess thade...@thadeusb.com wrote: Yes. Just go the extra half a mile and add it for every database that will use a table behind the scenes. -- Thadeus On Sun, Jul 25, 2010

[web2py] Re: GAE and Auth over SSL

2010-07-28 Thread howesc
unfortunately this is still a google problem. i'd love for them to solve it (and my clients would be willing to pay for the service) cfh On Jul 28, 8:27 am, Vidul Petrov vidul.r...@gmail.com wrote: Does this mean that GAE SSL support is practically useless for now? Because one should

[web2py] Re: is it possible to get Error message right away ?

2010-07-28 Thread howesc
look at post #5 in this thread http://groups.google.com/group/web2py/browse_thread/thread/5fd5303e6a2fa5c5/d7d7073ee2241bdb (also by me). i used to to create a custom view on google app engine for reading tickets. (i don't use it anymore because i just use the google logs), but you might be able

[web2py] Re: Exporting data from GAE BigTable

2010-08-09 Thread howesc
i use the google app engine's provided bulk loader for dumping and restoring data. it's supposed to deal with keeping ID's in sync, and has been fine for me so far. the trouble with it is that you have to have the GAE SDK installed to use it - you can't do it via either the web2py interfaces or

[web2py] Re: Clear memcache on GAE

2010-08-11 Thread howesc
i thought that the query caching like: db(query).select(cache=...) was not supported in web2py on GAE? did i miss a detail somewhere? since i thought it was not supported i have not yet tried to use it or clear it. sorry. cfh On Aug 8, 11:51 pm, Jérémie m...@nxtelevision.com wrote: Hello

[web2py] Re: Limitby on GAE

2010-08-11 Thread howesc
in the past limitby only worked up to record 1000. On Aug 10, 4:12 am, szabba isza...@gmail.com wrote: Is db(somequery).select(db.sometable.ALL, limitby=(1000, 10)) supported on Google App Engine? I couldn't find anything about it not being supported in the docs, but I just want to be sure.

[web2py] Re: gae strangeness with symbol

2010-08-11 Thread howesc
matt, are you seeing this on GAE production, or on your development server? if on development, are you using sqlite? if so, then see http://code.google.com/p/googleappengine/issues/detail?id=3232 i had to patch GAE dev server to work properly in this case. if that is not the case i'm sure it

[web2py] Re: Instant Press

2010-08-13 Thread howesc
i have not tried it, but i suspect that the problem that Bruno is having is that index.yaml is not updated. since index.yaml lives at the top-level directory of web2py it is not included in the packaged application. GAE dev server will generate the proper index.yaml file if you run through all

[web2py] Re: recipy to migrate DB to GAE

2010-08-15 Thread howesc
take a look at the bulk loader from google: http://code.google.com/appengine/docs/python/tools/uploadingdata.html i think it takes a CSV format, so if you can get your data from sqlite in proper CSV format you should be able to upload via bulk loader. good luck! christian On Aug 15, 8:33 am,

[web2py] Re: recipy to migrate DB to GAE

2010-08-17 Thread howesc
. As I need to keep my id's unchanged when migrating (as I have hierarchical/nested/recursive relation in one table, and also some foreign keys) On Aug 16, 6:43 am, howesc how...@umich.edu wrote: take a look at the bulk loader from google:http://code.google.com/appengine/docs/python/tools

[web2py] Re: redirection question

2010-08-25 Thread howesc
i usually hard-code where i want the form to go after accept, but it sounds like this does not work for you. what about appending a var to the url that is where to go after: http://foo.com/app/meetings/editmeeting/123?redir=app/home would that work for you? (i have not tested if the var

[web2py] Re: Custom Forms validation

2010-08-25 Thread howesc
I'm a little lazy here, and think you can grab what you need by looking at https://www.tenthrow.com/register/ (it's a site that i work on, so i'm ok with telling you to look at the javascript there). The page is created with a custom form (you can inspect the HTML to see the custom classes etc),

[web2py] Re: I feel shame for asking... but I would like to resolve this

2010-08-25 Thread howesc
i don't know flex or any of that.but can you call those tools that generate the HTML from your controller, get the HTML back and return that from the controller? def get_spiffy_html(): html = my_call_to_magic_stuff_that_makes_html() return html or if you want to embed it in a layout:

[web2py] Re: Server fails every 3 hour

2010-08-30 Thread howesc
I've not done much heavy lifting with the taskqueue, but when i have long running tasks i have broken them up into chunks that run in 30 seconds or less. i call the task with something like: for user in db(db.auth_user.id0).select(): for question in db(db.question.id0).select():

[web2py] Re: Reverse table look up in GAE

2010-09-10 Thread howesc
please correct me if i am wrong, but ID's on GAE are really UUID's and are not sequential and not guaranteed to be strictly increasing. timestamps are the closest you can get to strictly increasing on GAE, but it is possible for 2 inserts to happen at the same time, so don't count on that 100%

[web2py] Re: TypeError: sequence item 1: expected string, Field found

2010-09-15 Thread howesc
Andrew, take a careful inspection of the docs/book about field references. you setup user as a reference to a table, but when trying to set the default you are setting it to a field. it needs to know which user to select. also, in this case the default would need to be the ID of a user not a

[web2py] Re: Routes.py on GAE

2010-09-16 Thread howesc
i have no idea myself, and got it working and so that's what i use. if i ever try and run multiple web2py apps on the same app engine application i'll want to figure it out so that i can have different favicons for each. cfh On Sep 15, 4:57 pm, Michael Ellis michael.f.el...@gmail.com wrote: I'm

[web2py] Re: index error -GAE

2010-09-17 Thread howesc
yes. the app engine takes time to generate the indexes. sometimes it's just a few minutes, i've had some take over a day. you can check the index status by clicking on the datastore indexes link. it will show you which are serving and which are still building. On Sep 17, 3:28 am, b vivek

[web2py] Re: Consecutive id numbers in GAE

2010-09-27 Thread howesc
Hello, yes, ID's on GAE are troublesome. they are generally increasing across your entire dataset, but there are exceptions to that rule (so you can't expect strictly-increasing ID's). I also wonder what happens if you assign duplicate key_names using the method that google describes (since

[web2py] Re: Error pages could show full ticket info at once via ajax

2010-09-28 Thread howesc
my only concern would be in the (highly unlikely) event that an error happens on a production site that this would expose source code to end users - not usually a good idea. so maybe have a setting, or some way to detect that there is a valid admin session before showing full error trace. On Sep

[web2py] Re: Image gallery on GAE

2010-09-30 Thread howesc
any experience with it? On Sep 15, 5:59 pm, howesc how...@umich.edu wrote: I have just such a setup - i'd give you the URL to the site, but it's not public yetremind me in a week or two. The link Martin gives is the best bit of blobstore info that i have found for web2py yet.  i

[web2py] Re: Propose to add case-independ like

2010-10-06 Thread howesc
Just a random idea...but how about selecting all of it and creating a computed field that does the case conversion and then filter it? it's not very efficient if you have lots of rows before applying the filter, but it should work on multiple database types. On Oct 5, 8:17 pm, KMax

[web2py] Re: Offline apps

2010-10-11 Thread howesc
not a great solution, but you can use the google app engine bulkloader to dump a GAE (development or production) database and replace another. see details here: http://code.google.com/appengine/docs/python/tools/uploadingdata.html On Oct 8, 7:48 am, Fabio Alessandro Locati floc...@grimp.eu

[web2py] Re: Powered by web2py

2010-10-11 Thread howesc
Just a quick note here about the ones i've worked on (i'm flattered that they made the list!) tenthrow.com has been running for over a year now, and is running a slightly outdated version of web2py. it is running on Slicehost with cherokee and postgrest. elizabethscanvas.org is still a secret.

[web2py] Re: facebook and auth logins

2010-10-12 Thread howesc
I remember having quite a wrestle with all that a few months ago. i honestly don't remember all the details, but web2pyslices does: http://web2pyslices.com/main/slices/take_slice/77 note that others have come up with other, potentially better, mutli- login solutions since then - including the

[web2py] Re: Facebook/Twitter/Google login + normal login

2010-10-12 Thread howesc
Try this: http://web2pyslices.com/main/slices/take_slice/77 see it in action on www.tenthrow.com cfh On Oct 11, 4:57 pm, firedragon852 firedragon...@gmail.com wrote: I tried both the following methods: URL: .../login/facebook if request.args(0) == 'facebook':         from

[web2py] Re: Facebook/Twitter/Google login + normal login

2010-10-13 Thread howesc
and wanted to integrate this for some time I have a question though: Are you able to attach a facbook/twitter/ normal login... account with an already exising account later on? On Oct 12, 8:44 pm, howesc how...@umich.edu wrote: Try this: http://web2pyslices.com/main/slices/take_slice/77

[web2py] Re: web2py 1.87.2 is OUT

2010-10-13 Thread howesc
I can't comment fully on the routes changes, but the errors you are getting are errors in presenting you with the errors. the error_message that you used to have at the bottom of your routes.py: error_message = 'htmlbodyh1Invalid request/h1/body/html' needs to be upgraded to have a %s in it

[web2py] Re: Can't install gae remote_api using web2py

2010-10-18 Thread howesc
perhaps silly question...but did you upgrade the google SDK to the latest version? being that it's a new feature you want to make sure you are using the latest SDK to do the upload. (perhaps you have an old version of appcfg.py on your path?) cfh On Oct 18, 11:21 am, Nathan VanHoudnos

[web2py] Re: how to install plugin_wiki?

2010-10-20 Thread howesc
Timmie, plugin wiki depends on authentication - not sure about making it work without auth. (that would allow just anyone to create pages with no accountability, perhaps not the best of ideas for a public site) I did send a suggested patch to allow it to work with custom named auth tables that

[web2py] Re: AWS Free Tier

2010-10-25 Thread howesc
GAE is to me a true cloud compute environment - you have 0 control over the hardware, and magic happens to scale your services. This does mean that you are restricted in what you can do - no file writes, only have the option of bigtable for database storage inside GAE, and some other

[web2py] Re: Best way to update schedule with multiple users/locations?

2010-10-27 Thread howesc
what about a javascript timer that makes a JSON call to check for updates every x minutes? i suspect that the database can be designed in such a way that the query could be quite quick. then you don't need queues and background processes. just a thought... cfh On Oct 26, 9:23 pm, Tom

[web2py] Re: Render svg using web2py without js library

2010-10-28 Thread howesc
can't you just make a view that outputs that static text? and then from there abstract out the variables to use data from the web2py controller? while there are no helpers for SVG generation, there is nothing stopping you from writing raw SVG in a view (or as a string variable that you output

[web2py] Re: TextWidget maximum

2010-10-28 Thread howesc
try adding an IS_LENGTH() validator to the field and set the max length high enough. i don't know for sure, but it sounds like there is a default max length for text widgets (unless you already have a validator that is limiting the size) On Oct 28, 7:11 am, SergeyPo ser...@zarealye.com wrote: I

[web2py] Re: Paypal Digital Download

2010-11-01 Thread howesc
Andrew, I use Paypal encrypted buttons from their web payments standard product together with IPN on www.tenthrow.com to purchase and enable digital download. i have not looked closely at http://web2pyslices.com/main/slices/take_slice/9 but this is probably a nicely documented outline of how

[web2py] GAE GQL count patch

2010-11-03 Thread howesc
Massimo and others, Google claims that count() does not have an enforced limit, though they have mis-documented the feature. see http://code.google.com/p/googleappengine/issues/detail?id=4001 if you are curious. in order to get count to be truly limitless, you need to pass limit=None to count.

[web2py] Re: Hyperlink urls in comments

2010-11-04 Thread howesc
Annet, I suspect that this problem has more to do with HTML email, or how your email client guesses what are links in text based email. i believe that by default the request_reset_password sends a text-only email with no HTML markup. though most clients will recognize http:// as a URL and

[web2py] Re: How to make a dropbox in a create.form with IS_IN_DB and an join of multiple tables

2010-11-04 Thread howesc
your problem is where you put the query in the IS_IN_DB. try modifying to put the query in the first spot. something like: requires=IS_IN_DB(db((db.file_asset.type == db.file_asset_type.id) (db.file_asset_type.name=='Album Art')),

[web2py:28106] Left Join Failures

2009-08-06 Thread howesc
Hi all, I'm writing several queries with multiple tables, and left joins, and the generated SQL is not working with postgres: ProgrammingError: invalid reference to FROM-clause entry for table concert LINE 1: ..., artist LEFT JOIN audiofile ON audiofile.concert=concert.id...

[web2py:28223] Re: Left Join Failures

2009-08-08 Thread howesc
On Aug 6, 6:15 pm, howesc how...@umich.edu wrote: Hi all, I'm writing several queries with multiple tables, and left joins, and the generated SQL is not working with postgres: ProgrammingError: invalid reference to FROM-clause entry for table concert LINE 1: ..., artist LEFT JOIN

[web2py:28288] Re: Left Join Failures

2009-08-10 Thread howesc
wrote: Is this sqlite? The generated SQL looks right to me. Do you see anything wrong with it? On Aug 8, 11:48 am, howesc how...@umich.edu wrote: Massimo, I downloaded the latest released version today: Version 1.65.11 (2009-08-04 16:42:46), and it still fails.  here is the generated SQL

[web2py:28770] Re: Left Join Failures

2009-08-16 Thread howesc
richar...@gmail.com wrote: hi Christian, I also just got this error message when testing a migration from sqlite to postgres. Thanks for the diagnosis of the problem. Have you found a work around yet using the DAL? Richard On Aug 10, 4:56 pm, howesc how...@umich.edu wrote

  1   2   3   4   5   6   7   >