[web2py:28331] Re: feature request: activate the feature request template

2009-08-11 Thread mdipierro
Thank you Richard, some comments below. On Aug 10, 7:21 pm, Richard richar...@gmail.com wrote: hello, You know that currently the main repository is on launchpad.net? Currently the Google Code page says Here you find only the development version ..., while the Launchpad page says Does not

[web2py:28332] Re: Calendar Setup

2009-08-11 Thread mdipierro
Yes, you can translate the string using internationalization. On Aug 10, 8:43 pm, FERNANDO VILLARROEL fvillarr...@yahoo.com wrote: Regarding of the calendar. How i can use calendar with today in format day-month-year? hoy=time.time() desde=time.strftime('%d-%m-%Y

[web2py:28333] Re: Cannot upload file to GAE

2009-08-11 Thread mdipierro
I do not understand where you are getting the error but you can simply do: db.define_table('site', Field('pic1', 'upload', label =Banner (125x125))) def download(): return response.download(request,db) this works on GAE too because GAE will automatically create the uploadfield

[web2py:28334] Re: Cannot upload file to GAE

2009-08-11 Thread Jon Romero
db.define_table('site',                 Field('pic1', 'upload', label =Banner (125x125))) def download(): return response.download(request,db) this works on GAE too because GAE will automatically create the uploadfield for you. I didn't know that! I haven't found it in any

[web2py:28335] Re: Cannot upload file to GAE

2009-08-11 Thread mdipierro
please do. thanks. On Aug 11, 3:16 am, Jon Romero darks...@gmail.com wrote: db.define_table('site',                 Field('pic1', 'upload', label =Banner (125x125))) def download(): return response.download(request,db) this works on GAE too because GAE will automatically create the

[web2py:28336] Re: Cannot upload file to GAE

2009-08-11 Thread mdipierro
email me for the security code. On Aug 11, 3:16 am, Jon Romero darks...@gmail.com wrote: db.define_table('site',                 Field('pic1', 'upload', label =Banner (125x125))) def download(): return response.download(request,db) this works on GAE too because GAE will automatically

[web2py:28337] Re: Static Uploads Time Out

2009-08-11 Thread Alexey Nezhdanov
On Monday 10 August 2009 10:56:23 mdipierro wrote: I cannot exclude it is a problem with wsgiserver and ssl. Perhaps the decrytpion is done in ram and that is a problem. I will look into this. I had very similar problems back when developing xmpppy library. On some particular

[web2py:28338] Re: feature request: activate the feature request template

2009-08-11 Thread Sebastian E. Ovide
I Agree with Richard: even if all the information is here, in the mailing list, and therefore anybody can research in it just using google it would be much clear to use some tool such as a bug track system both to track bugs and to track and user enhancement requests some known examples:

[web2py:28339] Re: feature request: activate the feature request template

2009-08-11 Thread mdipierro
I have no objection if people use the google code page to track issues. Some people have done it in the past. I'd rather not use the the launchpad because it is very slow. Massimo On Aug 11, 5:20 am, Sebastian E. Ovide sebastianov...@gmail.com wrote: I Agree with Richard: even if all the

[web2py:28340] Re: feature request: activate the feature request template

2009-08-11 Thread Richard
On Aug 11, 5:17 pm, mdipierro mdipie...@cs.depaul.edu wrote: Thank you Richard, some comments below. On Aug 10, 7:21 pm, Richard richar...@gmail.com wrote: hello, You know that currently the main repository is on launchpad.net? Currently the Google Code page says Here you find only

[web2py:28342] Re: feature request: activate the feature request template

2009-08-11 Thread mdipierro
On Aug 11, 6:41 am, Richard richar...@gmail.com wrote: On Aug 11, 5:17 pm, mdipierro mdipie...@cs.depaul.edu wrote: Thank you Richard, some comments below. On Aug 10, 7:21 pm, Richard richar...@gmail.com wrote: hello, You know that currently the main repository is on

[web2py:28343] Re: input model data help

2009-08-11 Thread mdipierro
db.table.field.comment='.' or db.table.field.comment=A ('help',_href='instructions_url',_target='_blank') On Aug 11, 6:50 am, Carlos Aboim abo...@gmail.com wrote: Hi everyone Hope everybody is ok. 1 - Do you Folks know if are there a way to instruct (with an attribute) the user of my

[web2py:28344] Re: input model data help

2009-08-11 Thread mdipierro
2) IS_NULL_OR(IS_EMAIL()) On Aug 11, 6:50 am, Carlos Aboim abo...@gmail.com wrote: Hi everyone Hope everybody is ok. 1 - Do you Folks know if are there a way to instruct (with an attribute) the user of my site how to fill a field of my model? Kind of text wich tells the final user what

