Re: [web2py] Re: running web2py on Android?

2010-10-15 Thread David Mitchell
LOL - root the android has a meaning in my part of the world that is apparently not universal. Let's just say that many lonely geeks may be pining for this to become a viable option at some point in their lives... Dave M. On 15 October 2010 14:58, Thadeus Burgess thade...@thadeusb.com wrote:

Re: [web2py] Re: Vote for a new logo

2010-10-15 Thread Bruno Rocha
Comments are working now, lets test and comment on some logos! http://www.blouweb.com/logovote 2010/10/15 mdipierro mdipie...@cs.depaul.edu I agree. The one Martin made is good but ... 1) should made to run on GAE 2) should use RPX for login 3) should provide multiple lists of logos for

[web2py] Re: Vote for a new logo

2010-10-15 Thread mdipierro
I will add some comments here. 1) It is important to avoid brand confusion with web.py (the two has to be visible) 2) It is not a good idea to have a logo that looks like it is falling apart 3) As much as I may like snakes, I am not convinced reptiles convey a professional image. Even if a logo

Re: [web2py] Re: Vote for a new logo

2010-10-15 Thread Bruno Rocha
I added your comment and some more important info to http://www.blouweb.com/logovote/default/upload 2010/10/15 mdipierro mdipie...@cs.depaul.edu I will add some comments here. 1) It is important to avoid brand confusion with web.py (the two has to be visible) 2) It is not a good idea to

[web2py] Re: web2py 1.87.3 is OUT

2010-10-15 Thread annet
Hi Chris, In April we worked out the following procedure to upload and install packed web2py applications at webfaction: 1) Log on to webfaction via terminal/ssh 2) Go to your remote web2py/applications/ directory 3) As the user who is the owner of the Welcome application, manually create a

[web2py] Re: Vote for a new logo

2010-10-15 Thread cjrh
On Oct 15, 3:17 am, mdipierro mdipie...@cs.depaul.edu wrote: I would have sworn this was in the book. Shame on me. It is now.

[web2py] Re: web2py 1.87.3 is OUT

2010-10-15 Thread annet
Massimo and Ron, When I run python web2py.py I get the following ImportError: Traceback (most recent call last): File web2py.py, line 20, in ? import gluon.widget File /home/fitwise/webapps/web2py/web2py/gluon/widget.py, line 25, in ? import main File

[web2py] Re: cron @reboot not working on 1.87.3

2010-10-15 Thread Álvaro J . Iradier
Suggested patch: *** newcron.old.py Fri Oct 15 11:27:34 2010 --- newcron.py Fri Oct 15 11:29:08 2010 *** *** 175,181 task[id] = [] vals = s.split(',') for val in vals: ! if '-' in val and '/' not in val:

[web2py] Re: Packaging web2py for Debian

2010-10-15 Thread Jurgis Pralgauskis
Maybe You could use https://help.launchpad.net/Packaging/SourceBuilds/ if you'd create stable branch on bazar and add packaging recipy like https://code.edge.launchpad.net/~mdipierro/web2py/devel/+new-recipe from https://code.edge.launchpad.net/~mdipierro/web2py/devel (notice

[web2py] Re: web2py 1.87.3 is OUT

2010-10-15 Thread ron_m
This could be the problem, since you are probably on CentOS or Redhat a version of Python 2.5 will not have hashlib built in http://pypi.python.org/pypi/hashlib/20060408a is where you can get one tested on 2.3 and 2.4 I have not had to do something like this yet but I believe site- packages is

[web2py] Re: gae memcace clear?

2010-10-15 Thread Jurgis Pralgauskis
I made a workaround to reset cache (per session for now). I have array, where I mark keys to be reset, and afer reset they can be removed or marked as done. def caching_time_get(key, caching_time=60*60*24): function to handle caching resets when the reset is on, it returns 0 once

[web2py] Re: running web2py on Android?

2010-10-15 Thread dustin.b
i tried to run w2p on android with ASE (android scripting env). It's been a while since I tried this but i can remember that there was a problem with threads or something like this. w2p seems to use python packages that are not avaible on android, didnt remember exactly which one.

[web2py] Re: Vote for a new logo

2010-10-15 Thread Martin.Mulone
Great work bruno. The comments are working!. Yes I think we have to show comment counter and make the vote as a rating system. On 15 oct, 03:30, Bruno Rocha rochacbr...@gmail.com wrote: I added your comment and some more important info tohttp://www.blouweb.com/logovote/default/upload

