[web2py:32537] Re: SQLFORM

2009-10-08 Thread Iceberg
The "crazy" need not be that crazy. I normally do: db.Field('myfield','string', widget=lambda field,value,**kwargs: StringWidget.widget(field,value,_size=40,**kwargs) so that the output field has a size=40 setting. css should also work. Just make sure your definition appear in right

[web2py:32536] Re: SQLFORM

2009-10-08 Thread leone
does't work the #mytable_myfield solution, and I can't understand why! (no web2py_ajax.html in code) On 9 Ott, 07:15, "mr.freeze" wrote: > Try using the class: > > input.string { >     width: 450px; > > } > > or if you don't want to affect all input.string: > > #mytable_myfield{ >     width: 450

[web2py:32535] Re: newbie: returning Controller variable to View

2009-10-08 Thread ed
Hi Massimo, Okay, redirect returns page but without any variable. Any hint how to render a page name "loggedin" that says; "Hi Ed, welcome!" after a succesful login using the code i created?. Sorry, i'm a newbie with very limited web2py knowledge and stucked on this. Thank you in advance Massimo.

[web2py:32534] Re: SQLFORM

2009-10-08 Thread mr.freeze
Try using the class: input.string { width: 450px; } or if you don't want to affect all input.string: #mytable_myfield{ width: 450px; } or go crazy... db.define_table('mytable',Field('myfield','string')) db.mytable.myfield.widget = lambda f,v: INPUT(_type="text", _value=v, _class="craz

[web2py:32533] Re: SQLFORM

2009-10-08 Thread Thadeus Burgess
i would assume yes, but I'm not 100% sure. Also, you have to disable web2py_ajax.html for your css to work propery. web2py_ajax uses javascript to go through every input and change its width property, effectively overwriting your css definitions. (and not working if they have javascript disabled)

[web2py:32532] Re: SQLFORM

2009-10-08 Thread leone
I know, but no effect. Strange. Do you know if SQLFORM's argument onvalidation is executed before inserting row? On 8 Ott, 22:51, Thadeus Burgess wrote: > leone, > > To change the size in css you have to use the width property, there is no > "size" property in css. > > input #table_field { >    

[web2py:32531] Re: lots of stuff in trunk.

2009-10-08 Thread mr.freeze
The plot thickens. It looks like reference fields are stored as type long internally and hit a repr at line 449 of sql.py in sql_represent function. That is where it is converting 8 to 8L. I think line 448: if fieldtype.find('.'):

[web2py:32530] Re: newbie: returning Controller variable to View

2009-10-08 Thread mdipierro
mind that redirect is a function that raises an HTTP exception which causes the server to send and HTTP 303 response. redirect never returns and your view is never rendered. Massimo On Oct 8, 9:22 pm, ed wrote: > The display went well because i filled a session with a constant "Ed" > and not a

[web2py:32529] Re: newbie: returning Controller variable to View

2009-10-08 Thread ed
The display went well because i filled a session with a constant "Ed" and not a result of a db().select(). So, the constant variable was displayed without a hitch. When i used db().select() the display went like: [{'first_name': 'Ed'}] The above display is the result of the following code: Control

[web2py:32528] how to determine whether file was uploaded

2009-10-08 Thread Richard
hello, on page 198 of the manual there is an example to set the filename of the uploaded file. It uses "if request.vars.image", but I found that this statement is never True, with or without an uploaded file. Using "if 'image' in request.vars" is also no good because it will still be True when n

[web2py:32527] Re: web2py wiki

2009-10-08 Thread Richard
> I really don't know much about GAE. > Can you help in this issue? yeah sure, I'll have a look. On Oct 9, 7:28 am, Álvaro Justen [Turicas] wrote: > On Thu, Oct 8, 2009 at 09:27, Richard wrote: > > > It's great when people from the community take ownership of useful > > applications like this

[web2py:32526] Re: lots of stuff in trunk.

2009-10-08 Thread DenesL
ATTENTION only support for MS SQL legacy tables is included. I have also tested DB2, so it should be in soon. If you want to add support for other DBs then you have to modify SQL_DIALECTS (around line 133 in sql.py) for your particular DB. I don't have all the different DBs installed, so your he

[web2py:32525] Re: Why does this NOT pass validation? (bug?)

2009-10-08 Thread Thadeus Burgess
yes. -Thadeus On Thu, Oct 8, 2009 at 4:55 PM, mdipierro wrote: > > Do you have multiple=True > > On Oct 8, 1:08 pm, Thadeus Burgess wrote: > > Massimo, I removed the None option, however it seems when nothing is > > selected, it does not pass validation!? > > > > -Thadeus > > > > On Wed, Oc

[web2py:32524] Re: web2py wiki

2009-10-08 Thread mdipierro
If the wiki does not use joins it should work on GAE. I do not recall but if there are joins I am sure they can be removed. Massimo On Oct 8, 3:28 pm, Álvaro Justen [Turicas] wrote: > On Thu, Oct 8, 2009 at 09:27, Richard wrote: > > > It's great when people from the community take ownership of

[web2py:32523] Re: How to avoid this error with MySQL in WebFaction?

2009-10-08 Thread mdipierro
Perhaps they have a small number of max connections? This should not be a problem. On Oct 8, 3:22 pm, Julio wrote: > In your DB declaration (model) are you opening more than one > concurrent connection? - I've seen that happen before (not on > webfaction, but my own boxes), try removing the "poo

[web2py:32522] Re: Why does this NOT pass validation? (bug?)

2009-10-08 Thread mdipierro
Do you have multiple=True On Oct 8, 1:08 pm, Thadeus Burgess wrote: > Massimo, I removed the None option, however it seems when nothing is > selected, it does not pass validation!? > > -Thadeus > > On Wed, Oct 7, 2009 at 4:30 PM, Thadeus Burgess wrote: > > > Awesome, thanks a bunch! > > > -Thade

[web2py:32521] Re: SQLFORM

2009-10-08 Thread Thadeus Burgess
leone, To change the size in css you have to use the width property, there is no "size" property in css. input #table_field { width: 350px; } -Thadeus On Thu, Oct 8, 2009 at 3:07 PM, leone wrote: > > Second question solved. > About input length css has no effect. > SQLFORM(onvalidation

[web2py:32520] Re: web2py wiki

2009-10-08 Thread Álvaro Justen [Turicas]
On Thu, Oct 8, 2009 at 09:27, Richard wrote: > > It's great when people from the community take ownership of useful > applications like this! > > > Is the wiki able to run on the GAE? I really don't know much about GAE. Can you help in this issue? > I noticed a few links that could perhaps be m

[web2py:32519] Re: How to avoid this error with MySQL in WebFaction?

2009-10-08 Thread Julio
In your DB declaration (model) are you opening more than one concurrent connection? - I've seen that happen before (not on webfaction, but my own boxes), try removing the "pool_size" option in the model if you have it set.. On Oct 8, 11:33 am, drayco wrote: > Hi, I don't want this error happen.

[web2py:32518] Re: SQLFORM

2009-10-08 Thread leone
Second question solved. About input length css has no effect. SQLFORM(onvalidation is executed before or after inserting row? On 8 Ott, 17:23, Thadeus Burgess wrote: > massimo, > > On my machine locally, web2py_ajax.html seems to overwrite any length > settings put into css.. > > The jQuery comm

[web2py:32517] geo-capabilities for DAL

2009-10-08 Thread Tim Michelsen
Hi Massimo, there is an interesting project for SQLAlchemy: GeoAlchemy: Using SQLAlchemy with Spatial Databases http://geoalchemy.org/ Do you think something like this is possible with the DAL you are writing? Best, Timmie --~--~-~--~~~---~--~~ You received thi

[web2py:32516] Re: submenus and IE

2009-10-08 Thread Álvaro Justen [Turicas]
On Thu, Oct 8, 2009 at 15:22, drayco wrote: > > With two machines with Windos Vista and IE6 It didn't work. http://iedeathmarch.org/ -- Álvaro Justen Peta5 - Telecomunicações e Software Livre 21 3021-6001 / 9898-0141 http://www.peta5.com.br/ --~--~-~--~~~---~--

[web2py:32515] How to avoid this error with MySQL in WebFaction?

2009-10-08 Thread drayco
Hi, I don't want this error happen. Please, Can you teach me how to avoid this error with MySQL in WebFaction? Traceback (most recent call last): File "/home/user/webapps/app/web2py/gluon/restricted.py", line 178, in restricted exec ccode in environment File "/home/user/webapps/app/web2py

[web2py:32514] Re: submenus and IE

2009-10-08 Thread drayco
With two machines with Windos Vista and IE6 It didn't work. On Oct 6, 10:31 pm, mdipierro wrote: > Has anybody tried submenus and IE. Do they work? I assumed they did > not I tried once and it did not work for me. > > Massimo --~--~-~--~~~---~--~~ You received thi

[web2py:32513] Re: Why does this NOT pass validation? (bug?)

2009-10-08 Thread Thadeus Burgess
I am using checkboxes widget. -Thadeus On Thu, Oct 8, 2009 at 1:08 PM, Thadeus Burgess wrote: > Massimo, I removed the None option, however it seems when nothing is > selected, it does not pass validation!? > > -Thadeus > > > > > > On Wed, Oct 7, 2009 at 4:30 PM, Thadeus Burgess wrote: > >> A

[web2py:32512] Re: Why does this NOT pass validation? (bug?)

2009-10-08 Thread Thadeus Burgess
Massimo, I removed the None option, however it seems when nothing is selected, it does not pass validation!? -Thadeus On Wed, Oct 7, 2009 at 4:30 PM, Thadeus Burgess wrote: > Awesome, thanks a bunch! > > -Thadeus > > > > > On Wed, Oct 7, 2009 at 3:42 PM, mdipierro wrote: > >> tore integers.

[web2py:32511] Re: access another Auth user details

2009-10-08 Thread Yarko Tymciurak
yes - it's all pretty straight forward. On Thu, Oct 8, 2009 at 1:02 PM, Carl wrote: > > Thanks! Nice and straightforward. > > On Thursday, October 8, 2009, mdipierro wrote: > > > > rows=db(db.auth_user.id>0).select(db.auth_user.email) > Realize that the expression in the db() portion is like t

[web2py:32510] Re: access another Auth user details

2009-10-08 Thread Carl
Thanks! Nice and straightforward. On Thursday, October 8, 2009, mdipierro wrote: > > rows=db(db.auth_user.id>0).select(db.auth_user.email) > > On Oct 8, 12:24 pm, Carl wrote: >> hi, >> >> I've got a user id which I'd like to use to look-up that user's email >> address. >> I'm using Auth to crea

[web2py:32509] Re: Shorten strings...

2009-10-08 Thread Julio
class ShortStr(str): """Small class to extend str functionality to add several (?) custom methods """ def __init__(self, value): self.value = value def shorten(self, length=20, etc=' ..'): """ Shortens the string to length 'length' and adds 'etc' to the en

[web2py:32508] Re: access another Auth user details

2009-10-08 Thread mdipierro
rows=db(db.auth_user.id>0).select(db.auth_user.email) On Oct 8, 12:24 pm, Carl wrote: > hi, > > I've got a user id which I'd like to use to look-up that user's email > address. > I'm using Auth to create all user accounts. > > I need to present a set of user email's to the currently logged in >

[web2py:32507] access another Auth user details

2009-10-08 Thread Carl
hi, I've got a user id which I'd like to use to look-up that user's email address. I'm using Auth to create all user accounts. I need to present a set of user email's to the currently logged in user. thanks --~--~-~--~~~---~--~~ You received this message because

[web2py:32506] Re: problem with crud custom forms

2009-10-08 Thread Peter Woolf
That works! Thanks! --Peter On Oct 8, 12:17 pm, Thadeus Burgess wrote: > You can set those in your controller dynamically. > > for example > > def admin_edit(): >       db.tablename.fieldname.writable = True >       db.tablename.fieldname.readable = True > >       return dict(form=crud(db.table

[web2py:32505] Re: errors trying to upload picture

2009-10-08 Thread Yarko Tymciurak
On Thu, Oct 8, 2009 at 11:04 AM, Youngblood wrote: > > I figured the problem out, it was missing the upload folder. I didnt > copy that folder and the database over because the data on my computer > was test data and i didnt want to over write the real data on the > server. once i created the uplo

[web2py:32504] Re: form.custom.errors.field

2009-10-08 Thread Thadeus Burgess
I think display_errors is an appropriate name. Yes, I keep forgetting about the backwards compatibility thing :P With this, could the form.custom.errors be added as well without breaking anything? -Thadeus On Thu, Oct 8, 2009 at 11:24 AM, mdipierro wrote: > > Changing the default to False

[web2py:32503] Re: form.custom.errors.field

2009-10-08 Thread mdipierro
Changing the default to False (even only or custom forms) would break backward compatibility. We cannot do that. If no objections I will add the display_errors but I will take suggestions for a better name. Massimo On Oct 8, 11:09 am, Thadeus Burgess wrote: > >we just need to talk about this mo

[web2py:32502] Re: problem with crud custom forms

2009-10-08 Thread Thadeus Burgess
You can set those in your controller dynamically. for example def admin_edit(): db.tablename.fieldname.writable = True db.tablename.fieldname.readable = True return dict(form=crud(db.tablename)) def normal_edit(): db.tablename.fieldname.writable = False db.tablenam

[web2py:32501] Re: form.custom.errors.field

2009-10-08 Thread Thadeus Burgess
>we just need to talk about this more and get more opinions. I can be >convinced. The code you proposed does not show errors by default any >more. >That is a break of backward compatibility. Yes, that is why I was requesting help from web2py gurus :P I like the idea for form.display_errors = Fal

[web2py:32500] Re: errors trying to upload picture

2009-10-08 Thread Youngblood
I figured the problem out, it was missing the upload folder. I didnt copy that folder and the database over because the data on my computer was test data and i didnt want to over write the real data on the server. once i created the upload folder it works fine. Would it be a good idea to have web2

[web2py:32499] Re: controller "images"

2009-10-08 Thread mdipierro
I never had to do this. All the JS libraries I ever used use relative references since they do now know in which folder they are installed. I do not understand. On Oct 8, 10:42 am, Álvaro Justen [Turicas] wrote: > On Thu, Oct 8, 2009 at 07:30, sebastian wrote: > > > Hi All, > > > I am using a J

[web2py:32498] Re: problem with crud custom forms

2009-10-08 Thread Peter Woolf
This could work, but this solution is more permanent than I want. I'd like to make it so that I could dynamically select the fields I want to edit. I know I can do it with SQLform but without all of the nice features that crud provides. Other thoughts? thanks! --Peter On Oct 8, 11:30 am, Thade

[web2py:32497] Re: errors trying to upload picture

2009-10-08 Thread mdipierro
can you try from a windows shell C:\\Inetpub\\wwwroot\\web2py\\applications\\init/databases\\..\\uploads \\ C:\\Inetpub\\wwwroot\\web2py\\applications\\init\\uploads\\ does any of them work? On Oct 8, 9:35 am, Youngblood wrote: > I am getting the following error and i can't figure out why: >

[web2py:32496] Re: controller "images"

2009-10-08 Thread Álvaro Justen [Turicas]
On Thu, Oct 8, 2009 at 07:30, sebastian wrote: > > Hi All, > > I am using a JS library (http://jquery.com/demo/thickbox/) which refer > to   "images/something.jpg". That works perfectly on static HTML but > web2py translates it as "http://blabla/init/default/images/ > something.jpg". > > as work

[web2py:32495] Re: Circular table reference

2009-10-08 Thread mdipierro
I have to admit I read Markus too fast and I missed that point. On Oct 8, 9:33 am, Yarko Tymciurak wrote: > On Thu, Oct 8, 2009 at 9:06 AM, mdipierro wrote: > > > On a second thought why is this not supported? > > > Because I am not convinced this is a good idea. > > > If every record of ta

[web2py:32494] Re: problem with crud custom forms

2009-10-08 Thread Thadeus Burgess
Try setting the fields that you do not want edited with their writable=False. Then using the basic {{=form}} syntax. db.tablename.fieldname.writable = False db.tablename.fieldname.readable = False -Thadeus On Thu, Oct 8, 2009 at 10:21 AM, Peter Woolf wrote: > Hello,I'm very pleased with how

[web2py:32493] Re: SQLFORM

2009-10-08 Thread Thadeus Burgess
massimo, On my machine locally, web2py_ajax.html seems to overwrite any length settings put into css.. The jQuery commands that change the length need to be either commented out or removed. -Thadeus On Thu, Oct 8, 2009 at 8:07 AM, mdipierro wrote: > > You should set it using css. For a tab

[web2py:32492] Re: Shorten strings...

2009-10-08 Thread Thadeus Burgess
If you are wanting to split the text in python, just use splices! MAX_LENGTH = 252 mystr = """ this is actually a very very long text blob about why this guy on his blog thinks that IE is evil, though it has no real content and is really just a waiste of time reading! """ You can go short

[web2py:32490] Re: errors trying to upload picture

2009-10-08 Thread Youngblood
maybe, but if that is the problem where is it coming from. in the sqlform that is generated, i just click browse to select picture, so i'm not putting any of the path in there. another point i meant to mention, my laptop is running Vista Home Premium 64bit, the server is running Windows Server 20

[web2py:32489] Re: errors trying to upload picture

2009-10-08 Thread Yarko Tymciurak
just to point out: On Thu, Oct 8, 2009 at 9:35 AM, Youngblood wrote: > > I am getting the following error and i can't figure out why: > > Traceback (most recent call last): > File "gluon/restricted.py", line 178, in restricted > File "C:/Inetpub/wwwroot/web2py/applications/init/controllers/ > i

[web2py:32488] errors trying to upload picture

2009-10-08 Thread Youngblood
I am getting the following error and i can't figure out why: Traceback (most recent call last): File "gluon/restricted.py", line 178, in restricted File "C:/Inetpub/wwwroot/web2py/applications/init/controllers/ inventory.py", line 344, in File "gluon/globals.py", line 102, in File "C:/I

[web2py:32487] Re: Circular table reference

2009-10-08 Thread Yarko Tymciurak
On Thu, Oct 8, 2009 at 9:06 AM, mdipierro wrote: > > On a second thought why is this not supported? > > Because I am not convinced this is a good idea. > > If every record of table A only references one record of table B and > vice versa then perhaps there should be only one table AB. > > If

[web2py:32486] Re: Circular table reference

2009-10-08 Thread Yarko Tymciurak
On Thu, Oct 8, 2009 at 3:59 AM, Markus Schmitz wrote: > > Hi everybody, > > . > looks something like this: > > db.define_table('ports', >Field('name','string'), >Field('port_agent_id','references port_agents') # this references > ahead and does not work > You have a typo here - this

[web2py:32485] Re: lots of stuff in trunk.

2009-10-08 Thread mr.freeze
Python 2.5. I will email the application to you since the controller and model are fairly large. On Oct 8, 12:45 am, mdipierro wrote: > and which python version. > > usually>>> a=8L > >>> print str(a) > 8 > >>> print repr(a) > > 8L > > but there is no repr in DAL anymore. > strange > > On Oct 7

[web2py:32484] Re: Circular table reference

2009-10-08 Thread mdipierro
On a second thought why is this not supported? Because I am not convinced this is a good idea. If every record of table A only references one record of table B and vice versa then perhaps there should be only one table AB. If this is a one (A) to many (B) relation then A cannot contain a re

[web2py:32483] RoR vs Django

2009-10-08 Thread Alex Fanjul
The Spanish Mirror of Slashdot, discuss about RoR vs Django... http://preguntas.barrapunto.com/article.pl?sid=09/10/05/1211242 translated: http://translate.google.com/translate?prev=hp&hl=es&js=y&u=http%3A%2F%2Fpreguntas.barrapunto.com%2Farticle.pl%3Fsid%3D09%2F10%2F05%2F1211242&sl=es&tl=en&hist

[web2py:32482] Re: Mac Theme

2009-10-08 Thread Alex Fanjul
Thanks Richard, I'll improve it, when I have more time . Alex F El 08/10/2009 14:34, Richard escribió: > nice - I prefer it to the default theme. > > > On Oct 8, 9:50 am, Alex Fanjul wrote: > >> Yes of course. >> Here it is. >> >> Alex F >> >> El 07/10/2009 20:50, mdipierro escribió: >> >> >

[web2py:32481] Re: controller "images"

2009-10-08 Thread Sebastian E. Ovide
it is located in static (same directory of jquery) On Thu, Oct 8, 2009 at 1:57 PM, mdipierro wrote: > > Something is wrong somewhere. Where is the Js library located? Is it > in static? > > On Oct 8, 5:30 am, sebastian wrote: > > Hi All, > > > > I am using a JS library (http://jquery.com/demo/t

[web2py:32480] Re: Proposal for plugin system in web2py - RFC

2009-10-08 Thread mdipierro
sorry, please try again. On Oct 8, 7:23 am, Alex Fanjul wrote: > With {{=LOAD('plugin_hello',ajax=True)}}   it throws this ticket: > > Traceback(most recent call last): >     > File"E:\Downloads\Programacion\Python\web2py\devel\gluon\restricted.py",line178,inrestricted >      execccodeinenviron

[web2py:32479] Re: Input validation

2009-10-08 Thread Sophie
Where is this function so i can modify it. On 4 oct, 20:06, Iceberg wrote: > The IS_UPPER() is based on python's upper(). In python document it > said, > >   Return a copy of the string converted to uppercase. >   For 8-bit strings, this method is locale-dependent. > > So if your locale doesn't

[web2py:32478] Re: Circular table reference

2009-10-08 Thread mdipierro
Thank you Markus, technically they are not allowed but you can do with a trick db.define_table('ports', Field('name','string'), Field('port_agent_id','integer') ) db.define_table('port_agents', field('name','string', Field('port_id', db.ports), ) db.ports.port_agent_id

[web2py:32477] Re: SQLFORM

2009-10-08 Thread mdipierro
You should set it using css. For a table "table" and a field "field" the id of the input field is "#table_field" you should be able to do something like this in the page input #table_field { size: 5 } On Oct 8, 8:01 am, leone wrote: > Two questions: > 1) how can I set the length of an html

[web2py:32476] Circular table reference

2009-10-08 Thread Markus Schmitz
Hi everybody, After evaluating quite a number of web frameworks, I ended up with web2py and frankly I am more than impressed. It rocks in many ways (could talk about it for some time really) and fits very close to my internal requirements. But I am a newbee and I am running into newbee problems:

[web2py:32475] Re: html pages without function associated

2009-10-08 Thread mdipierro
I do not know if it a good idea but you can create a controller called, for example "any" and in it def index(): response.view='any/%s.html' % request.args(0) return dict() and then in routes.py: routes_in=('/yourapp/any/(?P.*)','/yourapp/any/index/\g'),) routes_out=('/yourapp/any/in

[web2py:32474] SQLFORM

2009-10-08 Thread leone
Two questions: 1) how can I set the length of an html input field generated by SQLFORM? They have all the same size. 2) It needs same commit() using SQLite? My submits seem to generate no rows. Thanks in advance. --~--~-~--~~~---~--~~ You received this message beca

[web2py:32472] Re: controller "images"

2009-10-08 Thread mdipierro
Something is wrong somewhere. Where is the Js library located? Is it in static? On Oct 8, 5:30 am, sebastian wrote: > Hi All, > > I am using a JS library (http://jquery.com/demo/thickbox/) which refer > to   "images/something.jpg". That works perfectly on static HTML but > web2py translates it a

[web2py:32473] Re: Shorten strings...

2009-10-08 Thread Boris Manojlovic
this functionality can be twofold 1. "simple" css hack that will cover fix it instantly :) http://www.css3.com/css-text-overflow/ 2. "hard" way would be count words and if too long (or too many chars) split at last space in "too much" from right side (oposite side search) http://www.wdvl

[web2py:32471] Re: sqlform using already existing tables...

2009-10-08 Thread mdipierro
db.define_table(,migrate=False) the table must have the declared field AND and field called 'id' autoincrement primary key. On Oct 8, 1:16 am, Arvind wrote: > Hello, > > I have already defined tables in a database. > I need to generate forms using sql form > in my code > > db = DAL('sqlite:

[web2py:32470] Re: Mac Theme

2009-10-08 Thread Richard
nice - I prefer it to the default theme. On Oct 8, 9:50 am, Alex Fanjul wrote: > Yes of course. > Here it is. > > Alex F > > El 07/10/2009 20:50, mdipierro escribió: > > > > > Could you email it to me as a zip? I have problems with rar. sorry. > > > On Oct 7, 11:55 am, Alex Fanjul  wrote: > > >

[web2py:32469] Shorten strings...

2009-10-08 Thread Jason (spot) Brower
I have some long strings. How do I shorten them with the "..." feature? So when I talk on and on it will... :P Regards, Jason Brower --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to t

[web2py:32468] Re: html pages without function associated

2009-10-08 Thread Jason (spot) Brower
I don't think so. But I doubt that 2 lines a page is that big of a deal. It comes in especially handy when you need to call the page. On Thu, Oct 8, 2009 at 3:17 PM, sebastian wrote: > > Hi All, > > I have a lot of pages that do not need any controller activity. > Therefore I have a lot of >

[web2py:32467] Re: web2py wiki

2009-10-08 Thread Richard
It's great when people from the community take ownership of useful applications like this! Is the wiki able to run on the GAE? I noticed a few links that could perhaps be made more pretty: - tags - edit page Also is it possible to edit the page I'm looking at directly? I only saw the edit link

[web2py:32466] Re: Proposal for plugin system in web2py - RFC

2009-10-08 Thread Alex Fanjul
With {{=LOAD('plugin_hello',ajax=True)}} it throws this ticket: Traceback(most recent call last): File"E:\Downloads\Programacion\Python\web2py\devel\gluon\restricted.py",line178,inrestricted execccodeinenvironment File"E:\Downloads\Programacion\Python\web2py\devel\applications\test/

[web2py:32465] Re: Proposal for plugin system in web2py - RFC

2009-10-08 Thread Alex Fanjul
Ok, I got it working little correction (name > your_name): def index(): form=SQLFORM.factory(Field('your_name')) if form.accepts(request.vars,session): return "Hello "+form.vars.your_name else: return form.xml() thanks, alex f El 05/10/2009 6:40, mdipier

[web2py:32464] html pages without function associated

2009-10-08 Thread sebastian
Hi All, I have a lot of pages that do not need any controller activity. Therefore I have a lot of def my_function(): return dict() and then a my_function.html with my html. Is there any way to create html pages without creating any associated function ? thanks ? --~--~-~--~~

[web2py:32463] Re: Proposal for plugin system in web2py - RFC

2009-10-08 Thread Alex Fanjul
Hi massimo, could you say me what is the easiest way to download from trunk? I tried by web interface, but I didnt find the donwload shurtcut, the last time I download a bazaar client my computers (with windows 7) showed some issues... :-( thanks in advance, alex f El 05/10/2009 6:40, mdipi

[web2py:32462] controller "images"

2009-10-08 Thread sebastian
Hi All, I am using a JS library (http://jquery.com/demo/thickbox/) which refer to "images/something.jpg". That works perfectly on static HTML but web2py translates it as "http://blabla/init/default/images/ something.jpg". as work around I'd like to create a controller names images that returns

[web2py:32461] Re: A simple patch to provide upload progress

2009-10-08 Thread AndCycle
thanks :) I will take some free time to write a example base on trunk :p On Oct 7, 10:24 pm, mdipierro wrote: > Check again. I added it now. > > On Oct 7, 6:42 am, AndCycle wrote: > > > oops, the patch been cut by width restriction on mailing list lol > > > here is pastebinhttp://pastebin.com/

[web2py:32460] Re: column ... is not unique

2009-10-08 Thread mika
On Oct 5, 12:46 pm, Carl wrote: > Is this happening in your local development environment is it using > sqlite? > If so, the only solution I found was to delete the local database and > start over. > > On Oct 5, 9:23 am,mika wrote: > > > > > hi! > > > The problem is that traceback shows that co

[web2py:32458] Re: advice on the routes py and database queries.

2009-10-08 Thread Mengu
why wouldn't it be? On Oct 8, 1:51 am, Richard wrote: > is that the proper way to do it, having a separate controller for each > operation? The routes approach sounds more flexible. > Richard > > On Oct 7, 12:23 pm, Mengu wrote: > > > massimo, > > > actually this wasn't what i am asking, but th

[web2py:32459] Re: newbie: returning Controller variable to View

2009-10-08 Thread ed
Solved it. Was not able to refresh the changes I made. On Oct 8, 4:29 pm, ed wrote: > Correction on Controller code: > if form.accepts(request.vars, session): >   em = request.vars.emailad >   row=db(db.auth_user.email==em).select  (db.auth_user.first_name) >   return dict(red=redirect(URL(r=req

[web2py:32457] Re: newbie: returning Controller variable to View

2009-10-08 Thread ed
Correction on Controller code: if form.accepts(request.vars, session): em = request.vars.emailad row=db(db.auth_user.email==em).select (db.auth_user.first_name) return dict(red=redirect(URL(r=request,f='loggedin')),name=row) ... View: {{extend 'layout2.html'}} Hi {{=name}} ...

[web2py:32456] newbie: returning Controller variable to View

2009-10-08 Thread ed
Hi, I've been trying to return a variable from a controller to a view using dict() but wasn't able display it. I have the following code: Controller: if form.accepts(request.vars, session): row=db(db.auth_user.email==em).select (db.auth_user.first_name) return dict(red=red