[web2py] Re: View ("Template") Variable Not defined

2010-10-13 Thread annet
Hi Joe, Try: {{if page_heading:}} {{=page_heading}} {{else:}} {{=default_value}} {{pass}} Kind regards, Annet

[web2py] Re: Packaging web2py for Debian

2010-10-13 Thread José L .
On 14 oct, 02:36, Mark Breedveld wrote: > Hello Guys, > > My apologise for my late update on the project. > Had to get my propedeuse  :p. > > And next 1 - 1,5 year I hope to do my graduation project on HRO. > Which I hope is implement or extends web2py manager. > > In other topics we discussed t

[web2py] Re: Packaging web2py for Debian

2010-10-13 Thread José L .
On 13 oct, 23:18, Tim Michelsen wrote: > > I feel this will be a maintenance nightmare unless it somehow upgrades > > itself. The release process of debian is very slow compared to ours. > > You can have automatic daily builds of a source tree import to your > PPA:https://help.launchpad.net/Pac

[web2py] View ("Template") Variable Not defined

2010-10-13 Thread Joe J
Hi All, I have a quick question regarding the behavior of variables in view code. I'm my "upper level" layout, I'd like to define a variable called page_heading. If the controller passes a page_heading variable in it's dictionary to the view, I'd like it to display the contents of that variable.

[web2py] Re: how do I redirect from add to edit?

2010-10-13 Thread weheh
See thread: http://groups.google.com/group/web2py/browse_thread/thread/373ba9cee9ea320c/a5c8093e3a6ab2e0?lnk=gst&q=id+of+last+record+added+using+crud#a5c8093e3a6ab2e0 On Oct 14, 2:10 am, Audra Rudys wrote: > How does one capture the id of a newly created record for redirect? > > Desired workflow:

[web2py] Re: Packaging web2py for Debian

2010-10-13 Thread José L .
On 13 oct, 23:17, Richard wrote: > I remember talk about ability to upgrade through admin - is that > practical? > It works, but it must be disabled in the Debian package. Versions can not be upgraded without upgrading the package, that would break the system packages database. As an example,

[web2py] Re: Packaging web2py for Debian

2010-10-13 Thread José L .
On 13 oct, 22:29, mdipierro wrote: > I feel this will be a maintenance nightmare unless it somehow upgrades > itself. The release process of debian is very slow compared to ours. > Yes and not. Debian is three distributions: stable, testing and sid. If you want to run sid, you have the most upg

[web2py] how do I redirect from add to edit?

2010-10-13 Thread Audra Rudys
How does one capture the id of a newly created record for redirect? Desired workflow: User adds record, pushes submit, record added and goes into "edit mode" for further work. I have 2 controls: add(using crud.create) and update (using crud.update). After adding, I'm trying to redirect to update

[web2py] Re: app engine file paths

2010-10-13 Thread johntynan
Chris, I am troubleshooting this same issue. Try adding this to your model: import sys import os.path site_packages_path = os.path.join(request.env.web2py_path,'site- packages') if sys.path[0] != site_packages_path: sys.path.insert(0, site_packages_path) # print site_packages_path I also add

[web2py] Re: Managing permissions

2010-10-13 Thread mdipierro
> My desire is REMOVE the table-only aspect of permissions, making them > optional, like described in the book. The concept is perfect as is. > > The fact is web2py doesn't work as described in the book. I understand everything you say but this. You can just say: db.auth_permission.table_name.re

[web2py] Re: MENU issues ...

2010-10-13 Thread mdipierro
the second argument should really be some condition that determines if that is the current age and returns True/False On Oct 13, 6:06 pm, Stef Mientki wrote: >  On 14-10-2010 00:58, Stef Mientki wrote: > > >  hello, > > > thanks to you all I got the left sidebar menu working, great !! > > > Stil

[web2py] Re: MENU issues ...

2010-10-13 Thread Stef Mientki
On 14-10-2010 00:58, Stef Mientki wrote: > hello, > > thanks to you all I got the left sidebar menu working, great !! > > Still a few questions : > > 1. In chapter 5, it says, each MENU item takes 3 parameters "as described in > chapter 4", > but I can't find the description of these parameters,

[web2py] Re: MENU issues ...

