[web2py] Re: GAE - Datastore and CloudSQL together

2013-03-04 Thread howesc
at one point i was running both together. i did something like: db = insert connection code here sqldb = insert connection code here and then connected tickets and such to db. cfh On Monday, March 4, 2013 8:24:44 AM UTC-8, Philip Kilner wrote: Hi, Is there a way to use the datastore for

[web2py] Re: GAE Hosting Issue

2013-03-04 Thread howesc
i'm no longer using cloudSQL as i don't need it anymorebut several months ago when i was using it i got weird and varied problems on GAE when i had exceeded my billing quota on could SQL. have you checked that those SQL instances are running and billing up to date? On Monday, March 4,

Re: [web2py] 'Morsel' object has no attribute 'split' ?

2013-03-01 Thread howesc
what's the errors you are getting on GAE? not sure how up to date this is, but attached is the facebook.py that i'm currently using on GAE. cfh On Tuesday, February 26, 2013 5:10:25 PM UTC-8, Jaime Sempere wrote: Hi, i'm getting mad using facebook.py, I cannot get it work. Anyway, I have

[web2py] Re: web2py under GAE: disabling indexes

2013-02-28 Thread howesc
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, howesc wrote: here's an updated DAL patch to try. thanks

[web2py] Re: web2py under GAE: disabling indexes

2013-02-26 Thread howesc
, boolean or double. - Scott On Tuesday, February 26, 2013 1:04:12 AM UTC-5, howesc wrote: it looks like you have a typo custom_qualifer vs custom_qualifier On Monday, February 25, 2013 6:44:14 PM UTC-8, Scott Hunter wrote: I applied the patch, and added custom_qualifiers like so

[web2py] Re: web2py under GAE: disabling indexes

2013-02-26 Thread howesc
, February 26, 2013 6:24:21 PM UTC-5, howesc wrote: your line numbers are off from mine so i'm having trouble making sense of this. :( can you send your model definition so i can see what you are working with? i think then i can line it up with the dal version i have here (which was trunk

[web2py] Re: web2py under GAE: disabling indexes

2013-02-26 Thread howesc
PM UTC-8, howesc wrote: here's an updated DAL patch to try. thanks for trudging through this with us! cfh On Tuesday, February 26, 2013 3:36:30 PM UTC-8, Scott Hunter wrote: I'm working from Version 2.3.2 (2012-12-17 15:03:30) stable Here's the table in question (I've commented-out

[web2py] Re: db admin interface while deployed

2013-02-25 Thread howesc
Hello, good thing you mentioned GAE in your post - it makes a large difference in this case! ;) I wrote a bit of code that i put at the bottom of /models/db.py that checked for an admin user, and if it did not exist created it. Then after running once removed it from db.py. as for my table

[web2py] Re: web2py under GAE: disabling indexes

2013-02-25 Thread howesc
UTC-5, howesc wrote: Scott, this is *completely* untested, but here's a proposal: - use the (undocumented) field.custom_qualifier property in GAE field definitions - if you want a field to be unindexed set custom_qualifier={'indexed':False} - for properties that don't get listed

[web2py] Re: web2py under GAE: disabling indexes

2013-02-23 Thread howesc
(things like created by when, modified by when). On Friday, February 22, 2013 6:14:28 PM UTC-5, howesc wrote: thanks for the link. i'll try and take a look this weekend and see if there is a place for that in the DAL (feel free to open gluon/dal.py yourself too). yup, i'm paying more

Re: [web2py] Re: lot's of X's in error responses

2013-02-22 Thread howesc
that from http alltogether, or (but it will require more checks) remove that from restful AND @service calls. On Saturday, December 15, 2012 12:50:17 AM UTC+1, howesc wrote: is anybody using request.restful *and* needs the 512 bytes in a restful response? i'm inclined to only skip those bytes

[web2py] Re: web2py under GAE: disabling indexes

2013-02-22 Thread howesc
such indicies back on, but you have to re-write every 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

[web2py] Re: web2py under GAE: disabling indexes

2013-02-21 Thread howesc
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 can check if the DAL has a secret way to handle it, and/or create a patch to allow it. may i ask what advantage you are hoping to achieve by

[web2py] Re: Need for '/index/args' following controller to grab 'args'?

