[web2py] Hierarchical Trees

2010-02-03 Thread Fran
This looks cool: http://code.tabo.pe/django-treebeard/src/ Single API to access 3 different models of hierarchical trees. I'm inspired to move my simple 'Adjacency List' model to one more suitable for Reads. I've seen a Web2Py implementation of modified preorder traversal: http://www.web2pyslice

[web2py] Adding session support to fetch()

2010-02-10 Thread Fran
;/" cookie['domain'] = "" This seems wrong anyway, as Set-Cookie is for Server->Client & I want Client->Server Any/All pointers very gratefully received :) Fran. -- You received this message because you are subscribed to the Google Groups "web2py-

[web2py] Re: Sahana project: how to make JOINs in web2py while keeping current re-usable field pointers?

2010-02-10 Thread Fran
On Feb 8, 5:29 pm, mdipierro wrote: > can you show the model? http://trac.sahanapy.org/browser/models/05_or.py F > On Feb 8, 3:24 pm, sunneach wrote: > > > > > There are two tables: > > > or_organisation (id, name, sector_id, ...) > > and > > or_sector(id, name, ...) > > > And the sector_id is

[web2py] Re: Adding session support to fetch()

2010-02-10 Thread Fran
wser... I looked at your full example & that doesn't seem to do this either... Many thanks, Fran. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe fr

[web2py] Re: Adding session support to fetch()

2010-02-10 Thread Fran
On Feb 10, 8:20 pm, mdipierro wrote: > I'll take a patch to fetch I need help to develop it 1st ;) Sending the session cookie from the browser session & putting it into the new server-initiated session doesn't seem like it should be too hard but just isn't working for me :/ F -- You received

[web2py] Re: Adding session support to fetch()

2010-02-13 Thread Fran
On Feb 10, 9:01 pm, Fran wrote: > I need help to develop it 1st ;) Thanks to Massimo, we now have it in trunk - a turbo-charged fetch() which supports cookies amongst other things. The recipe to get my use-case working using this fetch() requires a, to me, black-magic session unlock call:

[web2py] r1812 breaks winservice.py

2010-04-15 Thread Fran
or whether winservice.py should no longer attempt to pass it. Many thanks, Fran. -- To unsubscribe, reply using "remove me" as the subject.

[web2py] Re: r1812 breaks winservice.py

2010-04-15 Thread Fran
On Apr 15, 4:15 pm, Jonathan Lundell wrote: > On Apr 15, 2010, at 6:50 AM, mdipierro wrote: > > I think it is not fixed. Please check. Thanks. > Or "now fixed", as the case may be. Indeed seems to be - thanks for the speedy response :) F -- To unsubscribe, reply using "remove me" as the subje

[web2py] Problem with checkboxes widget

2010-09-05 Thread Fran
) (values = ['8', '9', '7']) k in values (True) I think the change was made to avoid a relatively slow call to 're' right? However it seems not to work properly... Many thanks :) Fran.

[web2py] Re: Problem with checkboxes widget

2010-09-05 Thread Fran
ill seeing the exact same issues with the checkboxes though. I can see the internal structure has changed - now see: 957 F > On Sep 5, 3:56 pm, Fran wrote: > > I'm running latest stable release (Bzr r2247) & trying to use this for > > a multiselect field: > > widge

[web2py] DAL db(query).update(variable=xxx) how?

2010-09-13 Thread Fran
I want to db(query).update(fieldname=XXX) where fieldname is a variable, but whatever I try (like eval(fieldname) or `fieldname`) I get: SyntaxError: keyword can't be an expression Must be some trick I'm missing? Many thanks, Fran.

[web2py] Re: web2py 1.84.1 is out

2010-09-13 Thread Fran
On Sep 13, 8:04 pm, mdipierro wrote: > Please report any error so that, if any, they can be fixed. Version 1.84.1 (2010-09-13 13:55:55) Database drivers available: pysqlite2, MySQL Traceback (most recent call last): File "gluon/restricted.py", line 188, in restricted exec ccode in environme

[web2py] Re: DAL db(query).update(variable=xxx) how?

2010-09-13 Thread Fran
On Sep 13, 11:11 pm, Fran wrote: > I want to db(query).update(fieldname=XXX) where fieldname is a > variable, but whatever I try (like eval(fieldname) or `fieldname`) I > get: > SyntaxError: keyword can't be an expression > Must be some trick I'm missing? exec

[web2py] Issue with concurrency on languages file updating