2010-10-13 Thread mdipierro
> 3. I love the "append" (and probably other methods)  of the Helpers, really > beautiful !! > Why does Menu not allow these methods ? it does. Menu is just a list of tuples response.menu=[] submenu_title=[] response.menu.append(("Search",False,URL('index'),submenu_title)) submenu_title.append(

[web2py] Re: Accessing COUNT column from DAL row

2010-10-13 Thread mdipierro
show us the query. On Oct 13, 10:47 pm, Alex wrote: > Hello, > > I have a query that does a select and COUNT on my model.  I wish the > present the COUNT value of each row on the view but am having trouble > figuring out the syntax for doing this. > > I have a for loop, iterating through each row

[web2py] Re: Where can I find plugin_wiki?

2010-10-13 Thread mdipierro
http://markup.io/v/rejay6j6rdb9 On Oct 13, 7:31 pm, Tito Garrido wrote: > I've tried to find it onwww.web2py.combut I could't find it... > > Thanks, > > Tito > > -- > > Linux User #387870 > . > _/_õ|__| > ..º[ .-.___.-._| . . . . > .__( o)__( o).:___

[web2py] Re: make two queries into one [need help]

2010-10-13 Thread mdipierro
I still do not understand the zip. Can you explain in english (or italian ;-) what the tables contain and what you want to show? On Oct 13, 7:27 pm, Andrew Evans wrote: > Hello ty for replying > > this is the function > > def indv_product(): >     this_page = request.args(0) >     product=db(db.p

[web2py] Re: Powered by web2py

2010-10-13 Thread mdipierro
Ok. I made some improvements. Please upload your app. Then we'll try to automate thumbnails of existing ones.

[web2py] Re: MENU issues ...

2010-10-13 Thread Alex
Hello, I can try to answer your first 2 questions: 1. It looks like the parameters are (based on the example in the book): - 1st parm (Item Text - 'One'): The text you want to show for the item, so the list item will render with the text of: One - True | False: True means that web2py will app

[web2py] Accessing COUNT column from DAL row

2010-10-13 Thread Alex
Hello, I have a query that does a select and COUNT on my model. I wish the present the COUNT value of each row on the view but am having trouble figuring out the syntax for doing this. I have a for loop, iterating through each row in the resultset and tried to follow the example in the book, by

[web2py] Re: Vote for a new logo

2010-10-13 Thread weheh
If anyone can delete 22, 23, and 24, please, you have my permission to do so.

[web2py] Re: Vote for a new logo

2010-10-13 Thread weheh
I'm having trouble with the app. Can't upload png's. Also, once uploaded, won't let me delete a post. I uploaded what I thought was a transparent gif and it displayed with a white background. Will try some more experiments, but wish I could delete my mistakes.

[web2py] Re: Vote for a new logo

2010-10-13 Thread weheh
The app crashed when I tried to upload a png.

Re: [web2py] Re: Managing permissions

2010-10-13 Thread Alexandre Andrade
let's explain. The book talks in auth_permission about 'object' as a generic subject of permissions. I think this as controller or a part of application, or group of functions you want to grant permissions. While a user is member of a group, a permission subject/object can granted to several g

Re: [web2py] Re: Where can I find plugin_wiki?

2010-10-13 Thread rochacbruno
Make sense to be in /plugins Em 13/10/2010, às 22:27, Anthony escreveu: > Specifically, it's listed in the "Trunk" column on the far right. > > I wonder if some people fail to notice it there because it's in the > Trunk column, which says "for developers". Maybe there should actually > be a s

[web2py] Re: please help us test new web site

2010-10-13 Thread Richard
hi Tom, I liked the lowercase logo you did: http://susweb.net/images/web2py.gif Are you able to upload a higher quality version for the competition: http://blouweb.com/logovote On Oct 12, 11:09 pm, Tom Atkins wrote: > sorry last post unless anyone would like more. i do miss the web2py orange. >

[web2py] Re: Where can I find plugin_wiki?

2010-10-13 Thread Anthony
Specifically, it's listed in the "Trunk" column on the far right. I wonder if some people fail to notice it there because it's in the Trunk column, which says "for developers". Maybe there should actually be a separate plugin_wiki column or download box. On Oct 13, 8:48 pm, rochacbruno wrote: >

Re: [web2py] Where can I find plugin_wiki?

2010-10-13 Thread rochacbruno
Under downloads in web2py.com Enviado via iPhone Em 13/10/2010, às 21:31, Tito Garrido escreveu: > I've tried to find it on www.web2py.com but I could't find it... > > Thanks, > > Tito > > -- > > Linux User #387870 > . > _/_õ|__| > ..º[ .-.___.-._| . . . . > .__( o)__( o).

[web2py] Where can I find plugin_wiki?

2010-10-13 Thread Tito Garrido
I've tried to find it on www.web2py.com but I could't find it... Thanks, Tito -- Linux User #387870 . _/_õ|__| ..º[ .-.___.-._| . . . . .__( o)__( o).:___

[web2py] Re: Packaging web2py for Debian

2010-10-13 Thread Mark Breedveld
Hello Guys, My apologise for my late update on the project. Had to get my propedeuse :p. And next 1 - 1,5 year I hope to do my graduation project on HRO. Which I hope is implement or extends web2py manager. In other topics we discussed the complexity and problems. Some of us agreed that we woul

Re: [web2py] Re: make two queries into one [need help]

2010-10-13 Thread Andrew Evans
Hello ty for replying this is the function def indv_product(): this_page = request.args(0) product=db(db.product.id == this_page).select(db.product.ALL) product_e=db(db.product_extended.product == this_page).select(db.product_extended.ALL) userstuff=db(db.user_extended.userinfo ==

[web2py] LinkedIn OAuth1.0a sample app

2010-10-13 Thread Michele Comitini
You can find a simple application here: https://code.google.com/r/michelecomitini-facebookaccess/source/browse/#hg/applications/linkedInOauth it does only auth by OAuth1.0a, the important part is in models/db.py. you can read db.py to understand how to make calls to the linkedin api. mic

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

2010-10-13 Thread Thadeus Burgess
Yes you can, sorry, just looked at the site again and noticed it. -- Thadeus On Wed, Oct 13, 2010 at 7:23 PM, Thadeus Burgess wrote: > Can you change your vote? > > -- > Thadeus > > > > > > On Wed, Oct 13, 2010 at 5:38 PM, Bruno Rocha wrote: > >> Just have to change the query, ordering by the

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

2010-10-13 Thread Thadeus Burgess
Can you change your vote? -- Thadeus On Wed, Oct 13, 2010 at 5:38 PM, Bruno Rocha wrote: > Just have to change the query, ordering by the most voted first. > > 2010/10/13 mdipierro > > really nice app by the way. thanks Martin >> >> On Oct 13, 4:17 pm, Bruno Rocha wrote: >> > Martin Mulone

[web2py] Re: Powered by web2py

2010-10-13 Thread Christopher Steel
Here is the one for our organization. Still being developed but it is starting to look OK. http://voiceofaccess.org/ Cheers, Chris On Oct 13, 11:38 am, mdipierro wrote: > The app exists: > > http://www.web2py.com/poweredby > > but it should be made better... > > On Oct 13, 8:59 am, Anthony wr

[web2py] Re: Packaging web2py for Debian

2010-10-13 Thread Martin.Mulone
On 13 oct, 18:17, Richard wrote: > I remember talk about ability to upgrade through admin - is that > practical? > In production with wsgi-apache2 is not practical. A dream if I can do in the server: sudo apt-get update, sudo apt-get upgrade. The process of debian is very slow, perhaps a ppa. An

[web2py] MENU issues ...

2010-10-13 Thread Stef Mientki
hello, thanks to you all I got the left sidebar menu working, great !! Still a few questions : 1. In chapter 5, it says, each MENU item takes 3 parameters "as described in chapter 4", but I can't find the description of these parameters, where should I look, and more what does that second para

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

2010-10-13 Thread Bruno Rocha
Just have to change the query, ordering by the most voted first. 2010/10/13 mdipierro > really nice app by the way. thanks Martin > > On Oct 13, 4:17 pm, Bruno Rocha wrote: > > Martin Mulone made the logovote application. > > > > I am hosting at my server > > > > You can post logo ideas, and vo

Re: [web2py] Re: Packaging web2py for Debian

2010-10-13 Thread Michele Comitini
+1 the package could be web2py installation manager (a debconf launched by "dpkg --reconfigure web2py") and add dependencies like a system python and needed modules. 2010/10/14 mdipierro : > the fact is... where is web2py going to reside? where are the apps > going to be? What will be the permi

[web2py] Re: Managing permissions

2010-10-13 Thread mdipierro
Not sure I understand the problem. Can you provide a test case and what you expect? On Oct 13, 5:07 pm, Alexandre Andrade wrote: > The book says about auth_permission: > > auth_permission links groups and permissions. A permission is identified by > a name and, optionally, a table and a record. F

[web2py] Re: Vote for a new logo

2010-10-13 Thread mdipierro
really nice app by the way. thanks Martin On Oct 13, 4: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 maximum 250x70 > > M

[web2py] Re: Vote for a new logo

2010-10-13 Thread mdipierro
thanks Bruno. Scrap 9. We are moving away of the current logo because of a possible trademark issue. Not because we do not like it. Massimo On Oct 13, 4:17 pm, Bruno Rocha wrote: > Martin Mulone made the logovote application. > > I am hosting at my server > > You can post logo ideas, and vote f

[web2py] Re: Packaging web2py for Debian

2010-10-13 Thread mdipierro
the fact is... where is web2py going to reside? where are the apps going to be? What will be the permissions? Perhaps we should just provide a function like web2py deploy [where] web2py start [where] web2py stop [where] web2py upgrade [where] which some other options like --use apache --use light

[web2py] Managing permissions

2010-10-13 Thread Alexandre Andrade
The book says about auth_permission: auth_permission links groups and permissions. A permission is identified by a name and, optionally, a table and a record. For example, members of a certain group can have "update" permissions on a specific record of a specific table. But in 1.87.2, Its requir

[web2py] Re: Vote for a new logo

2010-10-13 Thread Martin.Mulone
Bruno you made the banner tricky!!! ;) On Oct 13, 6:42 pm, Bruno Rocha wrote: > Martin Mulone is the creator of the app! > > After uploading your ideas, dont forget to vote! > > or just vote for which one you think is better. > > 2010/10/13 Thadeus Burgess > > > > > > > That is awesome Buno! Kud

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

2010-10-13 Thread Thadeus Burgess
Could someone please make a number 9 with a font that does not squish the letters together? -- Thadeus On Wed, Oct 13, 2010 at 4:37 PM, Thadeus Burgess wrote: > That is awesome Buno! Kudos! > > -- > Thadeus > > > > > > On Wed, Oct 13, 2010 at 4:33 PM, Bruno Rocha wrote: > >> No need for posti

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

2010-10-13 Thread Bruno Rocha
Martin Mulone is the creator of the app! After uploading your ideas, dont forget to vote! or just vote for which one you think is better. 2010/10/13 Thadeus Burgess > That is awesome Buno! Kudos! > > -- > Thadeus > > > > > > On Wed, Oct 13, 2010 at 4:33 PM, Bruno Rocha wrote: > >> No need for

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

2010-10-13 Thread Thadeus Burgess
That is awesome Buno! Kudos! -- Thadeus On Wed, Oct 13, 2010 at 4:33 PM, Bruno Rocha wrote: > No need for posting background, just logo. > > Background will be added automatically. > > 2010/10/13 Bruno Rocha > > Martin Mulone made the logovote application. >> >> I am hosting at my server >>

[web2py] Re: Vote for a new logo

2010-10-13 Thread Bruno Rocha
No need for posting background, just logo. Background will be added automatically. 2010/10/13 Bruno Rocha > 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 o

[web2py] Re: Packaging web2py for Debian

2010-10-13 Thread Tim Michelsen
> I feel this will be a maintenance nightmare unless it somehow upgrades > itself. The release process of debian is very slow compared to ours. You can have automatic daily builds of a source tree import to your PPA: https://help.launchpad.net/Packaging/SourceBuilds/Recipes

[web2py] Re: web2py 1.87.2 is OUT

2010-10-13 Thread howesc
I can't comment fully on the routes changes, but the errors you are getting are errors in presenting you with the errors. the error_message that you used to have at the bottom of your routes.py: error_message = 'Invalid request' needs to be upgraded to have a %s in it somewhere, perhaps like: e

[web2py] Vote for a new logo

2010-10-13 Thread Bruno Rocha
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 maximum 250x70 Maximum of 10 uploads per user, Just one vote per user. Take a look: http://blouweb.com/logovote/

[web2py] Re: Packaging web2py for Debian

2010-10-13 Thread Richard
I remember talk about ability to upgrade through admin - is that practical? On Oct 14, 7:29 am, mdipierro wrote: > I feel this will be a maintenance nightmare unless it somehow upgrades > itself. The release process of debian is very slow compared to ours. > > On Oct 13, 3:12 pm, Michele Comitin

[web2py] Re: Facebook/Twitter/Google login + normal login

2010-10-13 Thread howesc
yes. in the code i posted facebook and google auto-attach to an existing account because as part of the login credentials those services provide the user's email address. for twitter, on tenthrow.com i added an option in the account profile section to add a twitter account when you are authentica

[web2py] Key error on GAE - expects numeric

2010-10-13 Thread Richard
I am getting the following error on Google App Engine: File "/base/data/home/apps/test/1.345469538660333403/gluon/contrib/ gql.py", line 752, in select new_item.append(int(item.key().id())) TypeError: int() argument must be a string or a number, not 'NoneType' Seems that web2py expects my ke

[web2py] Re: please help us test new web site

2010-10-13 Thread DJ
Dear Web2py Team, Love the new site. Very clean and elegant, with quick access to the relevant links. Couple of items I would like to mention - a) The Home, About, Download tabs do not look crisp (Win 7, viewed through Firefox and Chrome) b) The new logo looks great c) This is more from a marketi