2013-02-21 Thread howesc
i use the regex router, and have this in one of my projects: ('/promo/(?Pf.*)', '/appname/promo_page/signup/$f'), # promo codes to the promo_page controller so this takes a url like /promo/freestuff and sends to /appname/pomo_page/signup/freestuff i think essentially doing as you

[web2py] Re: Setting up memcache on GAE - a basic question

2013-02-18 Thread howesc
cacheable=True is a newish option to selects right? i've not yet used itand had forgotten about it. cfh On Monday, February 18, 2013 7:17:02 AM UTC-8, Niphlod wrote: cacheable=True does not help ? On Monday, February 18, 2013 4:11:13 PM UTC+1, howesc wrote: ah yes the Rows

[web2py] Re: Setting up memcache on GAE - a basic question

2013-02-17 Thread howesc
the exact differences, but there are some things that are not pickleable and can't be stored in memcache, but can be stored in (non-GAE) cache.ram etc. christian On Saturday, February 16, 2013 1:58:31 AM UTC-8, Andy W wrote: Hi howesc The stack trace from the SDK log console is: ERROR2013-02

[web2py] Re: how to select all rows in Google Appengine, to produce a SQLFORM.grid for a whole table?

2013-02-17 Thread howesc
nice find! note that once you have more than about 1000 rows in a table you'll need to have pagination turned on in smartgrid, else the request will time out. On Friday, February 15, 2013 3:15:55 PM UTC-8, Luca wrote: Found: q = db.table seems to work. Aha! --Luca On Friday, February

[web2py] Re: Setting up memcache on GAE - a basic question

2013-02-15 Thread howesc
i did some grepping of my code and found some things - it seems that cache.ram is automatically set to GAE memcache when you are using GAE. it's part of the GAE setup web2py does for you. - the code above looks OK for storing sessions in memcache. FWIW, I gave up using memcache for