[web2py:28345] How to implement a wiki

2009-08-11 Thread Johann Spies
I want a wiki to be part of a website. In the manual there as part of the tutorial there is an example on how to implement a simple wiki: Start by creating a scaffolding app and call it mywiki. Now my questions. What exactly is a scaffolding app? How do I integrate different scaffolding apps

[web2py:28346] Re: How to implement a wiki

2009-08-11 Thread Fran
On Aug 11, 1:39 pm, Johann Spies johann.sp...@gmail.com wrote: What exactly is a scaffolding app? It is an example application which you can build on easily. The 'welcome' app is the default scaffolding app which is what you get when you use site admin to create a new app. How do I integrate

[web2py:/] Re: How to implement a wiki

2009-08-11 Thread mdipierro
The example has been rewritten in the new book to use tools. I will post is soon. Massimo On Aug 11, 7:47 am, Fran francisb...@googlemail.com wrote: On Aug 11, 1:39 pm, Johann Spies johann.sp...@gmail.com wrote: What exactly is a scaffolding app? It is an example application which you can

[web2py:28348] Re: Converting a Django Tutorial to web2py

2009-08-11 Thread __future__
Okay... I installed your version and took a look at what was going on. I am a little confused about a couple of things: In the controller: @auth.requires_login() def toggle_attendance(): This is where a user can toggle attendance to any event displayed on the 'tonight. page.

[web2py:28349] Re: input model data help

2009-08-11 Thread Carlos Aboim
Thank you !! Worked just fine! 2009/8/11 mdipierro mdipie...@cs.depaul.edu db.table.field.comment='.' or db.table.field.comment=A ('help',_href='instructions_url',_target='_blank') On Aug 11, 6:50 am, Carlos Aboim abo...@gmail.com wrote: Hi everyone Hope everybody is ok. 1

[web2py:28353] Re: calling function from the view

2009-08-11 Thread mdipierro
There are two types of frameworks push and pull. In a push framework (like web2py, Django, Rails) the URL is mapped into a function, which returns data (in the form of a dictionary) and the data is rendered by one view. In a pull framework (like Struts and JBoss) the URL is mapped into a view

[web2py:28354] Re: unexpected database initilization

2009-08-11 Thread mdipierro
You cannot do: ...Field('name')... database.vendor.name.type='string' database.vendor.name.length=64 you must do ...Field('name','string',length=64)... all the attributes but type, length, notnull, unique can be specified later. On Aug 11, 9:00 am, Don sam...@gmail.com wrote: I have

[web2py:28355] Re: viability test on IBM AS/400 i5 iSeries ...

2009-08-11 Thread Timbo
I haven't recently. It's likely that the one you downloaded is not the one I tried. Have you tried unzipping it on a PC? Does it give the same error? On Aug 10, 1:53 pm, DenesL denes1...@yahoo.ca wrote: Thanks, but when I try to unpack ActivePython-2.5.4.4-aix5- powerpc.tar.gz I get: tar:

[web2py:28350] Re: Converting a Django Tutorial to web2py

2009-08-11 Thread mdipierro
    if db((db.attendance.event==event_id) (db.attendance.user==auth.user.id)).delete():         return 'Not Attending'     else:         db.attendance.insert(event=event_id, user=auth.user.id)         return 'Attending' This obviously works but looks backwards to me for some reason.  

[web2py:28352] unexpected database initilization

2009-08-11 Thread Don
I have defined my model. # coding: utf8 # define a SQLite database database=SQLDB(sqlite://database.db) # create a vendor table database.define_table('vendor', database.Field('name'), database.Field('alias'),

[web2py:28351] calling function from the view

2009-08-11 Thread Don
I am new to the MVC paradigm, python, and web2py. I would like to be able to: 1. create a controller (done) 1. define a series of functions (including index) 2. call any of the function from a single view. Example. I have a model that consists of three tables. My default.py controllers index

[web2py:28356] Re: unexpected database initilization

2009-08-11 Thread Don Lee
Thanks, that got rid of my problem with a false value for the boolean. # coding: utf8 # define a SQLite database database=SQLDB(sqlite://database.db) # create a vendor table database.define_table('vendor',