[web2py] Re: Packaging web2py for Debian

2010-10-13 Thread mdipierro
I feel this will be a maintenance nightmare unless it somehow upgrades itself. The release process of debian is very slow compared to ours. On Oct 13, 3:12 pm, Michele Comitini wrote: > Hi José, > > The .deb is badly needed to spread web2py even more! > > Would that be useful for ubuntu also whic

Re: [web2py] Packaging web2py for Debian

2010-10-13 Thread Michele Comitini
Hi José, The .deb is badly needed to spread web2py even more! Would that be useful for ubuntu also which is probaly the most common linux distro? The packaging must also take into account that a machine could have different instances of web2py. It would be a good idea to have some tools in the .

[web2py] Re: Packaging web2py for Debian

2010-10-13 Thread José L .
On 13 oct, 21:00, mdipierro wrote: > web2py -f folder > > It should work but you may want to check. Perhaps we may need a patch. I'll try it, I guess some other files will be needed, but I'll report my progress. Anyway maybe you could add some code to web2py.py so if it doesn't find the glu

[web2py] Re: Packaging web2py for Debian

2010-10-13 Thread mdipierro
web2py -f folder It should work but you may want to check. Perhaps we may need a patch. Massimo On Oct 13, 1:55 pm, José L. wrote: > Hi, as it seems that time goes by, and no available packages for > Debian are ready, I'm going to begin to work on it seriously to upload > web2py to Debian. > I

