[web2py] SASS experience

2010-05-04 Thread Carl
hi, Is anyone using SASS to manage their CSS definitions? http://sass-lang.com/ And if so, how have you managed web2py's css files? thanks

[web2py] Re: SASS experience

2010-05-04 Thread Carl
milar to SASS. > > However, for dynamic css I use it as a template. And for small apps I > just write css straight up in the static folder. > > -- > Thadeus > > > > On Tue, May 4, 2010 at 9:12 AM, Carl wrote: > > hi, > > > Is anyone using SASS to

[web2py] Re: SASS experience

2010-05-04 Thread Carl
perhaps it's time I dropped the css I've adopted from web2py! :) On May 4, 6:04 pm, Thadeus Burgess wrote: > I do not understand. I do not have any web2py css files. > > -- > Thadeus > > > > On Tue, May 4, 2010 at 11:58 AM, Carl wrote: > > thanks fo

[web2py] applying multiple decorators in a/c/default.py

2010-05-07 Thread Carl
I'd like to use several decorators on a function e.g., @auth.requires_login() @service.jsonrpc def add_team(name, cap): #function uses auth.user.id In testing I've realised that service.jsonrpc is working but auth.requires_login isn't. ie if a user is not logged in then service.jsonrpc is c

[web2py] flawed architecture creating race condition for database writes

2010-05-27 Thread Carl
the flaw is in my architecture not web2py. can you help with a better approach? Needs to be BigTable-friendly to boot. I have two user types: Agents and Candidates Agents invite Candidates to Parties. I keep a Party table recording all such Party invites. Candidates can be invited to the same Par

[web2py] Re: flawed architecture creating race condition for database writes

2010-05-27 Thread Carl
ceberg wrote: > On May27, 11:32pm, Carl wrote: > > > > > > > the flaw is in my architecture not web2py. can you help with a better > > approach? Needs to be BigTable-friendly to boot. > > > I have two user types: Agents and Candidates > > Agents invit

[web2py] Re: flawed architecture creating race condition for database writes

2010-06-01 Thread Carl
global ThreadLock so that developers can do: > >     def invite(): >         with web2py_lock: >             form = ... >             if form.accepts(...): >             ... > > or maybe a syntactic sugar: > >     @with_lock >     def invite(): >         all_the_

[web2py] Re: flawed architecture creating race condition for database writes

2010-06-02 Thread Carl
27;t have Candidates checking the same invite simultaneously. On Jun 2, 2:52 am, Richard wrote: > I am not sure how to do it through web2py, but if working directly > with the GAE API you can set the entities "key_name" to avoid > duplicates. > > On Jun 2, 1:21 am, Carl wrot

[web2py] LinkedIn OAuth example requested

2010-06-18 Thread Carl
hi Has anyone got a basic example project of using LinkedIn OAuth with the Web2py platform? Something based on Welcome for example. I've tried to integrate linkedin_account.py but haven't quiet gotten it working. It may be my local set-up rather than code. I'm also thinking a lot of potential web

[web2py] Re: Opera Browser

2010-06-18 Thread Carl
I don't use Web2py integrated code editor (I use Eclipse) but I had a look for you. However, on Windows 7 using Opera 10.53 the editor runs speedily. On Jun 18, 10:39 am, selecta wrote: > I use opera every day :) > For me everything is really fast ... since I changed to 10.5x > But I really don

[web2py] Re: Opera Browser

2010-06-18 Thread Carl
I don't use Web2py integrated code editor (I use Eclipse) but I had a look for you. On my Windows 7 box using Opera 10.53 the editor runs speedily. On Jun 18, 10:39 am, selecta wrote: > I use opera every day :) > For me everything is really fast ... since I changed to 10.5x > But I really don't k

[web2py] Re: LinkedIn OAuth example requested

2010-06-18 Thread Carl
in_methods/linkedin_account.py > in > web2py.com/linkedin > > On Jun 18, 6:56 am, Carl wrote: > > > > > hi > > > Has anyone got a basic example project of using LinkedIn OAuth with > > the Web2py platform? Something based on Welcome for example. > > > I

[web2py] Re: GAE update_record() has subtle difference compared to native Web2Py

2010-02-03 Thread Carl
uired=True is not the same as requires=IS_NOT_EMPTY() and it is not > the same as notnull=True. > > required=True means you cannot do insert without providing a value for > this field and that is exactly what you tell me the problem is. > > On Feb 3, 12:22 pm, Carl wrote: > >

