[web2py] CAS not found

2010-11-10 Thread notabene
The CAS provider applicance should be here. http://mdp.cti.depaul.edu/appliances/default/index (https:// www.web2py.com/cas) https://mdp.cti.depaul.edu/cas (http://en.wikipedia.org/wiki/ Central_Authentication_Service). But I am not able to find it?

[web2py:23648] Re: problem with selfreference left outer join

2009-06-08 Thread notabene
Try list argument in left join: left =[ ... , ... ] On Jun 9, 7:59 am, Peter Etchells wrote: > When trying the example in the new slide show: >  ...db = SQLDB('sqlite://storage.sqlite') > > db.define_table('dog', >     SQLField('name'), >     SQLField('father_id','reference dog'), >     SQLFi

[web2py:23579] Re: new auth functions in trunk (basic, email/gmail, ldap)

2009-06-08 Thread notabene
On Jun 8, 5:29 am, mdipierro wrote: > Hi Richard, > > the gmail authentication is not based on open-id (yet). it presents > you with a standard login form. It tried to log you in via the normal > auth_user table. It it fails, it tried to verify your password using > the gmail smtp service. If tha

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

2009-06-03 Thread notabene
e’) On Jun 3, 2:47 pm, mdipierro wrote: > no. it is correct as it is. > > On Jun 3, 7:41 am, notabene wrote: > > > Page 84: > > Example: > > db(db.product.id>10).update(product=db.product.price+20) > > > Should be (): > > db(db.product.id>10

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

2009-06-03 Thread notabene
Page 84: Example: db(db.product.id>10).update(product=db.product.price+20) Should be (): db(db.product.id>10).update(db.product.price=db.product.price+20) On Jun 3, 5:52 am, mdipierro wrote: > http://www.web2py.com/examples/static/cookbook2.pdf --~--~-~--~~~---~

[web2py:22546] Service-provider and Oauth

2009-05-24 Thread notabene
Hi web2py-folks! I am missing 3 legged auth of user, through consumer, to service provider? Web2py has most of the basic elements for building a service-provider application. E.g. REST, json, xml. xml-rpc etc. As I see it - the only (?) missing element is Auth (/Oauth). In a service-architectu

[web2py:22067] Re: web2py 1.62.0 posted

2009-05-18 Thread notabene
(Python 2.6.2): /var/lib/python-support/python2.6/MySQLdb/__init__.py:34: DeprecationWarning: the sets module is deprecated from sets import ImmutableSet Traceback (most recent call last): File "./web2py.py", line 16, in import gluon.import_all File "/home/hosts/googleappengine/web2py-

[web2py:20885] Re: rpx

2009-04-30 Thread notabene
I am perfectly happy with the free version. When users login they are redirected to mydomain.rpx.com. As I understand the paid versions instead redirects to e.g. rpx.mydomain which is hosted at rpx. The pro version eventually aggregates some social-data on the user. On Apr 30, 6:52 pm, Joe Barn

[web2py:20868] Re: rpx

2009-04-30 Thread notabene
I have extended the auth -module with rpx functionality http://rpxauth.googlecode.com/ It includes the posibility of having more (openid) identities attached to the user. I would like to have it integrated directly in web2py!? On 30 Apr., 07:00, mdipierro wrote: > I was about to include googl

[web2py:20606] Re: CSS and jquery

2009-04-27 Thread notabene
On 27 Apr., 07:04, mdipierro wrote: > Should we rewrite the welcome app using these so that we can use > jquery themes? > > Can you help? > > Massimo Your AJAX application http://www.web2py.com/events/default/index is very nice and innovative. It uses the JQuery Accordion. I have modified it to

[web2py:19738] Re: how to detect connected users?

2009-04-14 Thread notabene
Hint You could save session-records to the database and se who has recently started a session (Modified Datetime). But it is difficult to notify the user - except when he calls a controller/function. On Apr 14, 9:40 am, Marco Prosperi wrote: > hi all, how can I verify if there are users current

[web2py:19737] Re: how to detect connected users?

2009-04-14 Thread notabene
Hint: I don't believe You can notify user's - except if You have a javascript, which pulls notifications (if any) from the server (with certain intervals). Regards Niels Bjerre On Apr 14, 9:40 am, Marco Prosperi wrote: > hi all, how can I verify if there are users currently connected to my >

[web2py:19358] Re: Coooooool!

2009-04-07 Thread notabene
Very nice and cool! Because of the static height (style="height: 35px;" in views/default/ index.html) it only works for me when moving the div/window away from the left column. is jDiv and the new web2py_ajax.html finding its to web2py or a svn repository? Niels On 6 Apr., 08:09, mdipierro w

[web2py:18970] Re: Ajax Auth and Multiple Single Signon

2009-04-02 Thread notabene
I am working on an extension to auth that allows single signon from OpenID, Google, Yahoo, AOL, Facebook , MySpace and Windows Live. It use the RPX service from JanRain and allows consolidation of different identities as a single user. RPX has an ajax signin popup. Look here: https://rpxnow.com/

[web2py:18776] Re: Would this patch be useful?

2009-03-30 Thread notabene
On 30 Mar., 09:13, Yarko Tymciurak wrote: > On Mon, Mar 30, 2009 at 1:58 AM, notabene wrote: > > > Thumbs up. Very good idea! > > > We have had the discussion around MVC. And the conclusion were, that > > there is no clear-cut border between MVC. No perfect or true

[web2py:18772] Re: Would this patch be useful?

2009-03-29 Thread notabene
Thumbs up. Very good idea! We have had the discussion around MVC. And the conclusion were, that there is no clear-cut border between MVC. No perfect or true division. (Java-) scripting functionality in controllers can ease the way for AJAX forms and functionality in views. On 30 Mar., 06:15, md

[web2py:18494] Re: html META error

2009-03-23 Thread notabene
Thats it - Thank You! On 23 Mar., 18:57, DenesL wrote: > Try: > > META(**{'_http-equiv':'content-type','_content':'text/ > html','_charset':'utf-8'}) > > note: you need the dictionary syntax since _http-equiv is an invalid > identifier in Python and can not be used as a keyword argument. --~--~-

[web2py:18489] html META error

2009-03-23 Thread notabene
META('',_http-equiv='content-type',_content='text/html', _charset='utf-8') or TAG.meta('',_http-equiv='content-type',_content='text/html', _charset='utf-8') or META(_charset='utf-8') returns SyntaxError: tags cannot have components --~--~-~--~~~---~--~~ You recei

[web2py:18456] Re: store multiple records in storage and commit all at once

2009-03-22 Thread notabene
Or rather: db.executesql('START TRANSACTION;') db.executesql('Insert into ;') db.commit() On Mar 22, 4:42 pm, notabene wrote: > Or run db.executesql('Insert into ')? > > On Mar 22, 4:04 pm, mdipierro wrote: > > > You have to loop a

[web2py:18455] Re: store multiple records in storage and commit all at once

2009-03-22 Thread notabene
Or run db.executesql('Insert into ')? On Mar 22, 4:04 pm, mdipierro wrote: > You have to loop and commit each of them. > > On Mar 22, 6:14 am, phneoix wrote: > > > hi, > >   i would like to know whether it is possible to store multiple > > records in storage and commit them all at once to t

[web2py:18454] Re: Authentication related question

2009-03-22 Thread notabene
Hi Massimo Thank You for Your great work. I have the impression that You are a "one-man army", that design, develop, make documentation, teach and support. But (always a but?) if I may suggest an improvement: When You get these questions. Why not refer to the best available documentation? In thi

[web2py:17486] Re: CAS and new Auth module (tools.py)

2009-03-04 Thread notabene
Thanks! I will look into it. On 4 Mar., 14:42, mdipierro wrote: > On Mar 4, 2:50 am, notabene wrote: > > > I am wondering: > > > How does CAS and the new Auth module relate? > > For now they do not relate although it would be nice to rewrite CAS on > Auth and ma

[web2py:17464] CAS and new Auth module (tools.py)

2009-03-04 Thread notabene
I am wondering: How does CAS and the new Auth module relate? I am having more domains pointing to different paths on the same web2py-instance. I want a coherent user-table, login, authentication and authorization on all URL's on the web2py-instance. (No login when changing domain). Any hints? -

[web2py:17139] Re: facebook + web2py app

2009-02-28 Thread notabene
gt; an error ticket which facebook ineterprets as invalid format. use > admin and browse for recent errors. > > On Feb 27, 10:29 am, notabene wrote: > > > I use Your facebook application: > > > views/layout.html: > > > > > {{if response.flash:}}{{=response.

[web2py:17073] Re: facebook + web2py app

2009-02-27 Thread notabene
imo > > On Feb 27, 4:14 am, notabene wrote: > > > Might be very usefull. > > > I get this error: > > > FBML Error (line 88): illegal tag "body" under "fb:canvas" > > > Using /facebook/default/index > > > controller/default: >

[web2py:17056] Re: facebook + web2py app

2009-02-27 Thread notabene
Might be very usefull. I get this error: FBML Error (line 88): illegal tag "body" under "fb:canvas" Using /facebook/default/index controller/default: from applications.facebook.modules.facebook import * facebook_settings.FACEBOOK_API_KEY = 'da74af75965cb6cxxx' facebook_settings.FACEBO

[web2py:16790] Re: CAS vs Auth

2009-02-23 Thread notabene
Integrated Authentication and Authorization Infrastructure systems tend to be very complex. The standard I suppose is defined by OASIS in the "Security Assertion Markup Language" (SAML http://en.wikipedia.org/wiki/SAML). An easy demo of the User-experience is given here: http://www.switch.ch/aa

[web2py:16174] Re: web2py has a profiler

2009-02-11 Thread notabene
That's better. Thank You. By the way. Remember to install python-profiler. Niels On Feb 11, 10:55 am, Douglas Soares de Andrade wrote: > Em Quarta-feira 11 Fevereiro 2009, às 05:02:16, Wes James escreveu: > > > > > Massimo, > > > I just downloaded trunk and tried starting as normal and get: >

[web2py:15849] Re: query bug?

2009-02-03 Thread notabene
to a string, sqlitke keeps the data as int. Now web2py thinks is a > string and sqlite stores an int. > > do not change field types in sqlite if you have data stored. > > Massimo > > On Feb 3, 7:53 am, notabene wrote: > > > I am still mystified, but found a Work around

[web2py:15848] Re: query bug?

2009-02-03 Thread notabene
to a string, sqlitke keeps the data as int. Now web2py thinks is a > string and sqlite stores an int. > > do not change field types in sqlite if you have data stored. > > Massimo > > On Feb 3, 7:53 am, notabene wrote: > > > I am still mystified, but found a Work around

[web2py:15811] Re: query bug?

2009-02-03 Thread notabene
I am still mystified, but found a Work around by: exporting, deleting and importing csv-file On Feb 3, 8:36 am, notabene wrote: > record from arrdato: > arrdato.id      arrdato.uuid    arrdato.arrid   arrdato.stedid   > arrdato.arrangid > arrdato.postnr > 1190            11

[web2py:15810] Re: query bug?

2009-02-03 Thread notabene
I am still mystified, but found a Work around by: exporting, deleting and importing csv-file On Feb 3, 8:36 am, notabene wrote: > record from arrdato: > arrdato.id      arrdato.uuid    arrdato.arrid   arrdato.stedid   > arrdato.arrangid > arrdato.postnr > 1190            11

[web2py:15804] query bug?

2009-02-02 Thread notabene
record from arrdato: arrdato.id arrdato.uuidarrdato.arrid arrdato.stedid arrdato.arrangid arrdato.postnr 119011902 1 3 3740 I can select it by id, uuid and postnr, but not by: arrid,stedid,arrangid! The probl

[web2py:15453] Access record id on update-form

2009-01-26 Thread notabene
Problem trying to access record id on update-form form=SQLFORM(db.arr,rows[0],fields=fields) if form.accepts(request.vars,session): session.flash="Record updated (%s)" % (form.vars.id) Flash result for id: None I can access other variables e.g form.vars.name but NOT: form.vars.id I am puz

[web2py:15311] Re: SQL ORDER BY bug(?)

2009-01-23 Thread notabene
ORDER BY MAX(table.field) DESC ...". Are you > saying it does not or are you mixing ~ with raw sql? > > On Jan 22, 8:01 am, notabene wrote: > > > DESC: ORDER BY ~MAX(arrstart) result in a strange sorting! > > ASC: ORDER BY MAX(arrstart) works as expected: > > I

[web2py:15265] error in SQL orderby?

2009-01-22 Thread notabene
SELECT arrdato.arrid, MAX(arrstart), COUNT(arrid) FROM arrdato WHERE ((arrdato.stedid=1 OR arrdato.arrangid=1) AND arrdato.arrstart<'2009-01-22 14:00:21') GROUP BY arrdato.arrid ORDER BY ~MAX(arrstart) LIMIT 10 OFFSET 0; Result [(3, u'2009-01-20 14:53:46', 1), (4, u'2009-01-14 16:56:11', 1), (5,

[web2py:15264] SQL ORDER BY bug(?)

2009-01-22 Thread notabene
DESC: ORDER BY ~MAX(arrstart) result in a strange sorting! ASC: ORDER BY MAX(arrstart) works as expected: I can insert DESC in raw sql, but howto specify in db.select? SELECT arrdato.arrid, MAX(arrstart), COUNT(arrid) FROM arrdato WHERE ((arrdato.stedid=1 OR arrdato.arrangid=1) AND arrdato.arrst

[web2py:14991] Re: able to set unique key column on a table?

2009-01-15 Thread notabene
On Jan 15, 7:01 am, MadWalker wrote: > hi, > > is it able to set a key column on a table to be unique > like for example; user name > if not, > is there another way to do it? > > Good day, > Madwalker in model file: db.define_table('table' db.field('name','string',unique=True)) #FORM VA

[web2py:14885] Re: Lamba and T2

2009-01-13 Thread notabene
On Jan 13, 11:00 am, vihang wrote: > hi, > > I am trying to execute this > > def add(): >     return dict(form=t2.create(db.Accomodation, onaccept=lambda form:\ >     t2.add_access(db.Accomodation,form.vars.id)\ >     and db.listing_owner.insert(person_id=t2.person_id, > Accomodation_id=form.vars

[web2py:14717] Re: insert default form value from controller

2009-01-08 Thread notabene
Dont work for me: form=t2.create(db.arr,vars={'name':'Test'}) name is a string-field in db.arr I use latest version of web2py and t2/t3 I don't understand??! On 8 Dec. 2008, 23:15, mdipierro wrote: > t2.createuses but differs from SQLFORM. You should use: > > form =t2.create(db.mytable,vars={

[web2py:14610] Re: Debugging GAE

2009-01-06 Thread notabene
On Jan 6, 5:34 am, Jonathan Benn wrote: > Hi Notabene, > > On Jan 4, 6:25 pm, notabene wrote: > > > The log only has warnings of "no cache.disk". Sorry! > > It sounds like something is seriously broken in your code base. Here's > what I suggest:

[web2py:14520] Re: Debugging GAE

2009-01-04 Thread notabene
On Jan 4, 12:26 pm, Jonathan Benn wrote: > Hi Notabene, > > On Jan 3, 6:10 pm, notabene wrote: > > > > > Any ideas on this? Ideas for debugging? > > I haven't encountered this issue myself. > > Have you looked at the logs?  Try logging in tohttp://app

[web2py:14461] Re: Debugging GAE

2009-01-03 Thread notabene
On 3 Jan., 15:49, Zoom.Quiet wrote: > On Sat, Jan 3, 2009 at 22:46, notabene wrote: > > > My application works locally on dev_appserver.py but not in the cloud > > on GAE. > > > All requests are redirected to the error function. > > > response._vars, respon

[web2py:14459] Debugging GAE

2009-01-03 Thread notabene
My application works locally on dev_appserver.py but not in the cloud on GAE. All requests are redirected to the error function. response._vars, response.vars, response.args, request.vars are all empty Any ideas on this? Ideas for debugging? Regards Niels Bjerre --~--~-~--~~---

[web2py:14408] Re: t2.create error

2009-01-02 Thread notabene
rsion. This is only a problem with > trunk not with the stable version. > > On Jan 2, 8:41 am, mdipierro wrote: > > > which version? 1.55 or earlier? > > > Massimo > > > On Jan 2, 8:20 am, notabene wrote: > > > > Can anyone help with this t2.create

[web2py:14407] Re: t2.create error

2009-01-02 Thread notabene
Version 1.55rc3 On 2 Jan., 15:41, mdipierro wrote: > which version? 1.55 or earlier? > > Massimo > > On Jan 2, 8:20 am, notabene wrote: > > > Can anyone help with this t2.create() error? > > > "invalid select attribute" > > Works in web2py  -

[web2py:14403] t2.create error

2009-01-02 Thread notabene
Can anyone help with this t2.create() error? "invalid select attribute" Works in web2py - fails in gae (dev_appserver) I did not define an (options) widget. ERROR2009-01-02 13:44:41,426 main.py] Traceback (most recent call last): File "/home/nb/web2py/gluon/restricted.py", line 62, in res

[web2py:14317] Re: T3 patterns - wishfull thinking

2008-12-30 Thread notabene
te) > > http://groups.google.com/group/web2py/browse_thread/thread/a67e2aa251... > > Hope that helps. > > Yarko > > On Tue, Dec 30, 2008 at 9:13 AM, notabene wrote: > > > Thank You very much for Your suggestions. > > > But ... > > > The copy function w

[web2py:14305] Re: T3 patterns - wishfull thinking

2008-12-30 Thread notabene
quest.vars,session): return HTML(BODY(SCRIPT > ('window.close()'))) >     return HTML(BODY(form)) > > Massimo > On Dec 28, 6:36 am, notabene wrote: > > > I need 2 patterns - and I believe they would be usefull in general: > > - t2.copy to supplement insert, upda

[web2py:14182] T3 patterns - wishfull thinking

2008-12-28 Thread notabene
I need 2 patterns - and I believe they would be usefull in general: - t2.copy to supplement insert, update, delete. - a popup page - attached by an edit or search button to a field - which can be customized to supply the field-content. I am not that experienced in web2py and python, and would app

[web2py:13811] Re: sync app email with t2.person email

2008-12-18 Thread notabene
form=t2.create(db.test, onaccept=trigger) As I understand 'onaccept' is an "after-insert" trigger. It does not matter if I change form.vars in this trigger. Are there any models for "before-update" and "before-insert" in T3? (other than copying and modifiing code from T3.) How do i pre-populate

[web2py:13635] Re: References on GAE

2008-12-16 Thread notabene
le(' | '.join([k for k in self.ks if k! > ='id']),None,None)) > > Let me know if this fixes it. Mind that you will have to also add the > indices to index.yaml > > Massimo > > On Dec 15, 12:59 am, notabene wrote: > > > db.define_table('a

[web2py:13565] Re: References on GAE

2008-12-14 Thread notabene
It works on web2py - but not on GAE? On Dec 15, 7:59 am, notabene wrote: > db.define_table('adr', >   SQLField > ('name','string',length=32,required=True,requires=IS_NOT_EMPTY()), > > db.define_table('arr', >   SQLField > (

[web2py:13564] Re: References on GAE

2008-12-14 Thread notabene
elect items,tablename,fields=self._select(*fields,**attributes) File "/home/hosts/googleappengine/web2py/gluon/contrib/gql.py", line 415, in _select orders = attributes['orderby'].name.split("|") AttributeError: 'str' object has no attribute

[web2py:13546] References on GAE

2008-12-14 Thread notabene
Web2py (and T2) handles references nicely with a select input-field Goggle AppEngine does not support joins. I can use IS_IN_DB - but only to select the ID Any suggestions on how to support the references in GAE? Maybe a variation of the t2.tag_widget using a select field and saving the ID? --

[web2py:13335] Re: time-field in GAE

2008-12-11 Thread notabene
That fixed it Thank You very much! On Dec 10, 5:06 am, mdipierro <[EMAIL PROTECTED]> wrote: > I think I fixed this in trunk. Can you try it please? > > Massimo > > On Dec 9, 12:03 pm, notabene <[EMAIL PROTECTED]> wrote: > > > I have a table with a dateti

[web2py:13202] time-field in GAE

2008-12-09 Thread notabene
I have a table with a datetime field and a time-field ("varighed"). Problem: The table can create records - but when updating through T2.form.accepts it fails It only fails on GAE. I can se that GAE internally saves the time field as a date-field? any ideas is appreaciated! Traceback (most

[web2py:13168] Re: new T3 and appadmin on GAE

2008-12-08 Thread notabene
On Dec 8, 3:12 pm, mdipierro <[EMAIL PROTECTED]> wrote: > somewhere yin your model you need > > session.connect(request,response,db) Thanks I forgot db-sessions in the init-application which redirect to main apllication. I like the T3 interface very much. I guess it's still possible to complete

[web2py:13125] Re: new T3 and appadmin on GAE

2008-12-08 Thread notabene
On 8 Dec., 02:42, mdipierro <[EMAIL PROTECTED]> wrote: > I posted yet another version of T3. This one can handle/upload static > files and has a version of appadmin that works on GAE (when the > expression has an equivalent on GAE) > > Should this new version of appadmin be made standard? > > It i

[web2py:10631] Re: geocoding on GAE?

2008-10-26 Thread notabene
On 24 Okt., 05:19, mdipierro <[EMAIL PROTECTED]> wrote: > Why does this not work on gae? > >     def urlopen(url): >         try: >             from google.appengine.api.urlfetch import fetch >             if url.find('?')>=0: >                 url,payload=url.split('?') >                 return f