[web2py] Re: SQLFORM input attributes

2010-10-13 Thread mdipierro
form=SQLFORM(Field('abc')) form.element(_name='abc')['_onkeyup']="." On Oct 13, 12:12 pm, cjung89 wrote: > Thanks, but are you sure that syntax is correct? > > I get: > > form.element(_name='abc')['_onkeyup'="ajax('bg_find', ['keyword'], > 'target')"] >                                     ^

[web2py] Packaging web2py for Debian

2010-10-13 Thread José L .
Hi, as it seems that time goes by, and no available packages for Debian are ready, I'm going to begin to work on it seriously to upload web2py to Debian. I know ( http://groups.google.com/group/web2py/browse_thread/thread/45ea4327d713bdd8/252d25418aeb42fd ) Mark told he was going to work on it, bu

[web2py] web2py 1.87.3 is OUT

2010-10-13 Thread mdipierro
It includes an important bug fix for a bug introduced in 1.87.2: The bug: If you created a new app in 1.87.2, then you would not be able to use appadmin for that app. The fix: - Install (i.e. unzip over old version) 1.87.3 - copy applications/welcome/controllers/appadmin.py over applications/ you

[web2py] Re: SQLFORM input attributes

2010-10-13 Thread cjung89
Thanks, but are you sure that syntax is correct? I get: form.element(_name='abc')['_onkeyup'="ajax('bg_find', ['keyword'], 'target')"] ^ SyntaxError: invalid syntax at the second '=' On Oct 12, 10:30 pm, mdipierro wrote: > yes > > form=SQLFORM(Field('abc'))