[web2py] GAE delete() has subtle difference compared to native Web2Py

2010-02-03 Thread Carl
This may be related to GAE update_record() has subtle difference compared to native Web2Py http://groups.google.com/group/web2py/browse_thread/thread/a69afded01d12d18/3f4f21acdff0c34b#3f4f21acdff0c34b but until shown otherwise, I've posed separately. I have this in db.py: db.define_table('team_us

[web2py] Re: GAE update_record() has subtle difference compared to native Web2Py

2010-02-03 Thread Carl
d('name_lower', compute=lambda > r:r['name'].lower(),readable=False,writable=False) > > Perhaps you do not display the field name in the form? > > On Feb 3, 5:57 pm, Carl wrote: > > > > > I've traced right now to the exception and I get KeyErr

[web2py] storing a Python list

2010-02-17 Thread Carl
I have a Python list that I want to store and retrieve from the data store. The individual items of the list are of no use unless used with the items of the complete list and there are no use-cases requiring searching for a specified list item. The number of items in the list is between one and fi

[web2py] Re: storing a Python list

2010-02-17 Thread Carl
: > On Feb 17, 10:47 am, Carl wrote: > > > I have a Python list that I want to store and retrieve from the data > > store. > > > The individual items of the list are of no use unless used with the > > items of the complete list and there are no use-cases requiring &

[web2py] Difference between dev_appserver and local web2py/sqlite: Field "string" containing '\n'

2010-02-19 Thread Carl
Tested the latest changes locally on dev_appserver. All went smoothly in that only one difference from local Web2py tripped up the process. Pickling lists into strings and storing them in the database: dev_appserver barked when a pickled string contained '\n' was inserted into a field of type 'st

[web2py] datetime's sub-second information: query about its handling for different databases

2010-02-21 Thread Carl
Following Dan's posting last year about the loss of microseconds when storing Python DateTime instances in SQLite http://groups.google.com/group/web2py/browse_thread/thread/f9b8cbb6601a9f58/d45f7d737f4e7932?lnk=gst&q=datetime+precision#d45f7d737f4e7932 I've got to this area too :) Dan suggests a w

[web2py] Re: storing a Python list

2010-02-23 Thread Carl
tuff to list > > > > MY_PICKLE.save("listkey", a_list) > > > > -Thadeus > > > > On Wed, Feb 17, 2010 at 1:20 PM, spiffytech wrote: > > > > I'm serializing with Pickle in my app, but it's a hassle to dump/load > > > >

[web2py] Re: storing a Python list

2010-02-23 Thread Carl
returns? Perhaps I need to escape my parameter in encoder/decoder in db.py? On Feb 23, 9:50 am, mdipierro wrote: > before the > > ... insert() > > can you > > print ..._insert(...) > > this will tell us what is being sent to the db. > > On Feb 23, 3:29 am,

[web2py] Re: storing a Python list

2010-02-23 Thread Carl
der = (lambda x:cPickle.dumps(s) > > but > > encoder = (lambda x: "'%s'" % cPickle.dumps(s).replace("'", "''")) > > This is why the SQLCustomType API needs to be rewritten. > > On Feb 23, 4:06 am, Carl wrote: > > > > > p

[web2py] Re: datetime's sub-second information: query about its handling for different databases

2010-02-23 Thread Carl
ot about the issue. will take a second look. > > On Feb 21, 5:48 am, Carl wrote: > > > > > Following Dan's posting last year about the loss of microseconds when > > storing PythonDateTimeinstances in > > SQLitehttp://groups.google.com/group/web2py/browse_thread/

[web2py] Re: storing a Python list

2010-03-01 Thread Carl
7;) If I use a field of type 'text' and perform the pickling in my module code then I can put lists in and get lists out. Any idea why? it'd be real nice to define the pickling once in db.py On Feb 23, 10:30 am, Carl wrote: > thanks for the turn of speed! > > I now

[web2py] Where to install Linked library under Web2py?

2010-03-25 Thread Carl
I aim to use web2py\gluon\contrib\login_methods\linkedin_account.py along with http://code.google.com/p/python-linkedin/ I'm deploying on GAE so I was hoping someone had a suggestion of where I should install the library (http://code.google.com/p/python- linkedin/) within Web2py? Should it be wit

[web2py] Re: Where to install Linked library under Web2py?

