[web2py:32078] Re: backup source routine

2009-10-02 Thread Web2py-SuperFan
thanks for the advice. much appreciated. I hacked out a script borrowing from Massimo's fine fileutils.py i copied that file and added this to the top of it: from datetime import date and this to the end and i call it and it does what i need, sure is ugly though, only a parent could love:

[web2py:32079] Patch proposed? to gluon/main.py - multiple file upload

2009-10-02 Thread Maciek Sykulski
Hi Everyone, Hi Massimo, I was having fun time working with web2py and setting up multiple file upload in one form using jquery.MultiFile.js from http://www.fyneworks.com/jquery/multiple-file-upload/ when I encountered the following problem: When multiple files are uploaded in one form,

[web2py:32080] sessions2trash.py bug

2009-10-02 Thread mr.freeze
Line 21: unlink(filename) Should be: os.unlink(filename) --~--~-~--~~~---~--~~ 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

[web2py:32081] Re: Retrieve password function disabled

2009-10-02 Thread GhostRider
Anybody hae any ideas how I can enabled this function. I found in the manual how to disable register function, but nothing about enabling retrieve function. Kenneth --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[web2py:32082] Email verification

2009-10-02 Thread GhostRider
Just got an call from a user trying to register on a website running web2py. Ha can´t register because hes email address is not going through the verification when submitting the form. The address is xcvvc...@hotmail.com, an underscore before the @ sign. The address those work, is this a web2py

[web2py:32083] form[0][0][0].insert()

2009-10-02 Thread annet
I have a form to which I want to add headers, for the various parts of data. I thought the following line of code would add a header before the first field: form[0][0][0].insert(H3('Bedrijfsgegevens')) However, it results in an error ticket, insert takes three argument instead of 2. What should

[web2py:32084] Re: Well integrated cart and information site using web2py

2009-10-02 Thread mdipierro
:-) On Oct 2, 12:25 am, John Heenan johnmhee...@gmail.com wrote: I have just activated an in-house developed, well integrated cart and information site; built with web2py athttp://www.zgus.com. The site sells customised instrumentation parts for which sourcing information is important. I

[web2py:32085] Re: Patch proposed? to gluon/main.py - multiple file upload

2009-10-02 Thread mdipierro
Thank you. Could you email it to me? On Oct 2, 5:06 am, Maciek Sykulski macie...@gmail.com wrote: Hi Everyone, Hi Massimo, I was having fun time working with web2py and setting up multiple file upload in one form using     jquery.MultiFile.js  

[web2py:32086] Re: sessions2trash.py bug

2009-10-02 Thread mdipierro
oops On Oct 2, 5:09 am, mr.freeze nat...@freezable.com wrote: Line 21: unlink(filename) Should be: os.unlink(filename) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this

[web2py:32087] Re: Retrieve password function disabled

2009-10-02 Thread mdipierro
It is disabled until you set mail=Mail(...) ... auth.settings.mailer=mail On Oct 2, 5:43 am, GhostRider kenneth.t.lundst...@gmail.com wrote: Anybody hae any ideas how I can enabled this function. I found in the manual how to disable register function, but nothing about enabling retrieve

[web2py:32088] Re: Well integrated cart and information site using web2py

2009-10-02 Thread Michael - afewtips.com
That's real nice, very responsive. Can you describe a little more on the setup? Memory, webserver, ... On what kind of hardware are you running the site on? A VPS or an internal server? On Oct 2, 1:25 am, John Heenan johnmhee...@gmail.com wrote: I have just activated an in-house developed,

[web2py:32089] Re: Email verification

2009-10-02 Thread mdipierro
I just run this test: massimo-di-pierros-macbook:web2py mdipierro$ python web2py.py -S welcome IS_EMAIL()('te...@test.com') so it is not a web2py issue nor a python issue. Perhaps the author of that site is using an old version of web2py or its own validator for email addresses. On Oct