2010-09-22 Thread Fran
hese out to a separate file? - this file being common to all languages as the missing strings should be added to every file... Best Wishes, Fran. --- languages.orig.py Wed Sep 22 11:19:16 2010 +++ languages.pyWed Sep 22 11:29:17 2010 @@ -31,7 +31,7 @@ regex_translate = re.compil

[web2py:23220] Re: more slides - must read

2009-06-03 Thread Fran
Excellent work :) Pg 1 This app also replaces the old cookbook so is a full tutorial - not just an overview of new features... Pg 5 Bottom text unreadable against background Pg 13 scaffolding app ^ Pg 15 Views can extend other ^ Pg 16 They contain ^ Pg 17 how to inc

[web2py:23223] Re: more slides - must read

2009-06-03 Thread Fran
On Jun 3, 9:17 pm, Fran wrote: > More later, perhaps ;) Pg 76 both file contents and ^ Uploaded files are always streamed ^ Pg 80 .count() <- does this not work on GAE still? Pg 81 row is None if no record with current id ^ Pg 82 Querie

[web2py:23226] Re: web2py 1.63.3 is out with some bug fixes

2009-06-03 Thread Fran
On Jun 3, 9:24 pm, rhubarb wrote: > 2. what's changelog. > Generally I really like it when there's a "what's new" link next to > any new version link. +1 to having the full changelog visible from the webpage rather than needing to download the .zip & then follow the undocumented route of finding

[web2py:23426] Re: Delete error on crud

2009-06-06 Thread Fran
On 6 June, 03:37, Tito Garrido wrote: > _border=1,_class='sortable',_id='searchable',linkto=URL(r=request,f='data/update')) Try: URL(r=request, f='data', args='update') F --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

[web2py:23422] Re: Registration in web2py version 1.63