[web2py] Re: please help us test new web site

2010-10-13 Thread mdipierro
yes. wow. On Oct 13, 1:43 pm, Bruno Rocha wrote: > I am trying a search box look:http://www.blouweb.com/examples/default/index, > it is based on yahoo, ans searches everything under web2py.com > > 2010/10/13 Jonathan Lundell > > > I'll throw one into the mix. > > >http://web.me.com/jlundell/file

Re: [web2py] Re: please help us test new web site

2010-10-13 Thread Bruno Rocha
With the search I've found things i never heard about -> http://www.web2py.com/p3d/default/isosurface 2010/10/13 Bruno Rocha > I am trying a search box look: > http://www.blouweb.com/examples/default/index, it is based on yahoo, ans > searches everything under web2py.com > > 2010/10/13 Jonathan

Re: [web2py] Re: pyforum security and future

2010-10-13 Thread Julius Minka
thank you both for clarification julius V Streda, 13. október 2010 o 11:48 -0700, mdipierro napísal(a): > I have seen previous "security reports" from them about PyForum. Those > that I have checked were bogus. > > Massimo > > On Oct 13, 11:55 am, Julio Schwarzbeck wrote: > > Hi this is Julio,

[web2py] Re: web2py 1.87.2 is OUT

2010-10-13 Thread mdipierro
That is not a design decision. That is more of an accident of how it was coded and may change. On Oct 13, 11:07 am, Fabio Alessandro Locati wrote: > I see... And that's true :) thanks :). Another question: why did you > used external files instead of strings? For a division between content > and