[web2py:28357] Re: unexpected database initilization

2009-08-11 Thread mdipierro
mind that sqlite does not enforce field types (web2py does). This is a problem if you have already inserted records in the previous definition and then you changed it. In this case I suggest delete everything in the folder databases/. Massimo On Aug 11, 10:41 am, Don Lee sam...@gmail.com wrote:

[web2py:28358] dropdown list from model references doesn't work

2009-08-11 Thread Carlos Aboim
Hi everyone I am using a model like: http://dpaste.com/hold/78289/ - the field 'vendedor' - the field 'cliente' in model 'obras' should show a dropdown menu from IS_IN_SET ('vendedor') and from other table reference ('cliente') parameter but it doesn't show up no dropdown menus Any

[web2py:28359] Re: Ajax problem

2009-08-11 Thread __Kyo__
I tested the code you gave me and still does not work, I also work with the same code that brings up the manual and does not work either. What can I do? Apologies for the delay. Thanks in advance --Model(this code is taken from web2py manual) db=SQLDB('sqlite://db.db')

[web2py:28360] Re: unexpected database initilization

2009-08-11 Thread Don Lee
Thanks for the help. On Tue, Aug 11, 2009 at 11:50 AM, mdipierro mdipie...@cs.depaul.edu wrote: mind that sqlite does not enforce field types (web2py does). This is a problem if you have already inserted records in the previous definition and then you changed it. In this case I suggest

[web2py:28361] About new design

2009-08-11 Thread Jose
Really beautiful. +100 Jose --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to

[web2py:28362] Re: viability test on IBM AS/400 i5 iSeries ...

2009-08-11 Thread Yarko Tymciurak
in the past, I have found 7zip to be more tolerant of archives that are incomplete or with errors (e.g. extracts what it can)... You might try that. On Tue, Aug 11, 2009 at 9:56 AM, Timbo tfarr...@swgen.com wrote: I haven't recently. It's likely that the one you downloaded is not the one I

[web2py:28363] Re: Ironpython

2009-08-11 Thread Yarko Tymciurak
Just to complete this, you can start web2py with no-cron from the command line: -N or --no-cron remember, you can always invoke web2py with -h to see the available options. - Yarko On Sat, Aug 8, 2009 at 7:23 PM, holcomb hol...@gmail.com wrote: Thanks, Yarko. I completely forgot about that

[web2py:28364] Re: Very Strange Bug. Could be a Consequence of Exec

2009-08-11 Thread hcvst
Hi, sorry for not joining you on #web2py the other day, but as I said in my mail I am currently busy moving house and had a system GoLive this weekend. Not sure whether this is still relevant to you but my last w2popenid commit (http://bitbucket.org/hc/w2popenid) does not include Web2PyFetcher

[web2py:28365] Re: Auth based on UUID

2009-08-11 Thread Alex Fanjul
Thanks Vihang, I'm not doing distributed app now, it was only to learn more by example. If you finally get something please share it because it sounds interesting.. regards alex f El 06/08/2009 22:39, vihang escribió: Hello Alex, I am in the stage of 'figuring things out'. Frankly, I am as

[web2py:28366] def download(): slow

2009-08-11 Thread hcvst
Hi, I am surprised I didn't find a post on slow downloads, but perhaps it's only so bad because my internet connection is terribly slow. def download(): allows downloading of uploaded files http:///[app]/default/download/[filename] return response.download(request,db)

[web2py:28367] Re: viability test on IBM AS/400 i5 iSeries ...

2009-08-11 Thread DenesL
Both 2.5.4.4 and 2.6.2.2 fail the same no matter where or with what the file is gunziped. I opened a report on ActivePython support forum. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post

[web2py:28368] Re: Converting a Django Tutorial to web2py

2009-08-11 Thread __future__
Thanks a lot for that detailed explanation... Why do we use args instead of request.vars? Wouldn't using the request vars allow using named values in the controller? It is not the biggest thing in the world but whenever I see something like args (0), I feel like I am reading perl. I hate

[web2py:28369] Re: dropdown list from model references doesn't work

2009-08-11 Thread mdipierro
requires=IS_IN_SET() validation+dropdown requires=[IS_IN_SET()] validation but not dropdown. ;-) On Aug 11, 11:01 am, Carlos Aboim abo...@gmail.com wrote: Hi everyone I am using a model like: http://dpaste.com/hold/78289/    - the field 'vendedor'    - the field 'cliente'