[web2py] Re: Packaging web2py for Debian

2010-10-15 Thread Mark Breedveld
You have the idea. Thanks for clearing it towards the others. My guesses it we need to do both. Because Jose goal is general purpose and mine aswell, but comes with overkill in the most cases. In Jose case I would suggest a slight change. web2py-core web2py-gluon This has been discusses before,

[web2py] Re: Anyone used WHOOSH as search engine with web2py?

2010-10-15 Thread selecta
you wold have to concatinate all fields you want to be indexed for a record or define multiple fields in the woosh index setup but it should be possible On Oct 15, 3:21 am, mdipierro mdipie...@cs.depaul.edu wrote: I do not think it is possible because it is file based. On Oct 14, 8:19 pm,

[web2py] Re: Vote for a new logo

2010-10-15 Thread Martin.Mulone
It came to my mind, with a little modification, we can have our uservoice and stackoverflow. And if you want to contribute to another project logo put in description: web2pyslice, etc. this is easy to implement. On Oct 15, 7:32 am, Martin.Mulone mulone.mar...@gmail.com wrote: Great work bruno.

[web2py] Re: cron @reboot not working on 1.87.3

2010-10-15 Thread mdipierro
In trunk now. On Oct 15, 4:31 am, Álvaro J. Iradier airad...@gmail.com wrote: Suggested patch: *** newcron.old.py      Fri Oct 15 11:27:34 2010 --- newcron.py  Fri Oct 15 11:29:08 2010 *** *** 175,181               task[id] = []               vals = s.split(',')          

[web2py] Re: Vote for a new logo

2010-10-15 Thread weheh
Hi Bruno - comments are nice. I don't like the randomizing effect. Very disorienting when you push into come out of comments as you end up in a different place.

[web2py] link in mail request_reset_password

2010-10-15 Thread annet
While testing my cms application I found that the link in the mail send by the request_reset_password function isn't clickable, the user has to copy and paste the link into the browser. Am I the only one experiencing this? Is there a way to solve this problem? Regards, Annet

Re: [web2py] Re: labels in crud.select

2010-10-15 Thread Richard Vézina
Hello, It's not working... I am really confuse... I try with 1.83.2 and 1.87.3. I try with fields=['myfield1','myfield2'] and without it always with field_labels and also with and without headers='fieldname:capitalize'... Is it a issue? Richard On Thu, Oct 14, 2010 at 8:16 PM, Alex

[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] TypeError: 'function' object is unsubscriptable

2010-10-15 Thread annet
In a view I have the following lines of code. {{if 'promobox' in globals():}} div class=sidebox {{if promobox[0].kop:}} h3{{=promobox[0].kop}}/h3 {{pass}} {{=XML(promobox[0].tekst)}} /div !-- sidebox -- {{pass}} when I expose a function that does not return a promobox I

[web2py] Re: Vote for a new logo

2010-10-15 Thread Anthony
If we're making an app for more general use, we might consider making the voting method configurable (e.g., single vote, multiple vote, rating, etc.). Note, using ratings (i.e., range voting) can be tricky. If the winner is to be the option with the highest average, then it's important to make

[web2py] Re: Vote for a new logo

2010-10-15 Thread dustin.b
why is the deadline so early? i really want to post some logos, but it was not possible to really think about some designs and finally create some..

Re: [web2py] Re: Vote for a new logo

2010-10-15 Thread Jonathan Lundell
On Oct 14, 2010, at 11:03 PM, Bruno Rocha wrote: Comments are working now, lets test and comment on some logos! http://www.blouweb.com/logovote Thanks. A request: could we have a textarea for comment entry, please?

[web2py] Re: Vote for a new logo

2010-10-15 Thread Anthony
Something's wrong in IE -- all the logos are vertically aligned at the top of the header instead of the middle. This only happened in the last couple hours I think. Looks OK in Chrome. On Oct 13, 5:17 pm, Bruno Rocha rochacbr...@gmail.com wrote: Martin Mulone made the logovote application. I