[web2py] Re: pyforum security and future

2010-10-13 Thread mdipierro
I have seen previous "security reports" from them about PyForum. Those that I have checked were bogus. Massimo On Oct 13, 11:55 am, Julio Schwarzbeck wrote: > Hi this is Julio, pyforum author.  I just wanted to clarify a few > things here. > > On Dec 9, 2009, I was contacted by this > "Nam Nguye

[web2py] Re: make two queries into one [need help]

2010-10-13 Thread mdipierro
I think you want this: product= db.product(this_page) userstuff=db(db.user_extended.userinfo==product.userinfo).select() But I am not sure. Can you explain us more? On Oct 13, 11:13 am, Andrew Evans wrote: > How can I make these two queries into one cause when I use them in my view > (htmll) i

[web2py] Auth forms and formstyle

2010-10-13 Thread Christian Foster Howes
Massimo, it seems the reset_password and change_password forms are not adhearing to the formstyle setting. can you review and apply the attached patch if appropriate? thanks, christian diff -r ee8db10779ad gluon/tools.py --- a/gluon/tools.pyWed Oct 13 09:51:52 2010 -0500 +++ b/gluon/too

Re: [web2py] Re: please help us test new web site

2010-10-13 Thread Bruno Rocha
I am trying a search box look: http://www.blouweb.com/examples/default/index, it is based on yahoo, ans searches everything under web2py.com 2010/10/13 Jonathan Lundell > I'll throw one into the mix. > > http://web.me.com/jlundell/filechute/web2py-jkl-1.png > > -- http://rochacbruno.com.br

Re: [web2py] web2py 1.87.2 is OUT

2010-10-13 Thread Andrew Thompson
I'm having a problem with a couple of routes I've been using for a month or two: routes_out = ( ('^/(aktzero|app|tobarja)/default/index', '/'), ('^/(aktzero|app|tobarja)/$c/index', '/$c/'), ('^/(aktzero|app|tobarja)/$anything', '/$anything'), ) The first one seems fine. The second one g