[web2py:28370] Re: Ajax problem

2009-08-11 Thread mdipierro
Try this. $(document).ready(function(){ $('#taxpayer_spouse_name__row').hide(); $('#taxpayer_married').change(function(){ if($('#taxpayer_married').attr('checked')) $('#taxpayer_spouse_name__row').show(); else $('#taxpayer_spouse_name__row').hide();}); });

[web2py:28371] Re: About new design

2009-08-11 Thread mdipierro
Thank Mateusz. I will post it soon. Massimo On Aug 11, 11:28 am, Jose jjac...@gmail.com wrote: Really beautiful. +100 Jose --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this

[web2py:28372] Re: Converting a Django Tutorial to web2py

2009-08-11 Thread mdipierro
You can replace URL(...,args=id) with URL(...,vars=dict(id=id)) and request.args(0) with request.vars.id. I prefer the more restful syntax but there is no deep reason. Massimo On Aug 11, 3:37 pm, __future__ wrigh...@gmail.com wrote: Thanks a lot for that detailed explanation... Why do we

[web2py:28373] Help query

2009-08-11 Thread FERNANDO VILLARROEL
Dear all. How i can doing the following query for web2py: select a.destino,a.answeredtime,a.inicio,a.fin,a.valor from llamados as a join accountcode as b on a.id_accountcode=b.id join clientes as c on b.id_clientes=c.id where id_clientes = clte and

[web2py:28375] images in css

2009-08-11 Thread Sebastian E. Ovide
Hi All, I have some images in some css: background: url(images/myimage.jpg) no-repeat; the css is in : init/static and the images is in : init/static/images the image URL is translated to http://127.0.0.1:8000/images/myimage.jpginstead of being relative to where the css file is located (the

[web2py:28376] Re: Help query

2009-08-11 Thread mdipierro
Here is is broken down into pieces: a=db.llamados b=db.accountcode.with_alias('b') c=db.clientes.with_alias('c') query = (b.id_clientes==clte)(a.dialstatus=='ANSWER') (a.inicio=desde)(a.inicio=hasta) left = (b.on(a.id_accountcode==b.id),c.on(b.id_clientes==c.id)) rows = db(query).select

[web2py:28377] Re: where for art thou, oh session attribute?

2009-08-11 Thread mdipierro
You cannot use sessions with xmlrpc because the xmlrpc protocol does not use cookies to maintain persistence. On Aug 11, 5:02 pm, rb rbspg...@gmail.com wrote: In my think-client xmlrpc protocol to web2py svr code I am trying to maintain data in the session global variable but it doesn't seem

[web2py:28378] Re: where for art thou, oh session attribute?

2009-08-11 Thread rb
Further, I added a : session.hello = hello, world in order to see if it just didn't want to hold onto MY data. No dice. session.hello is gone on the next call as well. --- On Aug 11, 3:02 pm, rb rbspg...@gmail.com wrote: In my think-client xmlrpc protocol to web2py svr code I am trying to

[web2py:28379] Re: images in css

2009-08-11 Thread mdipierro
I never had this problem. If the css is in : /init/static/filename.css, then url(images/ myimage.jpg) should translate in /init/static/images/myimage.jpg which browser are you using? Massimo On Aug 11, 5:41 pm, Sebastian E. Ovide sebastianov...@gmail.com wrote: Hi All, I have some images in

[web2py:28380] IS_STRONG(max=20)