Re: [web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-15 Thread howesc
Yes, that sounds similar to what i do. - i created a custom auth user table, it happens to be called end_user (though it can be called auth_user): auth.settings.table_user_name = 'end_user' auth.settings.table_user = db.end_user.table auth.define_tables() - My end_user

[web2py] Re: Setting up memcache on GAE - a basic question

2013-02-15 Thread howesc
, Niphlod wrote: on the too fast eviction issue, I remember that something was added to set the default expiration time, a time_expire parameter. On Friday, February 15, 2013 7:32:42 PM UTC+1, howesc wrote: i did some grepping of my code and found some things - it seems that cache.ram

[web2py] Re: Send Email with Web2py on GAE development framework

2013-02-15 Thread howesc
the snarky/mean person in me says If you have sendmail installed you can use it by using the server with --enable_sendmail i've failed at getting sendmail setup. i find it's much easier to add the switch to the GAE SDK that prints the email contents in the log (i don't remember that switch

[web2py] Re: DAL return number of rows affected?

2013-02-15 Thread howesc
isn't that the return value? i know it is for delete On Thursday, February 14, 2013 5:47:36 PM UTC-8, Cliff Kachinske wrote: Is it possible to get the number of rows affected by an update in the DAL? -- --- You received this message because you are subscribed to the Google Groups

[web2py] Re: Failed Import in a Module on Mac OSX

2013-02-13 Thread howesc
are you using GAE or some other webserver? can you import those same modules from the python interpreter that your webserver is using? what version of python do you have? On Wednesday, February 13, 2013 12:43:37 PM UTC-8, unmuse wrote: I am using the gdata module to access the Google API. I

[web2py] Re: serving php and python in shared hosting

2013-02-13 Thread howesc
the apache docs. :) http://httpd.apache.org/docs/2.2/mod/prefork.html http://httpd.apache.org/docs/2.2/mod/worker.html On Wednesday, February 13, 2013 11:58:29 AM UTC-8, José Eloy wrote: Thanks howesc Do you have an idea where to learn to configure these processor threads in Apache

[web2py] Re: serving php and python in shared hosting

2013-02-12 Thread howesc
to learn about the fcgi processes you should read up on how apache handles multiple requests. there are a few different modes and settings for apache that control when and how many threads/processes apache will start. the short summary: in order to handle multiple requests at the same time

Re: [web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-12 Thread howesc
daily. On Monday, February 11, 2013 9:01:40 PM UTC-8, Alec Taylor wrote: On Tue, Feb 12, 2013 at 4:29 AM, howesc how...@umich.edu javascript: wrote: Thanks Alec, that will be a nice contribution. re my special odd pain in the rear-end login flow.well we (the engineers) failed

[web2py] Re: Installing a plugin with GAE

2013-02-12 Thread howesc
yes, you may unpack the w2p file (which is just a zip file i believe) and copy the files to your application. if you application can run on non-gae then you can do like dhmorgan suggests. On Tuesday, February 12, 2013 5:50:24 AM UTC-8, José Manuel López Muñoz wrote: The plugin is a w2p

Re: [web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-11 Thread howesc
(e.g.: if e-commerce, their cart) will be sent securely to the server on receipt of successful authentication. That would be a much cleaner, more secure, streamlined and self-contained model than your current one. On Sun, Feb 10, 2013 at 9:33 AM, howesc how...@umich.edu javascript: wrote

[web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-09 Thread howesc
this works. Can you give us more details? On Friday, 8 February 2013 20:31:14 UTC-6, howesc wrote: i have millions of APNS tokens! i'd share, but they are tied to an app i did not tie APNS tokesn to web2py auth, but i added fields to my end user table, and the device uses my REST JSON

[web2py] Re: serving php and python in shared hosting

2013-02-09 Thread howesc
yes i suspect it would be an apache configuration. you want to use python connector for www/web2py and php connector for www/joomla. unfortunately i have not configured apache in years and don't know the exact answer. :( sorry i'm not more help. cfh On Saturday, February 9, 2013 11:24:26 AM

[web2py] Re: GAE deployment questions...from a total beginner!

2013-02-09 Thread howesc
feel free to ask more questions as you learning things! cfh On Friday, February 8, 2013 2:54:46 PM UTC-8, Riccardo C wrote: Thanks a lot for all these informations. It seems I have a lot to learn ;) On Wednesday, 6 February 2013 20:54:21 UTC, howesc wrote: Riccardo, some answers

Re: [web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-09 Thread howesc
is pretty specific to our needs and so i don't think it's a candidate for us to open source. i'll take a look into what we are doing though to see if any of it can/should be open sourced. cfh On Saturday, February 9, 2013 11:40:50 AM UTC-8, Kenny wrote: Howesc, Thanks for great info. So, does

[web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-08 Thread howesc
i have millions of APNS tokens! i'd share, but they are tied to an app i did not tie APNS tokesn to web2py auth, but i added fields to my end user table, and the device uses my REST JSON API to POST the APNS tokens to the server and update the user. we don't use the APNS token as any sort

[web2py] Re: Example JSON Code

2013-02-07 Thread howesc
get_days is not a valid url. /get_days might be depending on your routing. for the purposes of getting things working you should put in the fully qualified URL like http://test.exmaple.com/app/json_test/get_days cfh On Thursday, February 7, 2013 2:12:34 PM UTC-8, pal...@gmail.com wrote:

Re: [web2py] Re: error in GAE

2013-02-06 Thread howesc
Samuel, you showed us the console log from when you deployed your code to google app engine. can you use the google app engine admin tool (website) to view the logs there and post us the stack trace? thanks, cfh On Tuesday, February 5, 2013 3:11:36 PM UTC-8, JavierQQ wrote: On Tue, Feb

[web2py] Re: Forcing SSL mode (on GAE)

2013-02-06 Thread howesc
if you want all requests in SSL it sounds like the best thing to me. note that on GAE if you want to use SSL and a custom domain you have to purchase additional add-ons to the GAE service. https on the appspot.com domain is free. cfh On Tuesday, February 5, 2013 9:49:34 AM UTC-8, Philip

[web2py] Re: GAE deployment questions...from a total beginner!

2013-02-06 Thread howesc
Riccardo, some answers: - i backup the source code of my app by using HG or GIT. - google offers data backup via google cloud storage. you can see options for this in the google app engine web admin console - yes it is possible to download GAE data. you'll have to download database data

[web2py] Re: Example JSON Code

2013-02-06 Thread howesc
the URL that you *think* you are requesting via AJAX may not be the URL you are actually hitting. can you check which URL you are trying to make a request to via AJAX? (use the debugging tools included in firefox or chrome to see all network traffic) cfh On Monday, February 4, 2013

[web2py] Re: Can anyone create anyone create some helpful stuff on Codeacademy..??

2013-01-17 Thread howesc
any specific tutorial requests? perhaps that will help get some potential educators going. On Wednesday, January 16, 2013 8:43:11 AM UTC-8, Dreamer wrote: Hi guys, I am a noob to programming after a lot of reading and trying my hands at my languages i decided python as a language of

[web2py] Re: Strange behavior storing data - web2py 2.3.2 - Mac OS X 10.7.5

2013-01-16 Thread howesc
i second the remove the try/except for debugging. I use google app engine and default timeout for a URL fetch on that system is 5 seconds (graph.get_object does a url fetch) i find that in real life facebook does not respond in under 5 seconds much more frequently then i would like - so that

[web2py] Re: web2py, stripe, and pci compliance

2013-01-14 Thread howesc
i did some reading on PCI compliance and it's a quagmire! There are multiple levels of PCI requirements depending on what you do with the data. as best i can tell (without being an expert), a javascript only solution that posts directly to swipe and one where you post data to your server and

[web2py] Re: subforms / formsets / form cloning imprementation

2013-01-07 Thread howesc
i have an (untested) idea...plugging together a few things i have used before - you could create templates of field sets using handlebars: http://handlebarsjs.com/ then you can via JS add them to the page based on user interaction. - you can use hidden fields to provide some meta data

[web2py] Re: Bar encoded text fields

2013-01-07 Thread howesc
shouldn't non-list data types not accept list input? this sounds like an un-expected side effect to me. On Sunday, January 6, 2013 3:25:33 PM UTC-8, Massimo Di Pierro wrote: This is correct in the sense that since you try to store a list, web2py thinks it is a 'list:string' type of object

[web2py] Re: How to import file within another directory of modules

2013-01-06 Thread howesc
i use sub folders all the time - python does the import with dot notation: import users.test_users cfh On Sunday, January 6, 2013 8:15:29 AM UTC-8, villas wrote: Never had to do this but I wonder... Do you really have so many module files for one app that you need to organize them using

[web2py] Re: nothing happens after custom form submission

2013-01-03 Thread howesc
i don't see a {{=form.custom.begin}} in your view. this is required to output the hidden fields that web2py uses to validate the form submission. On Wednesday, January 2, 2013 8:03:47 AM UTC-8, ajith c t wrote: This is my form and controller function. My problem is nothing happens

[web2py] Re: error when logging in using site domain

2013-01-03 Thread howesc
i suspect that it is really a data problem that was somehow masked by the access method. what that error means is that there is a record that references an auth_group record with id of 1 - but that record does not exist. i would suggest you either re-create the group with ID of 1 or find all

[web2py] Re: insert image from filesystem into database on GAE

2013-01-03 Thread howesc
i don't think that GAE allows you to just read a file like that. can we first verify that GAE opens and reads data from the file? i assume this is for setting up some test data? you may have to embed the image data into your python code or do a URL fetch to get the image from a remote

[web2py] Re: web2py 2.3.2 added + - to some form elements

2012-12-19 Thread howesc
ooops. i added the - and didn't test the only 1 row case. i'll try and create a patch tomorrow for it. mind opening a ticket in google code? thanks, christian On Tuesday, December 18, 2012 8:17:11 AM UTC-8, Daniele wrote: The newest version of web2py has added some + and - clickable links

Re: [web2py] Re: lot's of X's in error responses

2012-12-14 Thread howesc
is anybody using request.restful *and* needs the 512 bytes in a restful response? i'm inclined to only skip those bytes for restful requests (because they are usually not displayed by browsers). thanks, cfh On Friday, December 14, 2012 2:48:39 PM UTC-8, Niphlod wrote: Please... let be sure

[web2py] lot's of X's in error responses

2012-12-13 Thread howesc
in http.py there exists this block: if isinstance(body, str): if len(body) 512 and \ headers['Content-Type'].startswith('text/html'): body += '!-- %s //--' % ('x' * 512) # trick IE when i'm using request.restful i don't

[web2py] Re: web2py and rendering geometries (from postgresql)

2012-12-07 Thread howesc
not exactly what you are looking for, but i'm storing geo points for shapes on google app engine, and then rendering delivery zones on a google map for http://www.diginn.com/order/ (enter an address in New York, NY USAduring business hours in the EST and it will bring up the locations

[web2py] @request.restful args...bug or feature?

2012-12-03 Thread howesc
Hi all, i'm trying to parse some data with a restful request that has arguments. my GET looks something like this: http://127.0.0.1:8080/api_v7/test/subscription/com.company.product.IWantYouTheJaSou0001 my controller is api_v7, my method is test, then there are 2 args the last of which has

[web2py] Re: SQLFORM.grid and classes on GAE

2012-12-01 Thread howesc
advantage of having to have only one reference between devices and locations. Any suggestions? Greetings -Luca. Am Donnerstag, 29. November 2012 19:27:03 UTC+1 schrieb howesc: i have not used polymodels so i can't answer the last question.but about that last one, when you access

[web2py] Re: SQLFORM.grid and classes on GAE

2012-11-29 Thread howesc
i have not used polymodels so i can't answer the last question.but about that last one, when you access the GAE datastore viewer (as provided by GAE), what is the name of the table/model that is stored there? does it store location_indoor and location_outdoor, or just location with

[web2py] Re: De-normalizing data to run on GAE

2012-11-29 Thread howesc
in your particular example, i often define a field like: Field('client_code', 'string', required=True, requires=IS_IN_DB(db, 'client.code', '%(code)s')) that does the lookup for the dropdown, but stores the string in the new table. if you will be doing this lots of times then you should

[web2py] Re: Disabling Bootstrap?

2012-11-28 Thread howesc
you may also go to the bootstrap website and customize some of those widths and things and create a custom set of the bootstrap files to download and replace the versions shipped with web2py. On Tuesday, November 27, 2012 1:25:37 AM UTC-8, Niphlod wrote: bootstrap is a css framework. If you

[web2py] Re: set field values in sqlform.grid new page

2012-11-28 Thread howesc
you may modify table/field attributes in the controlleri often change the default value of a field in a controller based on context and overriding the one i set in my model. db.table.field.default = 'foo' can be inserted into your controller before you construct the grid and you should be

[web2py] Re: registeration_key ?

2012-11-28 Thread howesc
it's a magic field used by the web2py auth system. if you registration requires verification is true for your auth instance, new users will have this key set when they create an account, an email will be sent to them with a link to verify their email address. when they click on the link auth

[web2py] Re: Row level access on GAE datastore

2012-11-27 Thread howesc
in your case i would suggest using the requires login decorator, and then in the controller function limiting what rows are viewed/updated by writing a query where created_by==auth.user.id (or something similar based on your schema). yes, you would have to write a (hopefully simple) controller

[web2py] Re: Newbie: Cascading deletes with SQLFORM.grid and GAE

2012-11-27 Thread howesc
, November 25, 2012 12:13:41 AM UTC-6, howesc wrote: honestly, i'm not smart enough to use logging.conf. i'm not sure how much of it is GAE overriding things, and how much of it is my inability to read the docs and understand how it works! anyhow, i don't have a logging.conf in my GAE setups

[web2py] Re: Maintenance Mode

2012-11-24 Thread howesc
Martin, 1. i didn't know about maintenance modehow do you trigger it? i suspect there is a way to route it to use a particular set of view(s) 2. there is a request.is_local i believe that is set if the request is from the same server as the process serving the request. that should be

[web2py] Re: Newbie: Cascading deletes with SQLFORM.grid and GAE

2012-11-24 Thread howesc
console. If I renamed the logging file back to logging.example.conf then I can request pages and run the app just fine. On Friday, November 23, 2012 7:47:26 PM UTC-6, howesc wrote: can you add some logging in and let us know if there are exceptions? about the delete limitations - web2py

[web2py] Re: Newbie: Cascading deletes with SQLFORM.grid and GAE

2012-11-23 Thread howesc
can you add some logging in and let us know if there are exceptions? about the delete limitations - web2py iterates over the set of items to delete and deletes them (the version in trunk is improved over the last release, but both still work). if the set of items to delete is large the query

[web2py] Re: Running GAE locally - beginners question

2012-11-21 Thread howesc
can you open the logs in the GAE launcher and paste in the output from a launch and first URL access? i suspect there is a config issue and hopefully the logs will help us debug! cfh On Tuesday, November 20, 2012 6:40:39 AM UTC-8, Andy W wrote: I am having trouble getting GAE to run a

[web2py] Re: Unable to send email in web2py

2012-11-21 Thread howesc
login to gmail and check out that google is not requiring a verification (i find that for my unused email aliases that i send from that every few months google wants me to login for real to keep the account active). also double check the google docs, i think there is a couple of smtp ports

[web2py] Re: Please help me, add button not work

2012-11-20 Thread howesc
have you tried putting some logging in cart_callback to see if it actually gets called? are there JS errors in the browser (check the error console)? have you used the developer tools (now built in to both FF and chrome) to inspect the HTML, and check the HTTP traffic between client and

Re: [web2py] Sending and Recieving JSON data...

2012-11-20 Thread howesc
i do a lot of: post_data = json.loads(request.body.read()) ... return json.dumps(retval) works nicely for me. :) On Sunday, November 18, 2012 10:09:15 PM UTC-8, Jonathan Lundell wrote: On 18 Nov 2012, at 9:54 PM, Jason Brower enco...@gmail.com javascript: wrote:

Re: [web2py] Re: Multi-language website with GAE + parameter-based system

2012-11-15 Thread howesc
glad it is working! On Thursday, November 15, 2012 11:10:50 AM UTC-8, David Sorrentino wrote: Hi howesc, Testing the regex I found out the error. Intead of: url: /(?Pa.+?)/static/\w\{2}?/(?Pb.+) it should be: url: /(?Pa.+?)/static/\w{2}?/(?Pb.+) So a backslash was making

[web2py] Re: Placing the database of a web2py app on the cloud

2012-11-14 Thread howesc
VP might very well be using an EC2 instance, but his DB might be an RDS instance or something that is not on the EC2 instancethe cross-server connection still needs to be setup in that case as well. :) On Wednesday, November 14, 2012 1:28:26 AM UTC-8, Tim Richardson wrote: I'm curious

Re: [web2py] Re: Multi-language website with GAE + parameter-based system

2012-11-14 Thread howesc
the error is not obvious to me. :( can you verify that your regex matches your URL? On Tuesday, November 13, 2012 6:01:09 AM UTC-8, David Sorrentino wrote: Hi howesc, Thanks for your reply! I tried to set the regex for my needs, but I guess that I am wrong in something. I edited

[web2py] Re: SQLTABLE(query) produces different SQL than SQLFORM.grid(query)

2012-11-14 Thread howesc
isn't there an option on grid to not show the ID? i know that grid uses the ID for allowing you to click links to edit and such... On Tuesday, November 13, 2012 11:15:17 PM UTC-8, Johann Spies wrote: The following code: fields = [db.rjoernaal.so, db.rpublisher.pu, db.rpublisher.pi]

[web2py] Re: Placing the database of a web2py app on the cloud

2012-11-12 Thread howesc
if you are using a SQL instance (mysql, postgres etc), you'll just have to use a fully qualified connection string rather than localhost. all the rest should be the same (once all the pieces are setup and proper ports opened up). cfh On Monday, November 12, 2012 7:33:14 AM UTC-8, VP wrote:

[web2py] Re: Multi-language website with GAE + parameter-based system

2012-11-12 Thread howesc
i don't know the full deal with the routerbut it looks like the path to the static files is incorrect (notice the 'en' in the path). you can strip this out in app.yaml (my example strips out a random cache busting param after the 'static/' in the path, you can modify the regex to meet your

Re: [web2py] SQLFORM.grid exports the whole table

2012-11-06 Thread howesc
i agree that i expected the export buttons to export what is shown above. if you want to export the whole table, remove all filters so that the whole table is shown above and then click export. (note that i do expect export to export all the rows that match the query even if the table above

[web2py] Re: sym link for an application - is it possible?

2012-11-06 Thread howesc
what webserver are you using? for security some web servers don't follow symlinks unless explicitly told they can. On Tuesday, November 6, 2012 12:40:37 AM UTC-8, dederocks wrote: I'd like to have an application folder on dropbox, so I've replaced the application folder with a link on the

Re: [web2py] Re: SQLFORM.smartgrid oncreate,ondelete not firing

2012-11-06 Thread howesc
sure it fires only when a new record is created for the child table in this case quotelines . Suppose if I have 2 different functions to be fired for the parent - oncreate and child - oncreate? Regards, Vivek On Monday, October 29, 2012 11:39:08 PM UTC+4, howesc wrote: something like

[web2py] Re: GAE and count and smartgrid

2012-11-05 Thread howesc
i made a patch for reviewhttp://code.google.com/p/web2py/issues/detail?id=1143 On Monday, October 15, 2012 7:26:00 PM UTC-7, howesc wrote: Hi all, I am trying to integrate smartgrid into my web2py GAE app..but i have some tables with millions of rows, so when i want to load a table

[web2py] Re: Is it possible to submit multiple forms with one submit button?

2012-11-04 Thread howesc
i suspect there are a couple of options here, though i encourage you to think carefully before implementing them (i assume that there is good reason why forms still work the way they do). - you can create a button with an onclick action that will collect data from various input fields and

[web2py] Re: Probleme with 301 redirect when URL has hyphens!

2012-11-02 Thread howesc
i use the regex based routerso i'm not up on all the options for the parametric router. that said, 2 things come to mind: - invalid controller might return a 500? you could try that in your routes.on_error (try catching 500 errors i mean). - for web2py to be happy you'd need to rewrite

Re: [web2py] Re: delete on GAE

2012-11-01 Thread howesc
/issues/detail?id=1134 thanks! cfh On Saturday, October 20, 2012 6:18:23 PM UTC-7, howesc wrote: sure. i'll make a patch soon... thanks for the input! cfh On 10/20/12 13:29 , Massimo Di Pierro wrote: I meant to skip count. On Saturday, 20 October 2012 15:28:56 UTC-5, Massimo Di

[web2py] Re: validate table cell

2012-10-29 Thread howesc
it sounds like something that you want to do in javascript. search for how to write onSubmit methods for JS. I personally like to use jQuery to help me select things and then create your validation. On Thursday, October 25, 2012 2:41:35 AM UTC-7, Wouter Pronk wrote: Hello All, I have a

Re: [web2py] Re: SQLFORM.smartgrid oncreate,ondelete not firing

2012-10-29 Thread howesc
something like: def myondelete(table, row_id): pass form = SQLFORM.smartgrid(..., ondelete=myondelete, ...) On Sunday, October 28, 2012 6:57:12 AM UTC-7, vivek wrote: So how would the new code be? I am a newbie a bit of direction needed! On Sun, Oct 28, 2012 at 5:39 PM, Niphlod

[web2py] Re: extending dal

2012-10-29 Thread howesc
i'm not claiming to be an expert herebut each database connector is a class, for example, my current favorite: class GoogleDatastoreAdapter(NoSQLAdapter): so i suspect you can create an Adapter class and use it with the DAL with little or no modifications to DAL.py. I've not tried it

[web2py] Re: Append to list:reference or list:string with update_record

2012-10-26 Thread howesc
i don't believe that it is possible. you need to read the list, append to it, and then update_record with the full list. On Thursday, October 25, 2012 4:05:11 PM UTC-7, Mark Li wrote: Is it possible to append to a database list (like list:reference or list:string) with update_record, as

[web2py] Re: DB filled with data, now what? How to operate with view?

2012-10-22 Thread howesc
yes, i would do the query in the controller, and output my custom HTML in the view that uses CSS to indent the div or whichever HTML element that you use to get your layout. cfh On Monday, October 22, 2012 1:30:04 PM UTC-7, MJo wrote: I've got scheduler working and DB is getting data. Now

[web2py] Re: delete on GAE

2012-10-20 Thread howesc
, October 20, 2012 7:58:56 AM UTC-7, Massimo Di Pierro wrote: Delete should return the number of deleted records. What is your proposal? On Wednesday, 17 October 2012 17:30:22 UTC-5, howesc wrote: Hi all, I'm trying to clean up old expired sessions.but i waited a long time to get

[web2py] delete on GAE

2012-10-17 Thread howesc
Hi all, I'm trying to clean up old expired sessions.but i waited a long time to get to this and now my GAE delete is just timing out. Reading the GAE docs, there appears to be some improvements that we can make to the query delete method on GAE that will make it faster and cheaper. what

[web2py] Re: proposal: change SQLFORM delete checkbox handling

2012-10-17 Thread howesc
i don't mind the functionality change, though i'll admit that i often forget to update web2py_ajax.html and web2py.js on upgrade. if you add a note to the release that contains this to help remind me that would be helpful. :) On Tuesday, March 23, 2010 6:30:10 AM UTC-7, mdipierro wrote: The

[web2py] Re: tags and speed

2012-10-17 Thread howesc
what database are you using? you might need to add a custom index to your database. try using db._lastsql to see the SQL that web2py executed, and then use the explain query plan feature of your database to look for possible index(es) to add. cfh On Wednesday, October 17, 2012 2:09:17 AM

[web2py] GAE and count and smartgrid

2012-10-15 Thread howesc
Hi all, I am trying to integrate smartgrid into my web2py GAE app..but i have some tables with millions of rows, so when i want to load a table with no query filters the count() fails to return on GAE in 60 seconds. I'm thinking about creating a patch to grid/smartgrid that does not use

[web2py] Re: GAE: importing code into controllers

2012-10-15 Thread howesc
while i'm still using 2.0.xi've not had module import problems on GAE for several versions of web2py. if you are still having problems can you post an example with the error messages? On Monday, October 15, 2012 10:19:15 AM UTC-7, b00m_chef wrote: I have an app and need to split out some

[web2py] Re: GAE issue - app works on Appspot - not on desktop

2012-10-15 Thread howesc
can you show us the error from the GAE log console when running locally? chances are the code you downloaded has an app.yaml config or something that is not compatible with the latest GAE SDK (i've had that happen to me in the past couple of years). i still use modules as on all other

[web2py] Re: Google App Auth

2012-10-08 Thread howesc
this is horribly outdated, but should give you some ideashttp://www.web2pyslices.com/slice/show/1402/facebook-twitter-and-google-authentication i don't think that version of FB auth works at all anymore. On Sunday, October 7, 2012 3:33:28 AM UTC-7, Kenneth wrote: Hello everyone, I

[web2py] Re: GAE users… help

2012-10-02 Thread howesc
i added a comment to the ticket. GAE deprecated that some time ago and we just didn't keep up. looks like it is updated in trunk. cfh On Monday, October 1, 2012 6:58:08 PM UTC-7, Massimo Di Pierro wrote: What about this ticket?

[web2py] Re: running a background process on GAE within web2py

2012-10-01 Thread howesc
Excellent answer! one more thing for the ambitious - if you have a long running task that might hit the google timeout, or that you want to take off of the web serving instances you can target taskqueues to backend instances. https://developers.google.com/appengine/docs/python/backends/ i

[web2py] Re: NDB Support

2012-09-27 Thread howesc
i personally hadn't looked at it until you just askedit might be helpful to me if i didn't have to change much (any) of my code. i know i won't get to implementation myself for a while, but i'm sure massimo will take a patch. :) On Thursday, September 27, 2012 7:07:52 AM UTC-7, Felipe

[web2py] Re: Manually send confirmation email

2012-09-27 Thread howesc
you may be able to use the onaccept handler of auth.register() to add custom processing to auth without too much extra work. you can add extra fields to the auth form, and then do custom processing and let auth do the rest of the work. On Thursday, September 27, 2012 6:24:15 AM UTC-7, Bruno

[web2py] Re: Strange quirks with GAE

2012-09-25 Thread howesc
i use GAE to send mail daily i have neither of these problems. there must be something amuck somewhere... re #2, GAE does require sending from a verified sender and they way they do that is the sender must be an admin on the GAE console. you can invite any email address you like to be a

[web2py] Re: facebook comments

2012-09-24 Thread howesc
sounds like you need to add a meta property to the HEAD of your HTML: meta content=http://www.starmakerstudios.com/song/106383654/starships; property=og:url of course you'll want to use your page URL where my URL is. i believe that you can use response.meta:

[web2py] Re: sending emails on gae doesnt work

2012-09-23 Thread howesc
did you check the GAE logs? remember that GAE won't send emails unless the from address is at least a viewer of the GAE application. please double check the GAE logs for warning messagesi think that is how google logs them. cfh On Sunday, September 23, 2012 3:35:16 PM UTC-7, Pystar

  1   2   3   4   5   6   7   >