[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: Offline apps

2010-10-15 Thread Fabio Alessandro Locati
Thanks Darcy for the info, I'll check out couchdb, it seems very interesting :) 2010/10/15 Darcy Clark da...@qualitysystems.com I've been experimenting with Couchdb as a database back-end to web2py - having some success. Basically Couchdb is engineered to handle offline-online transitioning

[web2py] Re: Packaging web2py for Debian

2010-10-15 Thread José L .
On 14 oct, 23:51, Christopher Steel chris.st...@gmail.com wrote: If your break things down into one or more “debian” packages and at least one web2py application you could end up with a phenomenally powerful and easy to maintain setup that could have resounding repercussions, so to speak,

[web2py] Re: Packaging web2py for Debian

2010-10-15 Thread José L .
On 15 oct, 11:33, Jurgis Pralgauskis jurgis.pralgaus...@gmail.com wrote: Maybe You could usehttps://help.launchpad.net/Packaging/SourceBuilds/ if you'd create stable branch on bazar and add packaging recipy likehttps://code.edge.launchpad.net/~mdipierro/web2py/devel/+new-recipe

[web2py] Re: Packaging web2py for Debian

2010-10-15 Thread José L .
On 15 oct, 13:32, Mark Breedveld m.breedv...@solcon.nl wrote: You have the idea. Thanks for clearing it towards the others. My guesses it we need to do both. Because Jose goal is general purpose and mine aswell, but comes with overkill in the most cases. In Jose case I would suggest a

[web2py] Re: Vote for a new logo

2010-10-15 Thread Anthony
Hmmm, looks OK in IE again -- not sure what happened. On Oct 15, 11:34 am, Anthony av201...@yahoo.com wrote: Something's wrong in IE -- all the logos are vertically aligned at the top of the header instead of the middle. This only happened in the last couple hours I think. Looks OK in Chrome.

[web2py] buckingham for dimensional analysis/unit conversion/error propagation

2010-10-15 Thread mdipierro
http://code.google.com/p/buckingham/

[web2py] dealing with extra clicks on a link

2010-10-15 Thread meland
Hello, First, I would appreciate if anyone can help with this issue I'm facing. Second, I am new to web2py, and not a programmer by profession. I have written an application for conducting tournaments with the ultimatum game - a simple bargaining game. The problem: it seems to work fine

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

2010-10-15 Thread mdipierro
look into default. You can replace def user(): return dict(form=auth()) with def agent(): return dict(form=auth()) 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 carl.ro...@gmail.com wrote: Is

Re: [web2py] Re: Vote for a new logo

2010-10-15 Thread Bruno Rocha
2010/10/15 dustin.b dustin.bens...@googlemail.com why is the deadline so early? i really want to post some logos, but it was not possible to really think about some designs and finally create some.. I do not know, I just picked a date that was not too long. Massimo should decide a better

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

2010-10-15 Thread Carl
thanks M. Do I understand that your solution is to have two separate user tables in db.py? On 15 October 2010 18:42, mdipierro mdipie...@cs.depaul.edu wrote: look into default. You can replace def user(): return dict(form=auth()) with def agent(): return dict(form=auth()) def

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

2010-10-15 Thread mdipierro
Not necessarily and I would not do it that way but you can. On Oct 15, 1:12 pm, Carl carl.ro...@gmail.com wrote: thanks M. Do I understand that your solution is to have two separate user tables in db.py? On 15 October 2010 18:42, mdipierro mdipie...@cs.depaul.edu wrote: look into

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 mdipie...@cs.depaul.edu wrote: Not necessarily and I would not do it that way but you can. On Oct 15, 1:12 pm, Carl carl.ro...@gmail.com wrote: thanks M. Do I

[web2py] Sending 204 response page

2010-10-15 Thread Amit Ambardekar
I want to know how I can send 204 response to user? With PHP it is simple as following: header(HTTP/1.0 204 No Content); Thanks

Re: [web2py] Sending 204 response page

2010-10-15 Thread Michele Comitini
http://www.web2py.com/book/default/chapter/04#HTTP-and-redirect 2010/10/15 Amit Ambardekar amit...@gmail.com: I want to know how I can send 204 response to user? With PHP it is simple as following: header(HTTP/1.0 204 No Content); Thanks

[web2py] Re: dealing with extra clicks on a link

2010-10-15 Thread Alex
Hello, I was going to do something similar with some 2 players games (which I have yet to implement), but was planning on doing the polling on the client-side with Javascript and AJAX. There is a function in Javascript: window.setTimeout(jsFunctionToRun, timeToRunInMilliseconds); That can be

[web2py] Re: labels in crud.select

2010-10-15 Thread Alex
Maybe it's the syntax? headers={'person.name': 'Name', 'table.colName': 'MyNewName'} Not: headers='fieldName:capitalize' On Oct 15, 8:00 am, Richard Vézina ml.richard.vez...@gmail.com wrote: Hello, It's not working... I am really confuse... I try with 1.83.2 and 1.87.3. I try with

[web2py] Re: Vote for a new logo

2010-10-15 Thread weheh
Since Denis L I have the same core logo design, we need a time stamp to resolve order of submission. On Oct 15, 1:46 pm, Bruno Rocha rochacbr...@gmail.com wrote: 2010/10/15 dustin.b dustin.bens...@googlemail.com why is the deadline so early? i really want to post some logos, but it was not

[web2py] Re: Vote for a new logo

2010-10-15 Thread weheh
Bruno Rocha - could you modify display page to be more gallery style rather than inline? I don't think we need to see the banner buttons for every logo. Thx for the good work. On Oct 15, 1:46 pm, Bruno Rocha rochacbr...@gmail.com wrote: 2010/10/15 dustin.b dustin.bens...@googlemail.com why is

[web2py] Re: Web2py like clone in Java?

2010-10-15 Thread Savio Sabino
You can see the alternatives to agile frameworks in Java: Grails; Spring Roo; Scooter Framework; Play Framework; Next Framework. But none compares to Python Web Frameworks or Rails in respect to simplicity, amount of features and the maturity in the field of agile frameworks. And I think beyond

Re: [web2py] Re: Web2py like clone in Java?

2010-10-15 Thread Michele Comitini
Lately I have been forced to use wicket (wicket.apache.org). Wicket is by no means agile compared to web2py. Wicket is not a full stack framework it needs a lot of other things to serve pages. As with any java coding wicket takes ages and pages to do things that python does in one line. Against

Re: [web2py] Re: Vote for a new logo

2010-10-15 Thread Bruno Rocha
2010/10/15 weheh richard_gor...@verizon.net Bruno Rocha - could you modify display page to be more gallery style rather than inline? I don't think we need to see the banner buttons for every logo. Thx for the good work. DONE: http://www.blouweb.com/logovote/default/index

[web2py] Re: web2py 1.87.3 is OUT

2010-10-15 Thread Zphen
I upgraded to version 1.87.3, the problem I am facing is that I cannot upload and install packed applications via the admin web interface. The flash message: unable to install application init. I had the same problem when setting up an Ubuntu 10.04 AMI with web2py 1.87.3 on EC2 yesterday

Re: [web2py] Re: Vote for a new logo

2010-10-15 Thread Michele Comitini
@Bruno excellent work! 2010/10/15 Bruno Rocha rochacbr...@gmail.com: 2010/10/15 weheh richard_gor...@verizon.net Bruno Rocha - could you modify display page to be more gallery style rather than inline? I don't think we need to see the banner buttons for every logo. Thx for the good work.

[web2py] Can jqgrid be resized?

2010-10-15 Thread Percy
Hello, I am wondering if a jqgrid table can be resized? Currently I have the following code: displayrows=plugin_wiki.widget('jqgrid',db.entry,'','','','divtest','', 250,500) And no matter which numbers I enter for the last two parameters (width and height according to

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

2010-10-15 Thread Carl
thanks M. adding to def candidate() auth.auth_user = 'candidate' has that side sorted. for my function agent() the process is a little more complicated. While Candidates have to formally register first and then login agents can be automatically registered (I need to add some permissions and

Re: [web2py] Can jqgrid be resized?

2010-10-15 Thread Richard Vézina
In a view you can do this : {{=plugin_wiki.widget('jqgrid',tablename,width=900,height=400)}} Richard On Fri, Oct 15, 2010 at 5:01 PM, Percy desp...@gmail.com wrote: Hello, I am wondering if a jqgrid table can be resized? Currently I have the following code:

Re: [web2py] Re: labels in crud.select

2010-10-15 Thread Richard Vézina
I try in many ways with no success... I read somewhere that headers='fieldName:capitalize' was the only parameter for headers accepted... What I did : selected=crud.select(table,field_labels={'field1':'abc'},headers='fieldname:capitalize')

[web2py] list:string with empty list is not reversible

2010-10-15 Thread Bob_in_Comox
Using web2py 1.87.2 with sqlite I need to store and retrieve a list of strings from a multple select. I have a case where the list can be the empty list []. It will encode to the datebase as '||', but will decode to ['|'], not []. The current gluon.sql.py is: def bar_encode(items): return

[web2py] Re: Packaging web2py for Debian

2010-10-15 Thread Christopher Steel
IMHO I would not separate anything. A big part of Web2py's magic is that you do don't need to install it. Keeping everything together insures that upgrades will always work via the web2py web interface (with a pleasant side effect being that you do not have to repackage each time Web2py is updated

[web2py] Re: labels in crud.select

2010-10-15 Thread Alex
Here you go, I just tested this: selected=crud.select(table, headers={'table.field1': 'capitalize'}) You have to explicitly specify the table name of the field you want to label. On Oct 15, 4:54 pm, Richard Vézina ml.richard.vez...@gmail.com wrote: I try in many ways with no success...

[web2py] custom controllers

2010-10-15 Thread Jonathan Thielitz
when it is said that we need 4 cutome contollers dose editing the ones that are already there count, such as def index, ect, or do we need to creat all new ones, and if so I need advice on what to make, as it is now all i have Is a start up page that asks the users name, then tells them that they

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

2010-10-15 Thread Radomirs Cirskis
Hi Carl! you can implement two registration similar to the technique Massimo advised the authentication. You could look into CAS. Not 100% sure, but it could be solution for your case. I could be mistaken. Can you elaborate further on what you are trying to achieve? rad On Oct 16, 10:00 am,

[web2py] Re: list:string with empty list is not reversible

2010-10-15 Thread mdipierro
fixed in trunk On Oct 15, 5:42 pm, Bob_in_Comox rwstj...@gmail.com wrote: Using web2py 1.87.2 with sqlite I need to store and retrieve a list of strings from a multple select. I have a case where the list can be the empty list []. It will encode to the datebase as '||', but will decode to

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

2010-10-15 Thread Carl Roach
I've got authentication working with LinkedIn. But no registration step happens... I would like to add a set of permissions the first time a new user logins in via LinkedIn. For a second type of user I offer a registration page to get email/password and then add a different set of permissions.

[web2py] Re: Packaging web2py for Debian

2010-10-15 Thread mdipierro
I do not know what the best way and retaining the ability to to hot upgrades is important. Just to add a piece of information. Jonathan is working on a re factoring that will allow web2py to be installed in one folder, keep applications/configurations/logs in another, and run from a third folder.

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

2010-10-15 Thread mdipierro
This is what I normally do: 1) I use LinkedIN with RPX (but should be same with OAuth) 2) my auth_user table is populated automatically when users login via RPX 3) my auth_user table as a field registered' invisible and defaults to false 4) my model has this code if auth.user and

[web2py] Re: Web2py like clone in Java?

2010-10-15 Thread mdipierro
Do you mean client-side events or server-side events, or something in between? I think while we lack server-side events we actually have a system for handling client side events using jQuery and LOAD. I will post an example. I need to resume and fix this:

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

2010-10-15 Thread Carl Roach
Thanks M I'll base my agent user type on your approach Thanks again for taking the time On 16 Oct 2010, at 00:48, mdipierro mdipie...@cs.depaul.edu wrote: This is what I normally do: 1) I use LinkedIN with RPX (but should be same with OAuth) 2) my auth_user table is populated automatically

[web2py] Re: custom controllers

2010-10-15 Thread mdipierro
This is a question about my class not about web2py so we should continue this conversation privately. Please email me personally. Anyway, the answer is: you need to write code for at least 4 new controllers. The ones that come in default.py already (download, user, call) do not count and you

[web2py] Re: Can jqgrid be resized?

2010-10-15 Thread Percy
Thank you. That's working. Another question: how would I go about editing the CSS for the jqgrid plugin in plugin_wiki? I need to basically edit the height of the column headers such as div id=jqgh_name class=ui-jqgrid-sortable. After applying a new CSS theme, the jqgrid headers seem to have been

[web2py] Re: Vote for a new logo

2010-10-15 Thread weheh
Bruno, thanks for the gallery view. I think you can put 3 to a row by trimming the edges off of the background. Also, I suggest you condense the information below the logo, like uploaded by and uploaded on. Identification info can all be put on 1 line under the logo. Also, please put the Vote and

[web2py] twython - easy twitter access with python

2010-10-15 Thread Bruno Rocha
http://pypi.python.org/pypi/twython/1.2.1

[web2py] Re: Vote for a new logo

2010-10-15 Thread weheh
logovote uploading capability is broken.

[web2py] Re: Can jqgrid be resized?

2010-10-15 Thread Percy
Also, I was wondering: is there a way for jqgrid columns to have an auto expand or auto width etc. property? I know you can set the col_width attribute with numerical values, but I was hoping for something more dynamic. Thanks again! -Percy On Oct 15, 4:27 pm, Richard Vézina

[web2py] new-app-engine-sdk

2010-10-15 Thread mdipierro
http://googleappengine.blogspot.com/2010/10/new-app-engine-sdk-138-includes-new.html

Re: [web2py] Re: Vote for a new logo

2010-10-15 Thread Bruno Rocha
I just made a test http://blouweb.com/logovote/default/index?logoid=95 It works well, I am going to delete my test. 2010/10/15 weheh richard_gor...@verizon.net logovote uploading capability is broken. -- http://rochacbruno.com.br

[web2py] Re: Web2py like clone in Java?

2010-10-15 Thread mdipierro
Make a mode called button_event.py objects={} class BUTTON(DIV): def __init__(self,*a,**b): self.tag = 'button' DIV.__init__(self,*a,**b) self.id=self['_id'] objects[self.id]=self def addListener(self,name,f):

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

2010-10-15 Thread Carl
One small problem I'm coming across... I'm using OAuth to login via LinkedIn for a subset of my users. In gluon/tools.py line 1471 the statement hard-codes 'user' (web2py 1.87.3) next = self.url('user',args='login',vars=dict(_next=next)) Is there something I should have done to avoid this route

Re: [web2py] Re: Web2py like clone in Java?

2010-10-15 Thread Michele Comitini
no idea at this time, I need some sleep ... tomorrow ;-) 2010/10/16 mdipierro mdipie...@cs.depaul.edu: Make a mode called button_event.py  objects={}  class BUTTON(DIV):     def __init__(self,*a,**b):          self.tag = 'button'          DIV.__init__(self,*a,**b)          