2009-08-11 Thread Jonathan Lundell
It seems strange that IS_STRONG() should impose a max length on a field, when by default there is no max length. Seems like max= belongs in IS_WEAK(), not IS_STRONG(). (And the new manual doesn't mention max=.) How about just getting rid of max= ?

[web2py:28381] Re: where for art thou, oh session attribute?

2009-08-11 Thread rb
OMG. Then I'm screwed? Is there anyway for Web2py to keep state info alive? Geez, I must be missing something. Do no web services keep state info? Are all web services stateless? Eek! On Aug 11, 4:06 pm, mdipierro mdipie...@cs.depaul.edu wrote: You cannot use sessions with xmlrpc because the

[web2py:28382] Re: where for art thou, oh session attribute?

2009-08-11 Thread mdipierro
This is not a problem with the server but with the client. You may try the cookie aware xmlrpc client proposed here: http://code.activestate.com/recipes/501148/ Or you need to pass an extra key to the function calls and is that to retrieve a session. Massimo On Aug 11, 6:09 pm, rb

[web2py:28383] Re: IS_STRONG(max=20)

2009-08-11 Thread mdipierro
Getting rid would not be backward compatible but we can change it to 32, the default length for a string field. We can even change it to a larger number. I do not have a strong opinion about this since it eventually gets hashed anyway. On Aug 11, 6:18 pm, Jonathan Lundell jlund...@pobox.com

[web2py:28384] Re: IS_STRONG(max=20)

2009-08-11 Thread Jonathan Lundell
On Aug 11, 2009, at 4:24 PM, mdipierro wrote: Getting rid would not be backward compatible but we can change it to 32, the default length for a string field. We can even change it to a larger number. I do not have a strong opinion about this since it eventually gets hashed anyway. How

[web2py:28385] Re: feature request: activate the feature request template

2009-08-11 Thread Richard
I was referring to the stackoverflow like OpenID login app is. Where can I find it? On Aug 11, 10:27 pm, mdipierro mdipie...@cs.depaul.edu wrote: On Aug 11, 6:41 am, Richard richar...@gmail.com wrote: On Aug 11, 5:17 pm, mdipierro mdipie...@cs.depaul.edu wrote: Thank you Richard,

[web2py:28388] Re: Help query

2009-08-11 Thread FERNANDO VILLARROEL
Thank you Massimo --- On Tue, 8/11/09, mdipierro mdipie...@cs.depaul.edu wrote: From: mdipierro mdipie...@cs.depaul.edu Subject: [web2py:28376] Re: Help query To: web2py-users web2py@googlegroups.com Date: Tuesday, August 11, 2009, 8:04 PM Here is is broken down into pieces:

[web2py:28389] Mobile success story

2009-08-11 Thread mr.freeze
I just replaced an asp.net mileage tracker app targeting our Blackberry users with a web2py equivalent. It runs twice as fast and was developed in half the time. Just thought I would share this experience for those considering options for mobile development.

[web2py:28390] Re: feature request: activate the feature request template

2009-08-11 Thread mdipierro
This one? http://w2popenid.appspot.com/init/default/wiki/main On Aug 11, 6:55 pm, Richard richar...@gmail.com wrote: I was referring to the stackoverflow like OpenID login app is. Where can I find it? On Aug 11, 10:27 pm, mdipierro mdipie...@cs.depaul.edu wrote: On Aug 11, 6:41 am,

[web2py:28391] Re: where for art thou, oh session attribute?

2009-08-11 Thread mdipierro
Once more, the issue is not with web2py. The issue is with your client. It does not support cookies, hence it does not support sessions. If you use this client they should work: http://fotinakis.com/blog/blog/2008/cookies-xmlrpc-and-ssl/ Massimo On Aug 11, 7:31 pm, rb

[web2py:28394] Re: Mobile success story

2009-08-11 Thread waTR
This needs to go on the main web-page, under success-stories! On Aug 11, 10:20 pm, mdipierro mdipie...@cs.depaul.edu wrote: This is great to know. Can you say which company? Massimo On Aug 11, 8:49 pm, mr.freeze nat...@freezable.com wrote: I just replaced an asp.net mileage tracker app

[web2py:28393] Re: Mobile success story

2009-08-11 Thread mdipierro
This is great to know. Can you say which company? Massimo On Aug 11, 8:49 pm, mr.freeze nat...@freezable.com wrote: I just replaced an asp.net mileage tracker app targeting our Blackberry users with a web2py equivalent.  It runs twice as fast and was developed in half the time.  Just thought

[web2py:28395] Re: Steps to move app to wweb site?

2009-08-11 Thread mdipierro
Everything in the web2py folder. On Aug 12, 12:19 am, jayvandal jayvan...@gmail.com wrote: I have created a blog from the tutorial and wondered what files are need to upload the Blog to the web site. Some web sites have PHP and other app loaded on the web site. IWhen I have created a PHP app

[web2py:28396] Re: where for art thou, oh session attribute?

2009-08-11 Thread mdipierro
Correction. You must use this client: http://code.activestate.com/recipes/501148/ not this client: http://fotinakis.com/blog/blog/2008/cookies-xmlrpc-and-ssl/ Massimo On Aug 12, 12:19 am, mdipierro mdipie...@cs.depaul.edu wrote: Once more, the issue is not with web2py. The issue is with