[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? > > Without oauth I can see in

Re: [web2py] Re: please help us test new web site

2010-10-13 Thread Jonathan Lundell
I'll throw one into the mix. http://web.me.com/jlundell/filechute/web2py-jkl-1.png <>

[web2py] Re: pyforum security and future

2010-10-13 Thread Julio Schwarzbeck
Hi this is Julio, pyforum author. I just wanted to clarify a few things here. On Dec 9, 2009, I was contacted by this "Nam Nguyen" from bluemoon.com.vn (Viet Nam) domain. This gentleman stated that he had "discovered" several XSS vulnerabilities in pyforum, and in orderto "disclose" them

[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] make two queries into one [need help]

2010-10-13 Thread Andrew Evans
How can I make these two queries into one cause when I use them in my view (htmll) it doesn't work as expected product=db(db.product.id == this_page).select(db.product.ALL) userstuff=db(db.user_extended.userinfo == db.product.userinfo).select(db.user_extended.ALL) this is what I am doing {{fo

Re: [web2py] web2py 1.87.2 is OUT

2010-10-13 Thread Fabio Alessandro Locati
I see... And that's true :) thanks :). Another question: why did you used external files instead of strings? For a division between content and format? Thanks in advice :) 2010/10/13, mdipierro : > The fact is you have to use T anyway because not everything is in > markmin. why by-pass it? > > On

Re: [web2py] Re: showing computed field

2010-10-13 Thread Richard Vézina
Hello, Does not appear with : ref_eregistry.report_title.readable=True form=SQLFORM(ref_eregistry,1,readonly=True) Richard On Wed, Oct 13, 2010 at 11:45 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Don't work... > > I update to 1.87.2 just to be sure. Still not working. > > Rich

Re: [web2py] Re: showing computed field

2010-10-13 Thread Richard Vézina
Don't work... I update to 1.87.2 just to be sure. Still not working. Richard On Fri, Oct 8, 2010 at 6:45 PM, Richard Vézina wrote: > I try, I was really confuse it didn't work. > > I will try again next week. > > It is under w2p 1.83.2 > > Richard > > On Fri, Oct 8, 2010 at 4:55 PM, mdipierro

Re: [web2py] Re: please help us test new web site

2010-10-13 Thread Thadeus Burgess
This: http://web2py.googlegroups.com/attach/c0cff2eb36f8bc99/top_tom.png?gda=ncp0fEYAAAB9SGvuY0G8kMBOAHaCkszGUG-9s86A8yQkdbdpo_zDdCIi-oe91wIf3_pqKxOm7B9x40jamwa1UURqDcgHarKEE-Ea7GxYMt0t6nY0uV5FIQ&view=1&part=4 -- Thadeus On Wed, Oct 13, 2010 at 8:40 AM, Anthony wrote: > > The font on the cur

[web2py] Re: web2py 1.87.2 is OUT

2010-10-13 Thread mdipierro
The fact is you have to use T anyway because not everything is in markmin. why by-pass it? On Oct 13, 10:37 am, Fabio Alessandro Locati wrote: > So you would not use to create different folders for each lang, isn't it? > Does the approach you are saying has more advantages? > > 2010/10/13 mdipier

[web2py] Re: Powered by web2py

2010-10-13 Thread mdipierro
The app exists: http://www.web2py.com/poweredby but it should be made better... On Oct 13, 8:59 am, Anthony wrote: > Good idea. Note, the thumbnails should be automatically updated > periodically -- on appliedstacks.com, some of the thumbnails are way > out of date, and there's no way to update

Re: [web2py] Re: web2py 1.87.2 is OUT

2010-10-13 Thread Fabio Alessandro Locati
So you would not use to create different folders for each lang, isn't it? Does the approach you are saying has more advantages? 2010/10/13 mdipierro > {{=MARKMIN(str(T(content_in_english_markmin)))}} > > and than you edit the content using the translation interface. > > On Oct 13, 9:48 am, Fabio

[web2py] Re: web2py 1.87.2 is OUT

2010-10-13 Thread mdipierro
{{=MARKMIN(str(T(content_in_english_markmin)))}} and than you edit the content using the translation interface. On Oct 13, 9:48 am, Fabio Alessandro Locati wrote: > thans :) > I've seen the new design and I'm wondering about how to implement a > multi-lang webste with markmin. I can't find any d

Re: [web2py] web2py 1.87.2 is OUT

2010-10-13 Thread Fabio Alessandro Locati
thans :) I've seen the new design and I'm wondering about how to implement a multi-lang webste with markmin. I can't find any doc :( Will it be published soon? 2010/10/12 mdipierro > It includes: > > - new design > - various bug fixes > - admin has an option in models/0.py that allow it to run i

Re: [web2py] Re: Offline apps

2010-10-13 Thread Fabio Alessandro Locati
thanks for the possible solutions :) I'll try and I'll let you know :) 2010/10/12 howesc > not a great solution, but you can use the google app engine bulkloader > to dump a GAE (development or production) database and replace > another. see details here: > http://code.google.com/appengine/docs

[web2py] Re: Validators allow empty

2010-10-13 Thread Joe J
Thanks DenesL, I'll give that a try. Thanks for the advice. On Oct 13, 4:53 am, DenesL wrote: > Hi Joe, > > use IS_EMPTY_OR as in > > IS_EMPTY_OR(IS_EMAIL(error_message=T('Invalid email address.'))) > > Denes > > On Oct 13, 3:55 am, Joe J wrote: > > > > > This is probably an easy question, but

Re: [web2py] Re: need help on join with aliased tables