2010-03-25 Thread Carl
to drop in the login_methods folder. > > The proper way would be to install the module in web2py/site-packages > and make sure that, on gae, site-packages is added to sys.path > > On Mar 25, 9:18 am, Carl wrote: > > > > > I aim to use web2py\gluon\contrib\login_me

[web2py] Web2py & LinkedIn/OAuth and dev_appserver too

2010-03-25 Thread Carl
hi all, I'm using http://code.google.com/p/python-linkedin/ from contrib/ login_methods/linkedin_account.py In db.py I've added: KEY = 'my key' SECRET = 'associated secret' RETURN_URL = http://localhost:8080/a/c/f auth.settings.login_form=LinkedInAccount(request, KEY, SECRET, RETURN_URL) In link

[web2py] Re: Web2py & LinkedIn/OAuth and dev_appserver too

2010-03-25 Thread Carl
ote: > I do not think it works from localhost. It must run from a public url. > I have it running here:http://web2py.com/linkedin > > On Mar 25, 12:42 pm, Carl wrote: > > > > > hi all, > > > I'm usinghttp://code.google.com/p/python-linkedin/fromcontrib/ &g

[web2py] Re: Web2py & LinkedIn/OAuth and dev_appserver too

2010-03-26 Thread Carl
hi M Could I get a copy of your example code behind: http://web2py.com/linkedin p.s. when I click login on your example I am not taken to a linked authentication page. Should I expect that? On Mar 25, 6:12 pm, Carl wrote: > This pagehttp://code.google.com/p/python-linkedin/claims &

[web2py] How do I remove the last entry returned by Set.select() without deleting from the db table?

2010-04-15 Thread Carl
I'm building a ui that lists results to the user. if there are further results available a "More" button allows the user to retrieve them (and have them displayed beneath the existing results) To calculate if there are indeed more results available I am using limitby and requesting one more result

[web2py] Re: How do I remove the last entry returned by Set.select() without deleting from the db table?

2010-04-15 Thread Carl
en(rows) == max+1: >    #lose last row! >    #but how? > results = self.build_results( *rows[:max] *) > return results > > Sorry if it doesn't work. I can't try it now. > > Regards, > Tiago Almeida > > > > On Thu, Apr 15, 2010 at 10:48 AM, Carl wrote:

[web2py] handing a file upload submitted outside of web2py

2010-08-27 Thread Carl
I'm using Pyjamas to build my client app and Web2py to build the server. I'm submitting a HTML form (generated by Pyjamas) to the Web2py server code. Where should I look to see how I can handle the submission using Web2py? I already have a function defined in /app/controllers/default.py which ge

[web2py] Re: handing a file upload submitted outside of web2py

2010-08-27 Thread Carl
thanks for replying. It's not an image that's being uploaded but instead an XML file which I will be parsing the contents of into a database table. Carl On Aug 27, 5:24 pm, "Martin.Mulone" wrote: > do you want to access to the image uploaded with form for example?. >

[web2py] Re: handing a file upload submitted outside of web2py

2010-09-01 Thread Carl
Aug 27, 6:33 pm, Carl wrote: > thanks for replying. > It's not an image that's being uploaded but instead an XML file which > I will be parsing the contents of into a database table. > > Carl > > On Aug 27, 5:24 pm, "Martin.Mulone" wrote: > > > &g

[web2py] How to manipulate a file uploaded to server using web2py framework

2010-09-01 Thread Carl
I'm uploading a file from a html form submitted from a page built by "pyjamas" pyjs.org Such files contain XML and I have a method on the server to parse the content of such files and generate rows in various tables. Such files are <1MB in size (probably ~50KB at most). What is a good approach to

[web2py] Re: How to manipulate a file uploaded to server using web2py framework

2010-09-01 Thread Carl
n and in gae you are going to have problems. You can > use an iframe for showing in another page. > > On Sep 1, 12:48 pm, Carl wrote: > > > > > I'm uploading a file from a html form submitted from a page built by > > "pyjamas" pyjs.org > > > Such files

[web2py] upgrade from 1.84.4 to 1.85.1 fails operations into datastore in sqlite but not GAE

2010-09-20 Thread Carl
It took a bit of binary upgrading to pin down this issue but I#ve found that it's between 1.84.4 and 1.85.1 However since 1.85.1 (thru to 1.85.3) selects and inserts to the datastore fail when I use a SQLCustom definition (see details below). On dev_appserver all continues to work fine. But local

[web2py] Re: upgrade from 1.84.4 to 1.85.1 fails operations into datastore in sqlite but not GAE