2009-06-06 Thread Fran
On 6 June, 11:25, pk wrote: > I´ve a question. I´m using the auth()-Object and when the user try to > register himself he got a E-Mail to verify his E-Mail adress. I loaded > today the new web2py version 1.63 and I try to register a new user, > but I don`t get a verification E-Mail. Do you know w

[web2py:23429] Re: custom form using Auth

2009-06-06 Thread Fran
On 5 June, 16:29, Bill wrote: >        self.messages.logged_in = T("Logged in") In recent versions of Web2Py, you no longer need to call T explicitly for messages. They are automatically Internationalised via the new Messages() type :) F --~--~-~--~~~---~--~~ You

[web2py:23431] Re: custom form using Auth

2009-06-06 Thread Fran
On 5 June, 16:29, Bill wrote: > auth2.settings.table_user = db.define_table( >         self.settings.table_user_name, I don't think you can use 'self' here. Needs to be: auth2.settings.table_user_name > '%s.email' % self.settings.table_user._tablename)] Likewise: auth2.settings.table_user._tab

[web2py:23434] Re: how to override Auth

2009-06-06 Thread Fran
On 4 June, 19:09, "Sebastian E. Ovide" wrote: > class MyAuth(Auth): Add here: def __init__(self, environment, db = None): Auth.__init__(self, environment, db) F --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[web2py:23612] rev 877 breaks app

2009-06-08 Thread Fran
In my model, I define a pair of reusable fields: authorstamp = SQLTable(None, 'authorstamp', db.Field('created_by', db.auth_user, writable=False, default=session.auth.user.id if auth.is_logged_in() else 0), db.Field('modif

[web2py:23653] Re: rev 877 breaks app

2009-06-08 Thread Fran
\Bin\web2py\gluon\sql.py", line 955, in define_table t = self[tablename] = SQLTable(self, tablename, *fields) File "C:\Bin\web2py\gluon\sql.py", line 1147, in __init__ raise SyntaxError, 'SQLTable: table does not exist' SyntaxError: SQLTable: table does not exist

[web2py:23657] Re: jython again

2009-06-09 Thread Fran
On Jun 9, 7:42 am, mdipierro wrote: > I know I need to install sqlite-jdbc-3.6.14.2.jar but I have no idea > what to do with it. help? May help: http://wiki.python.org/jython/JythonFaq/InstallingJython#JythoncannotfindyourJavaclass.2Ceventhoughitexistsintheclasspath. F --~--~-~--~~-

[web2py:23673] Re: Delete Content with Security question

2009-06-09 Thread Fran
On Jun 9, 10:30 am, pk wrote: > how can I delete a content (row) from the table with a security > question. for example: "Are you sure to delete the project? yes - no" Look at make_delete_row() in this file: http://trac.sahanapy.org/browser/views/sahana_scripts_min.html URL2() is defined here:

[web2py:23674] Re: Reference in another table

2009-06-09 Thread Fran
On Jun 9, 10:56 am, pk wrote: > I´ve a table called project and i have another table called > projectfile. How can i reference automaticlly the project.id in the > table projectfile? > db.define_table('projectfile', >                 SQLField('projectid', default=project.id, > writable=False, rea

[web2py:23677] Re: Auth

2009-06-09 Thread Fran
On Jun 9, 11:42 am, Robert Marklund wrote: > Cant auth be changed somhow to it will be easier to extend like this: > db.define_table('auth_user2', >                 db.auth_user, >                 SQLField('nickname'), >                 SQLField('image','upload')) > The problem to day is the: > t

[web2py:23746] Re: rev 877 breaks app

2009-06-09 Thread Fran
On Jun 9, 3:13 pm, mdipierro wrote: > Uploading another version to trunk. Please give it another try r896 works fine - many thanks :) F --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group.

[web2py:23748] Re: Custom Display Values

2009-06-09 Thread Fran
On Jun 9, 6:41 pm, Gary wrote: > For clarification, does 'new trunk' mean something other than the > current release? It means the live code downloaded via Bzr: https://code.launchpad.net/~mdipierro/web2py/devel So more current than the latest release. F --~--~-~--~~~--

[web2py:23749] Re: rev 877 breaks app

2009-06-09 Thread Fran
On Jun 9, 6:27 pm, Fran wrote: > On Jun 9, 3:13 pm, mdipierro wrote: > > Uploading another version to trunk. Please give it another try > r896 works fine - many thanks :) Solves that issue but seems to break updates: This is a ticket from Tools' register() (but it also ha

[web2py:23760] Re: redirect

2009-06-09 Thread Fran
On Jun 9, 7:19 pm, mdipierro wrote: > If your intention is to return the PDF to the > user (http 200 ok) you cannot redirect (http 303 redirect). The two > statements are not compatible. Whilst at first sight I'd say that's true, what could be done is to return the PDF in another Window/Tab (A t

[web2py:23812] Re: rev 877 breaks app

2009-06-09 Thread Fran
On Jun 10, 12:16 am, mdipierro wrote: > Uploaded the fix. please give it a try. Bingo - many thanks! F --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email

[web2py:23833] Re: Login_next

2009-06-10 Thread Fran
On Jun 10, 12:17 am, mdipierro wrote: > Please try the version in trunk. No more request.env.referer. This was r897 right? This has caused problems for my app :/ I have pages which have a List at the top of the page (created by crud.select) & underneath a create form (created by crud.create).

[web2py:23845] Re: Login_next

2009-06-10 Thread Fran
On Jun 10, 7:48 pm, mdipierro wrote: > I do not think this is creating the problem. Crud is still redirecting > UNLESS you set crud.settings.keepvalues=True. If this what you are > doing? Yes, well done :) Can this be made to just take effect on 'update' not 'create' forms? (Didn't seem to work

[web2py:23846] Re: slides in keynote and ppt

2009-06-10 Thread Fran
On Jun 10, 8:12 pm, mdipierro wrote: > I posted the slides in Keynote format > http://www.web2py.com/examples/static/cookbook2.key.zip Works, but I don't have a Mac > and PowerPoint format > http://www.web2py.com/examples/static/cookbook2.ppt.zip 'Invalid request' F --~--~-~--~~--

[web2py:23873] Re: sqllite web2py gen question

2009-06-10 Thread Fran
On Jun 11, 6:42 am, durga wrote: > I am developing a website with web2py and sqllite. I am expecting no. > of users of the site would increase to 50k. My question is  would the > sqllite in web2py  support for 50k users or I need to migrate to > mysql. The database would contain user information,

[web2py:23886] Re: Login_next

2009-06-11 Thread Fran
On Jun 11, 8:00 am, annet wrote: > No, the version in trunk that fixed my problem was r1016. I suspect this is an SVN revno? Bzr is currently on 909 Since Bzr is the master repo, I think it's best to quote those revno's. > I have something similar, just the other way around first the form > th

[web2py:23887] Re: how to prevent deletion of referenced records

2009-06-11 Thread Fran
On Jun 11, 7:41 am, Joe Barnhart wrote: > I don't think it is something you need to add to web2py.  This is > really a workaround for sqlite because it doesn't respect the normal > keywords of ON DELETE RESTRICT or CASCADE.  It's a simple enough work- > around that is added to the model file for

[web2py:23890] Re: how to prevent deletion of referenced records

2009-06-11 Thread Fran
On Jun 11, 7:49 am, annet wrote: > notnull=True, unique=True I see that these provide DB-level protection of fields so always take effect, but trigger tickets if violated Validators provide nice user-friendly warnings instead of tickets, but are only used if the application calls them (i.e. cust

[web2py:23900] Re: how to prevent deletion of referenced records

2009-06-11 Thread Fran
On Jun 11, 1:47 pm, annet wrote: > I thought that by adding the > following validators: > db.provincie.provincie.requires=[IS_NOT_EMPTY(),IS_NOT_IN_DB > (db,'provincie.provincie',error_message=T('provincie already in > database'))] > ... the notnull=True would be covered at web2py form level by t

[web2py:23958] Re: how to prevent deletion of referenced records

2009-06-11 Thread Fran
On Jun 11, 9:50 pm, DenesL wrote: > Fran, what do you mean by: > > However they won't work for some custom forms/functions. If I define in my model: db.define_table('test', db.Field('test', requires=IS_NOT_EMPTY())) Then do: db.test.insert(t

[web2py:23960] Re: how to prevent deletion of referenced records

2009-06-11 Thread Fran
On Jun 11, 9:50 pm, DenesL wrote: > Annet, that does not prove Frank's statement. > IS_NOT_EMPTY does not prevent duplicates. > Frank, what do you mean by: > > However they won't work for some custom forms/functions. NB This is discussed in the manual - pg 139. F --~--~-~--~~---

[web2py:23964] Re: YACI, or how to speed up model loading

2009-06-11 Thread Fran
On Jun 11, 10:39 pm, AchipA wrote: > Now, for the kicker - in the model we could do an equivalent of > {{extend 'layout.html'}} (=sort of import ?) to include any > dependencies. This would also pull in any 'common' models (just like > we do with layout.html).  Note the subtle difference - I don'

[web2py:23963] Re: Form validation causes checkbox to get selected

2009-06-11 Thread Fran
On Jun 11, 11:33 pm, DJ wrote: > Thanks Massimo. Quick question, how do I get this patch? (url address) http://bazaar.launchpad.net/~mdipierro/web2py/devel/revision/904 But also see: http://bazaar.launchpad.net/~mdipierro/web2py/devel/revision/905 http://bazaar.launchpad.net/~mdipierro/web2py/d

[web2py:23985] Re: XML

2009-06-12 Thread Fran
On Jun 12, 12:20 pm, pk wrote: > how can i use the XML-Service for my tables? > Because i would acces from flex(action script) via xml on my tables. I > read there is a service in web2py > for this, but how can i use this? http://web2py.com/examples/default/tools#services F --~--~-~--~-

[web2py:23999] Re: Self-reference table error after upgrading to the latest svn version of web2py

2009-06-12 Thread Fran
On Jun 12, 2:32 pm, DenesL wrote: > On Jun 12, 4:58 am, Alexey Nezhdanov wrote: > > You can reference the table itself like this. > > Try: > >  db.define_table('table_example', > >      SQLField('some_int_field','integer'), > >      SQLField('parent_id_field', 'integer')) > > and then treat pare

[web2py:24014] Re: sort table

2009-06-12 Thread Fran
On Jun 12, 6:14 pm, pk wrote: > how can i sort or orderby my table, when i will show the newest > content on top? > i have a field calls timestamp with 'datetime' > and now i will show on the html page the newest one on top like > 12.06.2009 - Test > 10.06.2009 - Test2 crud.select(db.tablename,

[web2py:24015] Re: XML

2009-06-12 Thread Fran
On Jun 12, 2:56 pm, pk wrote: > here the code in my model: > def data(): return crud() This line should be in the default controller, not the model. F --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Fra

[web2py:24118] Re: authentication - login error

2009-06-14 Thread Fran
On Jun 14, 3:51 am, Gary wrote: > I'm not sure that I have the skill to dig into the code to debug this > yet, but if you create a default application, register, add a > "@auth.requires_login()" directly above "def index()", save the > controllers, run index and login, the error will appear. I d

[web2py:24120] Re: I want to send an email...

2009-06-14 Thread Fran
On Jun 14, 8:34 am, Jason Brower wrote: > I found > this...http://groups.google.com/group/web2py/browse_thread/thread/3250ef9161... > but the link seems dead. These links both work for me: http://mdp.cti.depaul.edu/appliances/default/show/10 http://mdp.cti.depaul.edu/appliances/default/download

[web2py:24135] Re: I want to send an email...

2009-06-14 Thread Fran
On Jun 14, 12:34 pm, Jason Brower wrote: > It just times out.  No trace back that I can see. > :/ interesting. > Nope, web2py.com doesn't work either. ok, so until your Firewall issues get resolved, here is the relevant section from the appliance: def email_user(sender,message,subject="group no

[web2py:24145] Re: authentication - login error

2009-06-14 Thread Fran
On Jun 14, 5:15 pm, mika wrote: > I still have that problem - I'm using web2py from trunk - Version > 1.64.1 (2009-06-13 13:29:19). > Could you give me example how to get it working? > I'm doing like Gary said, and I get error while logging in... Did you restart Web2Py after upgrade? I'm runnin

[web2py:24147] Re: Nested list : good example for the documentation

2009-06-14 Thread Fran
On Jun 14, 9:03 pm, "Francois (Jersey)" wrote: > Hello I am trying to make a page showing a nested list: > period 1 >   subperiod 1 >   subperiod 2 >   subperiod 3 > period 2 >   subperiod 1 >   subperiod 2 -CUT- > def show_periods(): >     periods=SQLTABLE(db().select(db.period.ALL)) >     retur

[web2py:24157] Re: XML (a proposal and solution)

2009-06-14 Thread Fran
On Jun 14, 9:56 pm, mdipierro wrote: > I am thinking (experimenting) that as we can do read.json and > select.json perhaps one should be able to do create.json and send the > data using json format. This is definitely required. Currently I'm using ?format=json for my CRUD functions, but having

[web2py:24247] Re: db.table.truncate() error if migrate=False

2009-06-15 Thread Fran
On Jun 15, 9:25 pm, mdipierro wrote: > oops.sorry. check if fixed in trunk r926 breaks my app: Traceback (most recent call last): File "C:\Bin\web2py\gluon\restricted.py", line 107, in restricted exec ccode in environment File "C:/Bin/web2py/applications/sahana/models/00_db.py", line 36,

[web2py:24254] Re: db.table.truncate() error if migrate=False

2009-06-15 Thread Fran
On Jun 15, 10:04 pm, mdipierro wrote: > uploading the fix My app is no longer broken :) (Haven't tested the point of the original fix) tx, F --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" gr

[web2py:24289] Re: How to create a cross-tabulation view?

2009-06-16 Thread Fran
On Jun 16, 11:36 am, samwyse wrote: > Not quite.  It's more like this: This is a standard EAV design, right? http://en.wikipedia.org/wiki/Entity-attribute-value_model F --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

[web2py:24293] Re: adding vars to request.vars ?

2009-06-16 Thread Fran
On Jun 16, 2:02 pm, carlo wrote: > I have one form and when submitted I find in request.vars the value of > the form controls. Now I would like to find in request.vars some more > values: of course I could insert some input type='hidden' in the form > but I am wondering if some alternative way ex

[web2py:24339] Re: Auth autologin after register

2009-06-16 Thread Fran
On Jun 17, 7:17 am, mdipierro wrote: > no Shame. I patch this manually in my extended Auth class, but it's extra work to keep updating my extension to keep in-line with main. Here is a patch to tools.py (also sent by mail): --- gluon\tools.py.928 Sat Jun 13 20:47:24 2009 +++ gluon\tools.py

[web2py:24342] Re: Web2Py Virtual Machine

2009-06-16 Thread Fran
On Jun 17, 2:40 am, JohnMc wrote: > 'apache with mod_wsgi preconfigured'. Ok. A clarification on your last > sentence -- 'and perhaps a nice user interface in web2py to add new > virtual hosts.' Do you mean -- I think he means a Web2Py app which configures Apache's VirtualHosts. Not seperate VMs

[web2py:24352] Re: forms validation

2009-06-17 Thread Fran
On Jun 17, 11:22 am, carlo wrote: > From the manual there is no reason this should not work, but the form > is accepted even with the empty field. Why? Thank you > controller: > def index(): >     form=FORM() >     if form.accepts(request.vars,session,formname='test'): >         response.flash='f

[web2py:24353] Re: ldap authentication

2009-06-17 Thread Fran
Bzr & the file is present & works I checked the Source downloadable for version 1.64.1 & can see the file there. What happens when you run from Web2Py Shell? python web2py.py -S welcome -M >>> from gluon.contrib.login_methods.ldap_auth import ldap_auth Works on an Ubu

[web2py:24391] Re: web2py 1.64.2 is OUT

2009-06-17 Thread Fran
On Jun 17, 10:26 pm, JorgeR wrote: > what is IS_COMPLEX used for? Passwords primarily, but also potentially usernames. See: http://groups.google.com/group/web2py/browse_thread/thread/12ea6f176beb24a5 F --~--~-~--~~~---~--~~ You received this message because you a

[web2py:24419] Re: ldap authentication

2009-06-18 Thread Fran
On Jun 18, 11:24 am, Johann Spies wrote: > How do I implement that in web2py? Current version: not possible. With patched version, like this (also sent by email to you & Massimo): auth.settings.login_methods=[ldap_auth(server='stbldap01.sun.ac.za', base_dn='ou=users,O=SU', mode='cn', secure=Tru

[web2py:24420] Re: ldap authentication

2009-06-18 Thread Fran
On Jun 18, 11:47 am, Fran wrote: > +            if secure: > +                con = ldap.initialize("ldap://"; + ldap_server + ":" + > str(ldap_port)) > +            else: > +                con = ldap.initialize("ldaps://" + ldap_server + &

[web2py:24432] Re: ldap authentication

2009-06-18 Thread Fran
On Jun 18, 2:11 pm, Johann Spies wrote: > > With patched version, like this (also sent by email to you & Massimo): > > auth.settings.login_methods=[ldap_auth(server='stbldap01.sun.ac.za', > > base_dn='ou=users,O=SU', mode='cn', secure=True] > Where should the brackets be closed?  I get >     auth

[web2py:24479] Re: ldap authentication

2009-06-19 Thread Fran
On Jun 18, 2:11 pm, Johann Spies wrote: > TypeError: ldap_auth() got an unexpected keyword argument 'secure' oops, I forgot to add secure=secure to the inner loop Will send updated patch now. F --~--~-~--~~~---~--~~ You received this message because you are subs

[web2py:24507] Re: Coming from grails world

2009-06-19 Thread Fran
On 19 June, 16:01, Daniel Guryca wrote: > I can see that performance coming from a default integrated server is > somewhat poor. 'integrated server' = CherryPy/SQLite, right? > What other deployment possibilities could I test ? ApacheWSGI/PostgreSQL would be a better comparator. F --~--~-

[web2py:24509] Re: new GAE task queue API

2009-06-19 Thread Fran
On 19 June, 17:29, Dan wrote: > Yesterday the GAE team released a new version of their SDK with > support for a task queue API. I'd like to use this in my web2py app. > Can you recommend how I should proceed? Is it appropriate to try and > create a library in /contrib - something like gql.py? Or

[web2py:24965] Re: Newbie question : How to pass parameters from flash?

2009-06-25 Thread Fran
On Jun 25, 7:52 am, "Md.Mahbubur Rasheed" wrote: > What is the equivalent of php $_SERVER ??? I think $_SERVER["REQUEST_URI"] is replaced by URL(r=request) $_SERVER["SCRIPT_NAME"] is replaced by URL(r=request, c='script_name', f='function_within_script') F --~--~-~--~~-

[web2py:24977] Re: db query problem

2009-06-25 Thread Fran
On Jun 25, 1:51 pm, Robert Marklund wrote: > I would like to do a join but get results even if it was unsucessfull. > Like this > query = (db.images.id == db.image_info.image_id)  & > (db.images.id==db.image_keyword.image_id) > & \ >               (db.keyword.id==db.image_keyword.keyword_id) > I

[web2py:25026] Re: error messages in Auth.change_password

2009-06-26 Thread Fran
On Jun 26, 1:03 pm, "Sebastian E. Ovide" wrote: > cool !   is it part of 1.63.4 ? No - it was done in r959: http://bazaar.launchpad.net/~mdipierro/web2py/devel/revision/959 1.64.4 is r957 https://code.launchpad.net/~mdipierro/web2py/devel > another question : is it possible to customize "chang

[web2py:25226] Re: maintain dictionary state between requests

2009-06-29 Thread Fran
On Jun 29, 8:10 am, Richard wrote: > I have a Python dictionary that is unique to each user and takes a > rather heavy database query to instantiate. Is there a way to maintain > the state of this dictionary between requests? For example, is saving > it in the session variable a good idea? Looks

[web2py:25227] Re: psycopg2 on windows vista

2009-06-29 Thread Fran
On Jun 29, 12:40 pm, haftish21 wrote: > Any one who successfully managed to get connected to postgres db? On XP, yes > I already installed psycopg2, postgres, web2py and python 2.6 on my > windows vista os, but still can't get linked to postgres. Did I miss > sth? What I get is this: > Tracebac

[web2py:25277] Re: psycopg2 on windows vista

2009-06-29 Thread Fran
On Jun 29, 8:06 pm, haftish21 wrote: > Then can I say it's always better 2 run the source version than the > windows one? Or what? If you need to easily customise the running Python, yes. The Windows distribution is convenient for simpler users (& can be modified by including extra DLLs, but thi

[web2py:25311] Re: Using auth function (Approval)

2009-06-30 Thread Fran
On Jun 30, 2:07 am, Mico Siahaan wrote: > 1. Can we rename the auth_user table to other for example to member > table? Yes: auth.settings.table_user_name = 'member' > 2. Can rename field id to other for example to memberId? No All Web2Py tables need a field called 'id' F --~--~-~--~-

[web2py:25366] Re: OperationalError is not defined at model creation time

2009-06-30 Thread Fran
On Jun 30, 4:57 pm, MikeEllis wrote: > doesn't migrate=False prevent me from altering the > table's structure within a running instance of web2py? Mostly correct - migrate=False means that Web2Py doesn't try to create the Table, but assumes this exists already. > am I misunderstanding > what mi

[web2py:25403] Re: [Bump: email not working]

2009-07-01 Thread Fran
On Jul 1, 1:59 pm, Jason Brower wrote: > I get the following error: > reply: '250 2.0.0 Ok: queued as B207C1FD5A\r\n' This doesn't seem like an error to me - your Postfix has accepted the mail delivered by Python. I guess you need help from a #postfix support group to see why Postfix isn't sendi

[web2py:25404] XForms version of SQLFORM

2009-07-01 Thread Fran
odel. I don't suppose anyone else has done some work on this already or would be interested in contributing to it? [1] http://code.javarosa.org/ [2] http://en.wikipedia.org/wiki/XForms http://oreilly.com/catalog/9780596003692/preview.html Many tha

[web2py:25419] Re: XForms version of SQLFORM

2009-07-01 Thread Fran
One-time One-time Recurring Recurring Glad that you're interested :) F > MAssimo > > On Jul 1, 8:42 am, Fran wrote: > > > I would like to be able to make use of JavaRosa[1] to input

[web2py:25421] Re: XForms version of SQLFORM

2009-07-01 Thread Fran
Whilst most stuff seems starightforward, the harder cases are things like: db.budget_item.code.requires = IS_NOT_IN_DB(db, 'budget_item.code') Obviously if working offline then this referencedata isn't available - I guess we just have to ignore that within the XForm itself & handle it during form

[web2py:25427] Re: XForms version of SQLFORM

2009-07-01 Thread Fran
we touch up manually afterwards. e.g. I have 'unit_cost' for One-time costs & 'monthly_cost'/'minute_cost'/'megabyte_cost' for Recurring costs F > On Jul 1, 10:28 am, Fran wrote: > > > Whilst most stuff seems starightforward, the harder ca

[web2py:25502] Re: DAL Validators and Widgets confusion

2009-07-02 Thread Fran
On Jul 2, 3:29 pm, Vidul Petrov wrote: > db.person.gender.requires   = IS_IN_SET(("Male","Female")) IS_IN_SET(['Male', 'Female']) F --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To p

[web2py:25517] Re: XForms version of SQLFORM

2009-07-02 Thread Fran
On Jul 2, 2:07 am, mdipierro wrote: > This is not so really up to me. I like the idea of XFORM and home one > of you will take the lean and the task of building it. ok, here's a 1st cut for feedback on approach. Controller: http://paste.pocoo.org/show/126409/ View: http://paste.pocoo.org/show/

[web2py:25536] Re: need an ajax spreadsheet

2009-07-03 Thread Fran
On Jul 3, 6:15 am, mdipierro wrote: > If other problems have problems downloading I will repost tomorrow. I get the same error - dl'ing in both FF3.5 & IE8 However the file un-tar's just fine & the appliance runs. However the JS fails with formulae (FF3.5 & IE8 again) Firebug shows 500 INTERNAL

[web2py:25549] Re: need an ajax spreadsheet

2009-07-03 Thread Fran
On Jul 3, 2:44 pm, mdipierro wrote: > Is it possible the app is called "spreadsheet" and you have > "Spreadsheet" in the URL? Capitalizaiton sometimes matters. No, not the issue. Now I'm getting this error: File "C:/Bin/web2py/applications/spreadsheet/controllers/ default.py", line 5, in inde

[web2py:25582] Re: need an ajax spreadsheet

2009-07-03 Thread Fran
On 3 July, 18:17, Yarko Tymciurak wrote: > My spreadsheet.tar is 65798 bytes; Same here with fresh download (correct .w2p extension now) > Here are some checksums: > $ ls -l sp* > -rw-rw-r--. 1 yak007 yak007 65798 2009-07-02 22:09 spreadsheet.tar > $ sha1sum spreadsheet.tar > f0630cc59ea0647836

[web2py:25599] Re: Model Problem with web2py 1.65.0

2009-07-03 Thread Fran
On Jul 3, 10:59 pm, Mico Siahaan wrote: > Massimo, thanks it solved. Actually what is 'migrate' parameter > purpose in define_tables function? It allows you to auto-create the database & alter column definitions. F --~--~-~--~~~---~--~~ You received this message

[web2py:25639] Re: IDEA: account setup for translations by non admins...

2009-07-04 Thread Fran
On Jul 4, 7:09 pm, Jason Brower wrote: > I have people that would love to translate some of the stuff I am > working on.  But I don't want them to access my admin interface, nor do > they need to be on my local network.  Is it possible to let others > translate remotely and with accounts that I c

[web2py:25764] Re: need an ajax spreadsheet

2009-07-06 Thread Fran
On Jul 6, 7:59 am, Yarko Tymciurak wrote: > (NOTE:  we need to think about the repository:  it took forever to get a > branch - the .bzr directory is now at 486MB, mostrly from the one pack (I > presume holding revisions)   Are we keeping the tar files in there too? > That would make this H U

[web2py:25783] Re: xml (important)

2009-07-06 Thread Fran
On Jul 6, 4:47 pm, pk wrote: > where can i find routes.py? cp web2py\routes.example.py web2py\routes.py F --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send em

[web2py:25877] Re: _action='.'

2009-07-07 Thread Fran
On Jul 7, 7:30 pm, Jonathan Lundell wrote: > Massimo, a chapter in the manual on web2py plumbing would be helpful.   > Not every detail, but enough to give a newcomer the lay of the land, a   > guide to browsing the source. What's the startup sequence, what   > happens when a request is received,

[web2py:25895] Re: Web2py vs the world

2009-07-07 Thread Fran
On Jul 7, 10:36 pm, eric cs wrote: > I'm just wondering to do big e-commerce sites like > www.taget.com or www.bestbuy.com isn't web2py enough, or does it need more > maturity? I imagine that a serious site like this would have a team behind it which may mean you wouldn't get all the benefits o

[web2py:26059] Re: Is it possible to store documents in S3 and rest in Google App Engine?

2009-07-09 Thread Fran
On Jul 9, 8:12 pm, mdipierro wrote: > where would the main app, the one accessed by the users run? EC2 or > GAE? Looks like GAE to me. There's no helpers within Web2Py yet to help with storing files in S3. Seems like it would be a nice option to be able to have the /uploads folder be there. Po

[web2py:26060] Re: Is it possible to store documents in S3 and rest in Google App Engine?

2009-07-09 Thread Fran
On Jul 9, 9:36 pm, Fran wrote: > Seems like it would be a nice option to be able to have the /uploads > folder be there. Django has very flexible uploads handling: http://docs.djangoproject.com/en/dev/topics/http/file-uploads/ F --~--~-~--~~~---~--~---

[web2py:26066] Re: auth registration nit

2009-07-09 Thread Fran
On Jul 9, 9:48 pm, mdipierro wrote: > You should not ne already logged in after registration. That is not > default behaviour Although I think it should be - unless you block the registration or require verification. Most websites work like this. I subclass auth in my app to do this, but it's a

[web2py:26115] Re: DAL remote control

2009-07-10 Thread Fran
On Jul 10, 10:43 am, Yarko Tymciurak wrote: > Regardless, you are trying to use something other than a browser for the > client end (if I recall) wxPython, yes >, so that does deserve some > extra discussion, as the view part of web2py assumes an html / xhtml client > (that's what it generates

[web2py:26117] Re: DAL remote control

2009-07-10 Thread Fran
On Jul 10, 9:40 am, rb wrote: > I don't have the resources for ajax thin client programming. I'll > stick with the trials of deploying the thick client. I don't think you need full-blown GWT to have an AJAX client. jQuery (integrated with Web2Py) allows 'progressive enhancement' of plain old HTM

[web2py:26118] Re: Ruby 1.9 VS Python 3!!!

2009-07-10 Thread Fran
On Jul 10, 6:19 am, eric cs wrote: > So those books about Python 3.0, it's useless if I am planning to learn > Web2py Python's version. As a newcomer I would start with a more introductory text anyway. This is a great free one: http://diveintopython.org/ F --~--~-~--~~~-

  1   2   3   4   5   6   7   >