[web2py:32090] Re: form[0][0][0].insert()

2009-10-02 Thread mdipierro
form[0][0][0].insert(0,H3('Bedrijfsgegevens')) This has the same syntax as list insert in python. I would suggest using a custom form instead {{=form.custom.begin}} h3/h3 {{=form.custom.end}} On Oct 2, 7:41 am, annet annet.verm...@gmail.com wrote: I have a form to which I want to add

[web2py:32091] Unicode support for class StringWidget(FormWidget) at web2py.gluon.sqlhtml

2009-10-02 Thread AndCycle
I simply hit the unicode issue here, I know I can do this by manual access lol what I did Field('rating', type='string', default=u'普遍') at db definition then tried to create crud form (yup, I am a lazy guy) def post(): return dict(form=crud.create(db.uploads)) boom, it hit a str

[web2py:32092] Re: Unicode support for class StringWidget(FormWidget) at web2py.gluon.sqlhtml

2009-10-02 Thread mdipierro
Can you try Field('rating', type='string', default=u'普遍'.encode('utf8')) On Oct 2, 5:44 am, AndCycle andcycle-goo...@andcycle.idv.tw wrote: I simply hit the unicode issue here, I know I can do this by manual access lol what I did     Field('rating', type='string', default=u'普遍') at

[web2py:32093] Re: Well integrated cart and information site using web2py

2009-10-02 Thread Michael - afewtips.com
I see you are on Slicehost - nice. 256MB?? I am still trying to determine min requirements for Web2py. I had Plone on a 256MB Slice, and it wasn't enough. I moved to Amazon EC2 reserved instance, and it's many times faster than Slicehost. Very Happy with EC2. Part of that is the new setup, but

[web2py:32094] Re: form[0][0][0].insert()

2009-10-02 Thread DenesL
Hi Annet, please post an example of the resulting HTML code that you are looking for. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to

[web2py:32095] Re: Retrieve password function disabled

2009-10-02 Thread GhostRider
Thank You very many, I don´t have many times I checked your last answer but missed the auth.settings.mailer = mail row. Kenneth On Oct 2, 4:24 pm, mdipierro mdipie...@cs.depaul.edu wrote: It is disabled until you set mail=Mail(...) ... auth.settings.mailer=mail On Oct 2, 5:43 am,

[web2py:32096] Re: Midphase + web2py how do I set it up?

2009-10-02 Thread Chris S
Just wanted to update here for anyone else that tries to implement on Midphase hosting. 1 - The RewriteBase for me needed to be: RewriteBase /home/username/public_html/installfolder That changed from 'file not found' to 'bad request' 2 - I contacted customer support and it seems python isn't

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

2009-10-02 Thread Richard
I think this is great. I often need to reuse components and currently am using a very crude IFRAME system. On Oct 1, 5:09 am, Massimo Di Pierro mdipie...@cs.depaul.edu wrote: Here is a video explaining the proposal      http://vimeo.com/6836681 Attached is a document containing the

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

2009-10-02 Thread Richard
perhaps to address plugins polluting the rest of the codebase, the admin interface could support adding and removing of plugins. On Oct 2, 2:41 am, Yarko Tymciurak yark...@gmail.com wrote: I generally like the concept, but am uncomfortable with the structure (or lack of) of the plugin. For

[web2py:32099] Re: Midphase + web2py how do I set it up?

2009-10-02 Thread DenesL
Hi Chris, Interesting... are you using shared hosting or dedicated? --~--~-~--~~~---~--~~ 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

[web2py:32100] Re: Well integrated cart and information site using web2py

2009-10-02 Thread mdipierro
web2py.com runs in a VM with 512MB Ram. On Oct 2, 8:30 am, Michael - afewtips.com afewt...@gmail.com wrote: I see you are on Slicehost - nice. 256MB?? I am still trying to determine min requirements for Web2py. I had Plone on a 256MB Slice, and it wasn't enough. I moved to Amazon EC2