2010-09-20 Thread Carl
atforms is going to trip developers up. On Sep 20, 2:35 pm, mdipierro wrote: > Can you please try trunk? > > On Sep 20, 8:09 am, Carl wrote: > > > > > It took a bit of binary upgrading to pin down this issue but I#ve > > found that it's between 1.84.4 and 1.85

[web2py] does Field attribiute unique=True work on GAE?

2010-09-23 Thread Carl
My db.py includes... db.define_table('voucher', Field('code', 'string', length=128, unique=True, notnull=True, required=True), Locally on sqlite when I insert a second record with the same 'code' as an existing record insert() throws an except. I catch the exception and report back t

[web2py] Re: Select specific fields on GAE

2010-10-01 Thread Carl
I'd like to second that comment - and add patient community and lead architect to it too! On Oct 1, 1:47 pm, István Gazsi wrote: > Thanks Massimo, you're working really fast! And by the way web2py has > the most user-friendly developers and community I have ever seen. :)

[web2py] almost have linkedin oauth working within web2py application. just need one more push

2010-10-08 Thread Carl
I've been following the instructions at http://code.google.com/p/python-linkedin/ to add linkedin authentication. I grabbed the latest revision (#20) from svn. I've started by creating a new app (and called it oauth) within web2py to keep things simple. Into default.py I've added the following f

[web2py] Re: almost have linkedin oauth working within web2py application. just need one more push

2010-10-11 Thread Carl
rieves a host name including a port number. The line url_port = ':' + r.env.server_port adds the port number again. The headache is: why does this happen within Eclipse but not from a command-line? Does anyone know the cure for this headache? On Oct 9, 8:15 pm, Carl Roach wrote: >

Re: [web2py] Re: almost have linkedin oauth working within web2py application. just need one more push

2010-10-11 Thread Carl
I'm on 1.85.3, the same as your example I'll update tomorrow to 1.86.3 and see if I get the same behaviour thanks for the help C On 11 October 2010 21:06, Michele Comitini wrote: > Carl, on 2nd thought... do you have 1.86.3, do you? > there was a bug in some erlier version..

[web2py] Re: almost have linkedin oauth working within web2py application. just need one more push

2010-10-12 Thread Carl
don't know why I didn't upgrade (it's normally the first thing I try) 1.86.3 has removed the bug! sorry to have wasted your time. I'll now have a go at adding Linkedin to your example app. C On Oct 11, 9:29 pm, Carl wrote: > I'm on 1.85.3, the same as your examp

[web2py] OAuth and Linkedin on dev_appserver trips with a 303

2010-10-12 Thread Carl
I started with Michele Comitini pointing me towards his example of oauth with twitter (it also has facebook) http://code.google.com/r/michelecomitini-facebookaccess/source/browse/%23hg/applications/helloTwitter&usg=AFQjCNGD_upo3rTb6VeNIEAo9EP5HA1mqg The Twitter oauth worked fine locally but on Wi

[web2py] Re: almost have linkedin oauth working within web2py application. just need one more push

2010-10-12 Thread Carl
I have a basic linked oauth working. Now it's a question of parsing LinkedIn replies. thanks for your help C On Oct 12, 10:20 am, Carl wrote: > don't know why I didn't upgrade (it's normally the first thing I try) > > 1.86.3 has removed the bug! sorry to have wast

[web2py] How does Web2py identify unique users who login via oauth?

2010-10-13 Thread Carl
hi In my web2py login is done using oauth (via LinkedIn). How does Web2py differentiate between users? Without oauth I can see in the table auth_user that email is unique and can be mapped. When I login using a LinkedIn account I don't see anything unique in auth_user. What am I missing / not

[web2py] Re: How does Web2py identify unique users who login via oauth?

2010-10-13 Thread Carl
Have worked out the answer; and it's an obvious answer. auth_user.username can be set to a linkedin user's profile id. On Oct 13, 5:19 pm, Carl wrote: > hi > > In my web2py login is done using oauth (via LinkedIn). > > How does Web2py differentiate between users? &g

[web2py] Re: Vote for a new logo

2010-10-14 Thread Carl
great idea for an app. as well as voting perhaps adding a comment field could be offered as an option? Such comments could help logo designers iterate designs. On Oct 14, 11:07 am, rochacbruno wrote: > The app needs some improvements that will be done today. > > 1 order logos by number of votes

[web2py] How to do one-off registration tasks when using LinkedIn to authenticate/login