2010-10-13 Thread Audra Rudys
THAT WORKED!! THANK YOU!! (I'm sorry I missed that one in the earlier post... the type of the error changed, so I thought it was elsewhere. Some of the tickets are more helpful for debugging than others.) On Wed, Oct 13, 2010 at 9:02 AM, mdipierro wrote: > Your view should be": > > def view():

[web2py] Re: DEMO_MODE

2010-10-13 Thread robsan
Just seen the other thread... waiting for new version ;) On Oct 13, 3:07 pm, robsan wrote: > Hi, > > Testing db administration on 1.87.2 (windows), I got the error below: > > "NameError: name 'DEMO_MODE' is not defined" > > In regards to appadmin.py: > > "if DEMO_MODE: > >     response.flash = T(

[web2py] Re: 'DEMO_MODE' is not defined

2010-10-13 Thread mdipierro
this is a major bug introduced in 1.87.2. Will post 1.87.3 today. On Oct 13, 6:21 am, Omri wrote: > I came here to report this bug as well. > I did a workaround - it comes from the beginning of the appadmin.py > file. > For the meantime I put the if DEMO_MODE: inside a try..except block. > I'm no

[web2py] DEMO_MODE

2010-10-13 Thread robsan
Hi, Testing db administration on 1.87.2 (windows), I got the error below: "NameError: name 'DEMO_MODE' is not defined" In regards to appadmin.py: "if DEMO_MODE: response.flash = T('disabled in demo mode') redirect(URL('default','site'))" Which is solved by defining it, but never came

[web2py] Re: SQLFORM fix

2010-10-13 Thread mdipierro
thanks. in trunk in minutes... On Oct 13, 12:53 am, Alexey Nezhdanov wrote: > Hi. > I managed to crash SQLFORM(db.table).accepts(request.vars,session) call > by adding a 'delete_this_record=on' to the list of request variables. > > Proposed fix: > > --- sqlhtml.bak.py      2010-10-13 09:52:01.202

[web2py] Re: need help on join with aliased tables

2010-10-13 Thread mdipierro
Your view should be": def view(): tcolor=db.color.with_alias('tcolor') ccolor=db.color.with_alias('ccolor') accessible_works=db().select(db.work.ALL, tcolor.html_code, ccolor.html_code, left=[tcolor.on(tcolor.id==db.work.title_color), ccolor.on(ccolor.id==db.work.cover_c

[web2py] Re: Powered by web2py

2010-10-13 Thread Anthony
Good idea. Note, the thumbnails should be automatically updated periodically -- on appliedstacks.com, some of the thumbnails are way out of date, and there's no way to update them. On Oct 13, 9:13 am, Bruno Rocha wrote: > A modified version of Redishhttp://web2py.appspot.com/should work for > tha

Re: [web2py] Re: please help us test new web site

2010-10-13 Thread Bruno Rocha
Some volunteer to work for that? All we have to do is taking examples app, creating an upload form(needs to work on GAE), changing the logo depending on response.vars.logo I have no time today, if someone who knows how to work with upload on GAE could do that app. 2010/10/13 Anthony > As sugge

[web2py] Admin page - Installed applications - design

2010-10-13 Thread Victor Varvariuc
All the time i use web2py's admin page for installed applications, i find very unergonomical. I am not a designer, but that's what i came up with: http://img403.imageshack.us/img403/6774/cssy.png You can see on the right the current design, and on the left - suggested by me. The css styles i used:

[web2py] Re: please help us test new web site

2010-10-13 Thread Anthony
As suggested earlier, it would really be helpful to do something like this: http://web2pylogocontest.appspot.com/examples/index?logo=1 so we could see each logo in the context of the full site and "live" with it for a bit. For example, [1] is not a bad logo, but I'm not sure it will fit in as wel

[web2py] Re: please help us test new web site

2010-10-13 Thread Anthony
> The font on the currently selected logo looks > odd. It just doesn't feel like the right thing for web2py. I think the > roundedness of the font makes it seem more childish in a sense. When you say "the currently selected logo", are you referring to the one currently on web2py.com (which does no

[web2py] Re: please help us test new web site

2010-10-13 Thread Anthony
Note, the boxinfo (now changed to blockquote) fonts are only a problem in IE -- they look fine in Firefox and Chrome -- not sure what IE is doing differently. On Oct 13, 5:38 am, ra3don wrote: > "* At least in my browser, the fonts used in the boxinfo class appear > a > bit unclear (i.e., jagged/

  1   2   >