[web2py:32102] Re: passing arguments from view to controller

2009-10-02 Thread Yarko Tymciurak
See section 4.2 in the manual for an explanation of the argument-URL convention in web2py (P. 113; http://www.web2py.com/examples/default/docs) Note: If a controller function takes arguments, it is not exposed to views (rather, just for server-side use); passing from view to controller is done

[web2py:32103] Re: backup source routine

2009-10-02 Thread Yarko Tymciurak
...yeah; lots of hardwired paths... On Fri, Oct 2, 2009 at 2:26 AM, Web2py-SuperFan mwkan...@gmail.com wrote: thanks for the advice. much appreciated. I hacked out a script borrowing from Massimo's fine fileutils.py i copied that file and added this to the top of it: from datetime

[web2py:32104] Re: Well integrated cart and information site using web2py

2009-10-02 Thread Michael - afewtips.com
Interesting. Not to get into a VPS debate, but I now pay $42 per month ($20+($265/12 initial Reserve cost) for a reserved EC2 instance that even with my whole Plone setup (nginx, varnish, haproxy, Zeo) I still have on average 1.3 Gig available memory. Everyone should spend a weekend setting one

[web2py:32105] Re: Midphase + web2py how do I set it up?

2009-10-02 Thread Chris S
This is on a shared host. On Oct 2, 9:17 am, DenesL denes1...@yahoo.ca wrote: Hi Chris, Interesting... are you using shared hosting or dedicated? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users

[web2py:32106] Re: passing arguments from view to controller

2009-10-02 Thread znafets
Funny enough I actually purchased the pdf from lulu and read it twice ... obviously once too less :) Thanks, but as described on page 113,114 the args=['x', 'y'] seems not to work. If you pass a list with one single element it works, multiple elements separated by comma do not. SO I need

[web2py:32107] Re: Patch proposed? to gluon/main.py - multiple file upload

2009-10-02 Thread Maciek Sykulski
I emailed the patch and also the modified MultiSQLFORM class. On Oct 2, 3:22 pm, mdipierro mdipie...@cs.depaul.edu wrote: Thank you. Could you email it to me? On Oct 2, 5:06 am, Maciek Sykulski macie...@gmail.com wrote: Hi Everyone, Hi Massimo, I was having fun time working with web2py

[web2py:32108] Re: passing arguments from view to controller

2009-10-02 Thread Yarko Tymciurak
On Fri, Oct 2, 2009 at 10:14 AM, znafets znaf...@googlemail.com wrote: Funny enough I actually purchased the pdf from lulu and read it twice ... obviously once too less :) Thanks, but as described on page 113,114 the args=['x', 'y'] seems not to work. If you pass a list with one single

[web2py:32109] web2py + pyjamas desktop = a desktop framework?

2009-10-02 Thread don
Please excuse my ignorance if this is a stupid question ... Given that a pyjamas application can run as both a web application and a desktop application (using MSHTML or xulrunner) and that pyjamas applications can be developed using web2py then does that mean web2py can be used as a framework

[web2py:32110] Re: web2py + pyjamas desktop = a desktop framework?

2009-10-02 Thread mdipierro
web2py applications require a server to run but it comes with it. If you run it on 127.0.0.1:8000 (the default) the application is basically private since it cannot be accessed from the network. I do not think there is any distinction any more from a desktop app and a web app. Whether you use

[web2py:32111] Re: passing arguments from view to controller

2009-10-02 Thread znafets
    not sure why you think it doesn't work; it should work just fine:     x = request.args[0]     y = request.args[1] well, as soon as I try something like args=[uname, uloc] in the view it comes up with Invalid request. args=[uname] works just fine and can be retrieved via request.args[0]

[web2py:32112] statistical computing with S/R and web2py

