[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 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 use > Lau

[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 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 00:00:00',time.localtime(hoy)) > > INPUT(_

[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 docum

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

2009-08-11 Thread mdipierro
please do. thanks. On Aug 11, 3:16 am, Jon Romero 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 > > upload

[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 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 t

[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 hardware/OS/py

[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" wrote: > I Agree with Richard: > > even if all the information is here, in

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

2009-08-11 Thread Richard
On Aug 11, 5:17 pm, mdipierro wrote: > Thank you Richard, > some comments below. > > On Aug 10, 7:21 pm, Richard 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

[web2py:28341] input model data help

2009-08-11 Thread Carlos Aboim
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 information is supposed to be filled in a field. 2 - And following the first one, how do I s

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

2009-08-11 Thread mdipierro
On Aug 11, 6:41 am, Richard wrote: > On Aug 11, 5:17 pm, mdipierro wrote: > > > > > Thank you Richard, > > some comments below. > > > On Aug 10, 7:21 pm, Richard wrote: > > > > hello, > > > > > You know that currently the main repository is on launchpad.net? > > > > Currently the Google Code

[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 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

[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 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 information >

[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

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

2009-08-11 Thread Fran
On Aug 11, 1:39 pm, Johann Spies 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 different "scaffold

[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 wrote: > On Aug 11, 1:39 pm, Johann Spies wrote: > > > What exactly is a "scaffolding app"? > > It is an example application which you can build on easily. > The 'welcome' app is

[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 > > db.table.field.comment='.' > > or > > db.table.field.comment=A > ('help',_href='instructions_url',_target='_blank') > > > On Aug 11, 6:50 am, Carlos Aboim wrote: > > Hi everyone > > Hope everybody is ok. > > > > 1 - Do you Folks know if

[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 wh

[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 wrote: > I have defined my model. > >

[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 wrote: > Thanks, but when I try to unpack ActivePython-2.5.4.4-aix5- > powerpc.tar.gz I get: > tar: 0511-169 A direc

[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 rea

[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'), database.Field('url'

[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', database.Field('

[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 wrote: > Thanks, that g

[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 bet

[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') db.define_table('taxpayer'

[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 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 delete > everything in t

[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+un

[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 wrote: > > I haven't recently. It's likely that the one you downloaded is not > the one I tried. > > Have

[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 wrote: > > Thanks, Yarko. I completely forgot about that option. > > Wi

[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 an

[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

[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 pos

[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 readi

[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 wrote: > Hi everyone > > I am using a model like: > > http://dpaste.com/hold/78289/ > >    - the field 'vendedor' >    - the field 'cliente' > > in mode

[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();}); }); the

[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 wrote: > 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 e

[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__ wrote: > Thanks a lot for that detailed explanation... > > Why do we use args instead o

[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 a.dialstatus=

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

2009-08-11 Thread rb
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 to hold it. For example I first start by creating a document-form (tree of datatables), cached in a data structure, as an attribute of session. Here's the code: fr

[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 re

[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 (a.d

[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 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 to > hold it. For

[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 wrote: > In my think-client xmlrpc protocol to web2py svr code I am trying to > maintain data i

[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" wrote: > Hi All, > > I have some images in some css:  backgrou

[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 wrote: > You cannot use sessions with xmlrpc because the xmlrpc protocol does >

[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 wrote: > Fu

[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 wrote: > It seems stran

[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 wrote: > On Aug 11, 6:41 am, Richard wrote: > > > > > On Aug 11, 5:17 pm, mdipierro wrote: > > > > Thank you Richard, > > > some comments below. > > > > On Aug 10, 7:21 pm, Richa

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

2009-08-11 Thread rb
Well I need more than just cookies. I can't serialize the app inbetween each call. I need a working process, which has active data structures (database tables, dictionaires, etc). Is there anyway for an app to talk out through web2py to a client? I had (incorrectly) understood that sessions stic

[web2py:28388] Re: Help query

2009-08-11 Thread FERNANDO VILLARROEL
Thank you Massimo --- On Tue, 8/11/09, mdipierro wrote: > From: mdipierro > Subject: [web2py:28376] Re: Help query > To: "web2py-users" > Date: Tuesday, August 11, 2009, 8:04 PM > > Here is is broken down into pieces: > > a=db.llamados > b=db.accountcode.with_alias('b') > c=db.clientes.with

[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:28387] Re: IS_STRONG(max=20)

2009-08-11 Thread mr.freeze
I think my logic was that limiting to 20 would increase the likelyhood of people remembering their password, thus reducing the number of passwords sent in email. Probably not a realistic assumption though. I have no issue with changing it. On Aug 11, 6:30 pm, Jonathan Lundell wrote: > On Aug 11

[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 wrote: > I was referring to the stackoverflow like OpenID login app is. Where > can I find it? > > On Aug 11, 10:27 pm, mdipierro wrote: > > > On Aug 11, 6:41 am, Richard wrote: > > > > On Aug 11, 5:17 p

[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 wrote: > Well I n

[web2py:28392] Steps to move app to wweb site?

2009-08-11 Thread jayvandal
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 I would create a home page and upload all the PHP files I created . What do I need with WEB2PY?

[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 wrote: > This is great to know. Can you say which company? > > Massimo > > On Aug 11, 8:49 pm, "mr.freeze" wrote: > > > I just replaced an asp.net mileage tracker app targeting our > > Blackberry user

[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" 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 I would share t

[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 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 I > would create

[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 wrote: > Once more, the issue is not with web2py. The issue is with your > client. It does not

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

2009-08-11 Thread rb
Thx kindly, Massimo. I'll check the links out... but... >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. Errr... no, that is not the issue that I'm pointing at. If "sessions remain and do not expire" means t