2010-10-14 Thread Carl
My app has two methods for creating user accounts (for two different user groups) The first is conventional and takes email/password and sets auth.settings.register_onaccept to a function that adds the new user to various 'permission' groups. The second authenticates via LinkedIn but on return I'

[web2py] Is user in [app]/[controller.py]/user hard-coded into Web2py?

2010-10-15 Thread Carl
Is there a way to use [app]/default/agent instead of app/default/user? I want to have two implementations of authentication (/agent and / candidate)

[web2py] Re: Vote for a new logo

2010-10-15 Thread Carl
Have we considered using 99designs.com? Logo design is one of their specialities. No offence intended (to anyone, at all!)

Re: [web2py] Re: Is user in [app]/[controller.py]/user hard-coded into Web2py?

2010-10-15 Thread Carl
gt; def candidate(): return dict(form=auth()) > > and in the two functions you can set different default for auth_user > fields. > > On Oct 15, 8:45 am, Carl wrote: > > Is there a way to use [app]/default/agent instead of app/default/user? > > > > I want to have two implementations of authentication (/agent and / > > candidate)

Re: [web2py] Re: Is user in [app]/[controller.py]/user hard-coded into Web2py?

2010-10-15 Thread Carl
I'm glad I don't need two user tables. I ideally would want to stick to a single table. On 15 October 2010 19:14, mdipierro wrote: > Not necessarily and I would not do it that way but you can. > > > > On Oct 15, 1:12 pm, Carl wrote: > > thanks M. > > >

Re: [web2py] Re: Is user in [app]/[controller.py]/user hard-coded into Web2py?

2010-10-15 Thread Carl
I need to add some permissions and do other one-off stuff) when they come back from LinkedIn. The problem is that registration doesn't take place at all and I can't figure out how to get this one-off registration phase called. can you point me in the right direction? On 15 October 2010

Re: [web2py] Re: Is user in [app]/[controller.py]/user hard-coded into Web2py?

2010-10-15 Thread Carl
g I should have done to avoid this route through the code? I'm currently using it to pass a "return url" to LinkedIn and I'd like a different url besides /user/ On 16 October 2010 01:01, Carl Roach wrote: > Thanks M > I'll base my agent user type on your a

Re: [web2py] Re: Is user in [app]/[controller.py]/user hard-coded into Web2py?

2010-10-15 Thread Carl
is indeed a > problem. One solution would be to extend Auth and override url() > > On Oct 15, 9:07 pm, Carl wrote: > > One small problem I'm coming across... > > > > I'm using OAuth to login via LinkedIn for a subset of my users. > > > > In gluon/too

[web2py] Re: Is user in [app]/[controller.py]/user hard-coded into Web2py?

2010-10-15 Thread Carl
4:51 am, mdipierro wrote: > On a second look... 'user' only appears in auth.settings. therefore > you can change them. > > On Oct 15, 9:51 pm, mdipierro wrote: > > > > > > > > > I did not realize that...  can change it but for now it is indeed a >

Re: [web2py] Re: Is user in [app]/[controller.py]/user hard-coded into Web2py?

2010-10-15 Thread Carl
gt; RPX (LinkedId) + web2py Auth module > this could help: http://www.web2pyslices.com/main/slices/take_slice/28 > > Cheers, > rad > > On Oct 16, 12:40 pm, Carl Roach wrote: > > I've got authentication working with LinkedIn. But no registration step > happens... I would like to ad

Re: [web2py] Re: Is user in [app]/[controller.py]/user hard-coded into Web2py?

2010-10-15 Thread Carl
how to setup is account? You cannot decide from the url! No > because it would not be safe since the user decides the url. > > massimo > > On Oct 15, 10:59 pm, Carl wrote: > > thanks for the pointer Radomirs. > > the slice has the registering step d

Re: [web2py] Re: Is user in [app]/[controller.py]/user hard-coded into Web2py?

2010-10-15 Thread Carl
one thought: for one set of users I'll have been given an email address and password and for the other set I'll have a LinkedIn user key On 16 October 2010 06:06, Carl wrote: > good question! > > if the account is authenticated using linkedin then I want to set-up the >

[web2py] Re: Vote for a new logo

2010-10-17 Thread Carl
How about Web heart Py with a '2' within the heart symbol On Oct 13, 10:17 pm, Bruno Rocha wrote: > Martin Mulone made the logovote application. > > I am hosting at my server > > You can post logo ideas, and vote for you prefered logo. > > Better if you made an transparent canvas .gif or .png max