[web2py] Re: Web2py like clone in Java?

2010-10-15 Thread mdipierro
Notice that all the logic (from user prospective) is here: button = BUTTON('click me',_id='abc') button.addListener('xyz',lambda button:jQuery('# %s').hide()%button.id) def index(): return dict(mybutton = button) The logic in the class BUTTON could be injected in all helpers without

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

2010-10-15 Thread mdipierro
I did not realize that... can change it but for now it is indeed a problem. One solution would be to extend Auth and override url() On Oct 15, 9:07 pm, Carl carl.ro...@gmail.com wrote: One small problem I'm coming across... I'm using OAuth to login via LinkedIn for a subset of my users. In

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

2010-10-15 Thread Carl
temporarily I've renamed def agent() back to def user() the only problem I'm left with is how to get my one-off registration code to be called. for users registering by a registration form all is well. For them I've set: auth.settings.register_onaccept = lambda form: registerCandidate(form) But

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

2010-10-15 Thread Radomirs Cirskis
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 carl.ro...@gmail.com wrote: I've got authentication working with LinkedIn. But no registration step happens... I would like to add a set of

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

2010-10-15 Thread mdipierro
On a second look... 'user' only appears in auth.settings. therefore you can change them. On Oct 15, 9:51 pm, mdipierro mdipie...@cs.depaul.edu wrote: I did not realize that...  can change it but for now it is indeed a problem. One solution would be to extend Auth and override url() On Oct 15,

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