2009-10-02 Thread mdipierro
I found this today: http://statsci.blogspot.com/2009/10/web2py.html --~--~-~--~~~---~--~~ 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

[web2py:32113] Re: passing arguments from view to controller

2009-10-02 Thread Yarko Tymciurak
If no one else can help you, I'll put together an example for you tonight (tied up this afternoon) On Fri, Oct 2, 2009 at 12:07 PM, znafets znaf...@googlemail.com wrote: not sure why you think it doesn't work; it should work just fine: x = request.args[0] y = request.args[1]

[web2py:32114] Re: Well integrated cart and information site using web2py

2009-10-02 Thread notcourage
Which payment processor do you use? --~--~-~--~~~---~--~~ 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:32115] congratulations to our friends in Brazil!

2009-10-02 Thread mdipierro
http://www.google.com/hostednews/ap/article/ALeqM5izzuJeYaNdQE3RQW3n5ZbN1UjM-QD9B33C2G0 --~--~-~--~~~---~--~~ 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

[web2py:32116] Re: passing arguments from view to controller

2009-10-02 Thread znafets
Nah, don't worry, I'll figure that out somehow. Can't ask that much of you. Thank you very much for the offer though. I am a web2py rookie (just started), never used django or alike. So thanks again ciao Stefan On 2 Okt., 19:22, Yarko Tymciurak yark...@gmail.com wrote: If no one else can

[web2py:32117] Re: passing arguments from view to controller

2009-10-02 Thread mdipierro
Mind that URLs are validate on input and if uname contains spaces things will not work because spaces will be replace by _. I suggest: td{{=A(uname, _href=URL(r=request, f='edit_user',vars=dict (uname=uname)))}}/td and in edit_user rows=db(db.==request.vars.uname).select() On Oct 2,

[web2py:32118] Re: passing arguments from view to controller

2009-10-02 Thread znafets
Thanks for the hint, vars seems definetly the better choice. But the db part drives me to desperation: doing in controller: uname=request.vars.uname query=db(db.user.name==uname) records=db(query).select() the select statement already throws up an exception (key error key (gluon))

[web2py:32119] Re: passing arguments from view to controller

2009-10-02 Thread Yarko Tymciurak
On Fri, Oct 2, 2009 at 1:35 PM, znafets znaf...@googlemail.com wrote: Thanks for the hint, vars seems definetly the better choice. But the db part drives me to desperation: doing in controller: uname=request.vars.uname query=db(db.user.name==uname) should be: query =

[web2py:32120] Re: passing arguments from view to controller

2009-10-02 Thread znafets
Actually I have WingIDE personal v.3.2 but it runs with python2.6 and definetely not with python2.5, tried it. While web2py needs python2.5 as I understand this is mandatory. I'll try it out with iPython. thanks again. Stefan On 2 Okt., 20:50, Yarko Tymciurak yark...@gmail.com wrote: On Fri,

[web2py:32121] Re: passing arguments from view to controller