[web2py] What am I missing when trying to update table_user_name?

2010-10-28 Thread Carl
I am trying to add a registration step when users login using OAuth (LinkedIn in my example). a) am I taking a good approach? b) why am I getting an exception when I try to write to my user table? >From db.py: auth.settings.table_user = db.define_table( auth.settings.table_user_name, db.F

[web2py] Re: What am I missing when trying to update table_user_name?

2010-10-28 Thread Carl
last_name=profile.last_name, registration_id=profile.id, registration_key=profile.id, email=profile.id) On Oct 28, 4:25 pm, Carl wrote: > I am trying to add a registration step when users login using OAuth > (LinkedIn in my example). > &

[web2py] update_record() failing on user record

2010-10-29 Thread Carl
When I try and do an update_record() I get an exception. Is there something wrong with my table definition? Can anyone help? >From db.py: auth.settings.table_user = db.define_table( auth.settings.table_user_name, db.Field('email', 'string', length=254, unique=True, notnull=True, required=T

Re: [web2py] Re: update_record() failing on user record

2010-10-29 Thread Carl
anual example... > > >>>rows=db(db.person.id>2).select() > >>>row=rows[0] > >>>row.update_record(name='Curt') > > http://www.web2py.com/book/default/chapter/06?search=update_record > > -D > > > On Oct 29, 3:32 pm, Carl wrote: >

[web2py] rallying developers who are combining Web2py and the Pyjamas compiler

2010-11-01 Thread Carl
hi all, I've set-up a group on LinkedIn to publicize that developers are combining Web2py with the Pyjamas compiler*. If you are using both, please consider joining Web2Pyjamas at linkedin.com/groups?gid=3634078 This can, I hope, act as a beacon for developers who have found one side of the equa

[web2py:23843] Controlling lazy T

2009-06-10 Thread Carl
subject=T('Lazy subjects'),message=message) Carl --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubsc

[web2py:23882] Re: Controlling lazy T

2009-06-11 Thread Carl
t; > The problem may be that you need: > > subject=str(T('Lazy subjects')) > > Massimo > > On Jun 10, 3:27 pm, Carl wrote: > > > > > I am using web2py on GAE. > > > I am sending emails using GAE. I'd delimited the subject line with T &g

[web2py:24375] http_origin equivalent outside of forms

2009-06-17 Thread Carl
I'm building URLs for emails. One email is fired out in response to the user submitting a form. url = '%s%s' % (request.env.http_origin,URL (r=request,c='default',f='confirmgreet', args=base64.b16encode (address))) However, I also need to build an URL when a form is not submitted. In this case,

[web2py:24414] Re: http_origin equivalent outside of forms

2009-06-18 Thread Carl
not guaranteed that the server defines these variables > either. > > massimo > > On Jun 17, 12:04 pm, Carl wrote: > > > > > I'm building URLs for emails. > > > One email is fired out in response to the user submitting a form. > > > url =

[web2py:24877] Web2Py Profiling documentation

2009-06-24 Thread Carl
not looking in the right place!) thanks Carl --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this

[web2py:24891] Re: Web2Py Profiling documentation

2009-06-24 Thread Carl
ge records 9500 function calls taking .207 CPU seconds. So that's 10K fewer function calls between local and GAE. On Jun 24, 2:05 pm, mdipierro wrote: > try web2py.py -h > there is a profiling flag but does not work on GAE > > On Jun 24, 4:03 am, Carl wrote: > > >

[web2py:25019] Re: web2py 1.63.4 is OUT

2009-06-26 Thread Carl
hi M, where can I find release notes for each release? Carl On Jun 4, 2:56 pm, mdipierro wrote: > Fixed anouther python 2.4 compatibility issue, thanks Mariano. > > Massimo > > On Jun 4, 8:32 am, Hans > wrote: > > > > > I just downloaded 1.63.5 from web

[web2py:25480] Adding extensions to markdown2

2009-07-02 Thread Carl
hi, Is there a document/guideline detailing how one can extend markdown2? I want to add my own handlers (line handling and perhaps block handling) thanks Carl --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[web2py:27494] How to add newly registered users to Groups

2009-07-28 Thread Carl
h instance that was set-up in db.py with auth=EnvoyAuth(globals(),db) thanks Carl --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegr

[web2py:27510] Re: How to add newly registered users to Groups