2010-10-15 Thread Carl
thanks M. I'm confused though as I can see 'user' here: In gluon/tools.py line 1471 the statement hard-codes 'user' (web2py 1.87.3) next = self.url('user',args='login',vars=dict(_next=next)) Have I misunderstood this line of code? On Oct 16, 4:51 am, mdipierro mdipie...@cs.depaul.edu wrote: On

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

2010-10-15 Thread Carl
thanks for the pointer Radomirs. the slice has the registering step disabled rpxAuth.rpx_disabled = ['register','retrieve_password', 'reset_password','change_password','profile'] but doesn't say how to skip registering by the user *and* still perform some register actions

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

2010-10-15 Thread mdipierro
I guess what I do not understand is the following. You authenticate somebody using linked (or other method), yet how do you decide 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

Re: [web2py] Re: Web2py like clone in Java?

2010-10-15 Thread Bruno Rocha
I used this http://www.gnu.org/software/pythonwebkit/ sometime with Pylons. But I think it is the base of Pyjamas. 2010/10/15 Michele Comitini michele.comit...@gmail.com Lately I have been forced to use wicket (wicket.apache.org). Wicket is by no means agile compared to web2py. Wicket is not

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

2010-10-15 Thread Carl
good question! if the account is authenticated using linkedin then I want to set-up the account a specific way. if the account is registered/logged-in the 'usual way' then I want to set-up the account in a specific but different way. I take your point with respect to trust. I've missed a

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 carl.ro...@gmail.com wrote: good question! if the account is authenticated using linkedin then I want to set-up the account