2009-10-02 Thread Yarko Tymciurak
wing will run with whatever python you have setup (you can run one project w/ 2.5, another w/ 2.6); web2py will run fine w/ 2.6, as long as you are on at least 2.6.2 (I'm have run web2py with both 2.5 and 2.6.2 on Windows, and on Ubuntu and Fedora). On Fri, Oct 2, 2009 at 2:06 PM, znafets

[web2py:32122] Re: Well integrated cart and information site using web2py

2009-10-02 Thread Julio
Hope I am not getting too off topic but the main reason I've not moved all my web2py apps (and several other Zope ones) is the fact that assigning IPs for SSL (https) is still (??) not possible on EC2 instances, do you know if this is still the case? Thanks On Oct 2, 8:05 am, Michael -

[web2py:32123] Re: Well integrated cart and information site using web2py

2009-10-02 Thread Michael - afewtips.com
I don't know why not. The only issue seems to be that each cert requires a unique IP address and you can only have 1 IP per instance. I don't think https is a problem, just authorize 443. On Oct 2, 4:32 pm, Julio ju...@techfuel.net wrote: Hope I am not getting too off topic but the main reason

[web2py:32124] Re: GAE Tutorial to Web2py

2009-10-02 Thread murray3
this is just a test of your code: http://testhogg.appspot.com/init/default/send http://testhogg.appspot.com/_ah/xmpp/message/chat i guess you just browse to /send and then browse to /chat which asks for login but prints none also can't see incoming xmpp messages in logs, any ideas. chrism On

[web2py:32125] Re: Well integrated cart and information site using web2py

2009-10-02 Thread John Heenan
Yes, I am using a VPS at Slicehost (http://www.slicehost.com) with a 256MB slice (US$20 per month if not using backup). VPS at Rackspace (http://www.rackspacecloud.com) is potentially even cheaper at 1.5c per hour or $10.95 per month (not including data transfer). Rackspace now owns Slicehost and

[web2py:32126] Re: congratulations to our friends in Brazil!

2009-10-02 Thread Renato-ES
What remains now is to have an event to further promote the web2py in Brazil! Hugs directly from Brazil. hehe On 2 out, 14:34, mdipierro mdipie...@cs.depaul.edu wrote: http://www.google.com/hostednews/ap/article/ALeqM5izzuJeYaNdQE3RQW3n5... --~--~-~--~~~---~--~~

[web2py:32127] Re: Well integrated cart and information site using web2py

2009-10-02 Thread John Heenan
On Oct 3, 3:22 am, notcourage klr...@gmail.com wrote: Which payment processor do you use? I am currently using PayPal Express Checkout but have designed the system to allow easy adaptation. PayPal will accept a total and redirect back to the merchant site for confirmation. I cannot use Google

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

2009-10-02 Thread suiato
Hi it's great to see web2py is going to have plugin/component :-) my two cents below. - plugins and components enhance functionalities of web2py. - to augment the web2py system, API and namespace are important issues to be addressed. - plugin is an application which happens to interact with

[web2py:32129] Re: Well integrated cart and information site using web2py

2009-10-02 Thread John Heenan
On Oct 3, 3:22 am, notcourage klr...@gmail.com wrote: Which payment processor do you use? I am currently using PayPal Express Checkout but have designed the system to allow easy adaptation. PayPal will accept a total and redirect back to the merchant site for confirmation. I cannot use Google

[web2py:32130] Add button next to combo box

2009-10-02 Thread Renato-ES-Brazil
Hi guys! When the form displays the select with several options from the other table, using the is_in_db configuration, couldn't also to put a button, for example ADD NOW, next to it to allows add a new option? Currently is there this possibility for the CRUD (create and update forms)?

[web2py:32131] Re: Well integrated cart and information site using web2py

2009-10-02 Thread Michael T
Thanks very much for the complete description - I love how snappy it is. Very efficient. On Fri, Oct 2, 2009 at 8:34 PM, John Heenan johnmhee...@gmail.com wrote: On Oct 3, 3:22 am, notcourage klr...@gmail.com wrote: Which payment processor do you use? I am currently using PayPal Express

[web2py:32132] Re: one to many where many doesn't exist

2009-10-02 Thread jayvandal
HI, pep selects all the masters. event select all the details, but there are some masters that have no details In the view I have for loop for all masters(pep). within this loop I have a loop for event When I run I get an error that the field description in event does not exist How would this be

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

2009-10-02 Thread Thadeus Burgess
I believe that a real web2py plugin system is going to require changes to the base web2py code. Otherwise its just a nifty trick. Plugins would need to be self contained, and not pollute the rest of the system. Plugins can be passed variables., for example, lets say you have a Star Rating plugin,

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

2009-10-02 Thread mdipierro
everything you say can be done in the system I am proposing. I will post an example of a rating system, nested comments, and perhaps a calendar. I think it would be limiting to have a plugin system that can only be used by the app that includes the plugin. The reason I'd like plugins to refresh

[web2py:32135] Re: congratulations to our friends in Brazil!

2009-10-02 Thread Yarko Tymciurak
or, the other way around - maybe web2py could build a nice site to promote the 2016 Olympics! (I know I'm saving my dime for that one! ;-)) On Fri, Oct 2, 2009 at 7:28 PM, Renato-ES caliari.ren...@gmail.com wrote: What remains now is to have an event to further promote the web2py in Brazil!

[web2py:32136] Sorting by a field in a foreign key

2009-10-02 Thread BioNip
Consider this code: db.define_table('position', Field('name'), Field('sort_order', 'integer'), ) db.define_table('person', Field('name'), Field('position', db.position), ) #This sorts by the position.id

[web2py:32137] Re: Client tools for web2py

2009-10-02 Thread Iceberg
On Oct2, 12:42pm, mr.freeze nat...@freezable.com wrote: New version.  Another round of bug fixes and feature additions. There is now a demo appliance that includes all of the examples and a tool for testing the JQuery class. http://www.web2pyslices.com/main/slices/take_slice/8

[web2py:32138] Re: Unicode support for class StringWidget(FormWidget) at web2py.gluon.sqlhtml

2009-10-02 Thread Iceberg
@AndCycle: I believe Massimo's suggestion should solve the problem. One more tips. If you put this line at the beginning of your source code, # coding: utf8 and making sure your source code file itself is in utf8, then you can simply try: Field('rating', type='string', default='普遍') Much

[web2py:32139] Re: congratulations to our friends in Brazil!

2009-10-02 Thread Álvaro Justen [Turicas]
On Fri, Oct 2, 2009 at 14:34, mdipierro mdipie...@cs.depaul.edu wrote: http://www.google.com/hostednews/ap/article/ALeqM5izzuJeYaNdQE3RQW3n5ZbN1UjM-QD9B33C2G0 You are all invited! ;-) On Fri, Oct 2, 2009 at 21:28, Renato-ES caliari.ren...@gmail.com wrote: What remains now is to have an

[web2py:32140] Re: Sorting by a field in a foreign key

2009-10-02 Thread Yarko Tymciurak
On Fri, Oct 2, 2009 at 9:39 PM, BioNip bionic.nip...@gmail.com wrote: Consider this code: db.define_table('position', Field('name'), Field('sort_order', 'integer'), ) db.define_table('person', Field('name'), Field('position', db.position), if you named

[web2py:32141] itemize or paging navigation

2009-10-02 Thread Wes James
t2 had itemize. Does this exist in current w2p? I'm looking for the itemize and page navigation routines for after a search is entered. thx, -wes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users

[web2py:32142] Re: congratulations to our friends in Brazil!

2009-10-02 Thread mikech
Yes, congratulations - let's see summer in Rio or summer in Chicago :) On Oct 2, 8:05 pm, Álvaro Justen [Turicas] alvarojus...@gmail.com wrote: On Fri, Oct 2, 2009 at 14:34, mdipierro mdipie...@cs.depaul.edu wrote: http://www.google.com/hostednews/ap/article/ALeqM5izzuJeYaNdQE3RQW3n5... You

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

2009-10-02 Thread mdipierro
On a second thought, Alvaro is right. I have implemented a rating component. It works but one may have a lot of them in one page. It should be possible for components work both via ajax a non. Moreover if {{load ... }} were to be implemented as Alvaro suggests as part of the template and run in

[web2py:32144] Re: Add button next to combo box

2009-10-02 Thread Iceberg
On Oct3, 8:41am, Renato-ES-Brazil caliari.ren...@gmail.com wrote: Hi guys! When the form displays the select with several options from the other table, using the is_in_db configuration, couldn't also to put a button, for example ADD NOW, next to it to allows add a new option? Currently is