2009-07-28 Thread Carl
hi Fran thanks! For now your first solution is fab (& simple to boot). [and yes I mean EnvoyAuth not MyAuth - a typo in my post] C On Jul 28, 5:36 pm, Fran wrote: > On Jul 28, 1:43 pm, Carl wrote: > > > I have created MyAuth(Auth) > > You mean EnvoyAuth(Auth)

[web2py:27549] Auth. Customisation form created by register()

2009-07-29 Thread Carl
fernt registration fields? say for .../user_b/register & .../user_s/register I've looked into tools.py at register() and, given that it calls SQLForm() without giving a "fields=" parameter I'm jumping ahead and thinking that getting my desired behaviour won't be

[web2py:27555] Re: Auth. Customisation form created by register()

2009-07-29 Thread Carl
e future: being able to set my own form for register() would be real nice. at present I can do that only if I want to pull in a remote authentication system. thanks again. Carl On Jul 29, 6:58 pm, Fran wrote: > On Jul 29, 5:51 pm, Carl wrote: > > > I'm using auth for my authent

[web2py:27593] Re: Auth. Customisation form created by register()

2009-07-30 Thread Carl
Fran - thanks. that's great. C On Jul 29, 8:53 pm, Fran wrote: > On Jul 29, 8:13 pm, Carl wrote: > > > for the future: being able to set my own form for register() would be > > real nice. at present I can do that only if I want to pull in a remote > > authentica

[web2py:27604] Re: Auth. Customisation form created by register()

2009-07-30 Thread Carl
I wanted that too?) Many thanks for your time Carl On Jul 29, 8:53 pm, Fran wrote: > On Jul 29, 8:13 pm, Carl wrote: > > > for the future: being able to set my own form for register() would be > > real nice. at present I can do that only if I want to pull in a remote > &

[web2py:27702] Re: Auth. Customisation form created by register()

2009-07-31 Thread Carl
hi Fran, I've figured it out. In my view I've added {{if form.errors and form.errors.password_two:}}Password fields don't match{{pass}} at the end of my "Verify password" td. thanks for your help. Carl On Jul 30, 12:48 pm, Carl wrote: > hi Fran, > > H

[web2py:27889] Sharing Auth user table between two registration processes

2009-08-03 Thread Carl
L_OR(IS_NOT_EMPTY()) So... I'm twisting existing validators to get the behaviour I want. In step #3 "IS_NULL_OR(IS_NOT_EMPTY())" feels hacky but otherwise I'm comfortable enough. Constructive feedback welcomed. Carl --~--~-~--~~~---~--~~ You re

[web2py:28159] Re: IS_EMAIL validator problem

2009-08-07 Thread Carl
This is an excellent article on the traps to beware of when regex'ing email address formats http://www.regular-expressions.info/email.html This may ignite a debate though :) I favour this variation... [a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a- z0-9](?:[a-z0-9-]*[a-z0

[web2py:28161] Re: IS_EMAIL validator problem

2009-08-07 Thread Carl
d C On Aug 7, 4:48 pm, Jonathan Lundell wrote: > On Aug 7, 2009, at 8:13 AM, Carl wrote: > > > > > This is an excellent article on the traps to beware of when regex'ing > > email address formats > > >http://www.regular-expressions.info/email.html > >

[web2py:28679] Re: logo

2009-08-15 Thread Carl
What does each logo look like on a dark/black background? A On Aug 13, 5:29 pm, Massimo Di Pierro wrote: > Two logos have been proposed for web2py. I love them both and I would   > like your opinions. Here they are attached. > > Which one should go on the main web2py page and the book? > > Vote

[web2py:28680] Re: logo

2009-08-15 Thread Carl
A handful of points: 1. It would be useful to supply both logos on a black background as well as white. Having a logo that works on a broad range of backgrounds means it can be applied in a broader range of situations. 2. Printing in black and white is becoming rarer but it would be useful to ha

[web2py:28888] web2py, bigtable and the '09 DAL

2009-08-18 Thread Carl
hi I'm currently building a project with python, web2py & pyjamas; I will be deploying on gae. As you will know gae isn't a relational store but leverages a different design so I want to experiment with two different approaches: a) accessing gae thru web2py (treating gae as a subset of a relatio

[web2py:28922] Can I access BigTable api from within Web2py

2009-08-19 Thread Carl
hi, I want to leverage BigTable within my web2py-based application. To create a local environment that I can test code what would be involved? Would I need to run dev_appserver.py locally and then load the web2py environment 'manually' ? I've looked at Django on gae but it loses some key funct

[web2py:28927] Re: web2py, bigtable and the '09 DAL

2009-08-19 Thread Carl
hi Benigno, 'fraid my project is from a clean sheet so I've not investigated how to migrate relational databases. I'm currently looking at http://code.google.com/p/app-engine-patch which leverages Django to access BigTable natively. C On Aug 19, 12:52 pm, Benigno wrote: > Ca

[web2py:28934] Re: web2py, bigtable and the '09 DAL

2009-08-19 Thread Carl
Google's own video are a place to start: Wipe your mind of rdbm design, sit back and breath them in... http://www.youtube.com/watch?v=tx5gdoNpcZM http://www.youtube.com/watch?v=rRCx9e38yr8 On Aug 19, 4:28 pm, Benigno wrote: > Hello Carl, > >     My question was rather more g

[web2py:28942] Re: web2py, bigtable and the '09 DAL

2009-08-19 Thread Carl
s would be more interesting results than merely "I want > to access all of big tables facilities" - it would reach into how to hook it > into the nature of what web2py does. > > > > On Wed, Aug 19, 2009 at 11:20 AM, dlypka wrote: > > > rdbm is still needed to drive

[web2py:28946] Re: web2py, bigtable and the '09 DAL

2009-08-19 Thread Carl
nto the nature of what web2py does. > > > On Wed, Aug 19, 2009 at 11:20 AM, dlypka wrote: > > > > rdbm is still needed to drive CRUD forns > > > > On Aug 19, 11:56 am, Carl wrote: > > > > Google's own video are a place to start: > > > > &

[web2py:28989] upgrading to 1.66.1 chokes on sqlite database

2009-08-20 Thread Carl
hi, I upgraded from 1.65.5 to 1.66.1 this morning but had the following issue. I'm using WinXP with sqlite. recent call stack (most recent call at bottom)... gluon/main.py line 470 inwsgibase session._unlock(response) gluon/globals.py line 369 in _unlock portalocker.unlock (response.session_f

[web2py:29004] Re: upgrading to 1.66.1 chokes on sqlite database

2009-08-20 Thread Carl
I'm using src. heard about exe but have always run from src so I'm not tied to a particular OS. C On Aug 20, 12:30 pm, Fran wrote: > On Aug 20, 10:24 am, Carl wrote: > > > I upgraded from 1.65.5 to 1.66.1 this morning but had the following > > issue. > > Bef

[web2py:29005] Re: upgrading to 1.66.1 chokes on sqlite database

2009-08-20 Thread Carl
I'm using src. heard about exe but have always run from src so I'm not tied to a particular OS. Fran - are you using sqlite? C On Aug 20, 12:30 pm, Fran wrote: > On Aug 20, 10:24 am, Carl wrote: > > > I upgraded from 1.65.5 to 1.66.1 this morning but had the following &

[web2py:29024] Re: upgrading to 1.66.1 chokes on sqlite database

2009-08-20 Thread Carl
ied updating to pyjamas 0.6 and that didn't go well either! :) not my day. thanks for the feedback - good to know it's not just me on xp On Aug 20, 4:46 pm, Fran wrote: > On Aug 20, 2:41 pm, Carl wrote: > > > Fran - are you using sqlite? > > Yes: XP, Python 2.5.

[web2py:29087] Re: Can I access BigTable api from within Web2py

2009-08-21 Thread Carl
ha! sometimes web2py is too straightforward! :) and that's not a complaint! have set-up Eclipse to launch a debug session for dev_appserver.py as well as web2py.py thanks for the pointer mdipierro wrote: > On Aug 19, 2:55 am, Carl wrote: > > hi, > > > > I want to l

[web2py:29334] Re: upgrading to 1.66.1 chokes on sqlite database

2009-08-25 Thread Carl
I've just downloaded 1.66.2 and am getting further. I'm getting this ticket... Traceback (most recent call last): File "G:\My Documents\Carl\projects\TestOrbit\web2py\gluon\main.py", line 412, in wsgibase session._try_store_on_disk(request, response) File "G:\M

[web2py:29342] Re: upgrading to 1.66.1 chokes on sqlite database

2009-08-25 Thread Carl
thanks! On 25/08/2009, mdipierro wrote: > > > Yes. That issues was fixed in 1.66.2 > > On Aug 20, 4:24 am, Carl wrote: > > hi, > > > > I upgraded from 1.65.5 to 1.66.1 this morning but had the following > > issue. > > > > I'm using WinXP

  1   2   3   4   5   >