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:
d
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, th
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
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
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 b
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
:-)
On Oct 2, 12:25 am, John Heenan 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 have specially me
Thank you. Could you email it to me?
On Oct 2, 5:06 am, Maciek Sykulski 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
> fromhttp://www.fyneworks.com/jquery/multiple-file-upload/
oops
On Oct 2, 5:09 am, "mr.freeze" 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 group, send
It is disabled until you set
mail=Mail(...)
...
auth.settings.mailer=mail
On Oct 2, 5:43 am, GhostRider 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 function.
>
> Kenneth
--~--~
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 wrote:
> I have just activated an in-house developed, well integrated cart and
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 Oc
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}}
{{=form.custom.end}}
On Oct 2, 7:41 am, annet wrote:
> I have a form to which I want to add headers, for the various parts
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 fu
Can you try
Field('rating', type='string', default=u'普遍'.encode('utf8'))
On Oct 2, 5:44 am, AndCycle 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 db definition
>
> then t
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 a
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@googlegroups.c
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 wrote:
> It is disabled until you set
>
> mail=Mail(...)
> ...
> auth.settings.mailer=mail
>
> On Oct 2, 5:43 am, GhostRider wrote:
>
>
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//public_html/
That changed from 'file not found' to 'bad request'
2 - I contacted customer support and it seems python isn't installed
but it is sup
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 wrote:
> Here is a video explaining the proposal
>
> http://vimeo.com/6836681
>
> Attached is a document containing the proposal, the code, and
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 wrote:
> I generally like the concept, but am uncomfortable with the structure (or
> lack of) of the plugin.
>
> For example - plu
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 f
web2py.com runs in a VM with 512MB Ram.
On Oct 2, 8:30 am, "Michael - afewtips.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 reserved instance
Hi,
searching two days now, didn't get it yet.
How do I pass an argument from a view to a controller function ?
I create a view with a list of users like:
user1 rolelocation
user2 rolelocation
...
the user fields are URLs pointing to a controller function called
"edit_use
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
...yeah; lots of hardwired paths...
On Fri, Oct 2, 2009 at 2:26 AM, Web2py-SuperFan 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 import date
>
>
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
This is on a shared host.
On Oct 2, 9:17 am, DenesL 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" group.
To post to t
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 somethin
I emailed the patch and also the modified MultiSQLFORM class.
On Oct 2, 3:22 pm, mdipierro wrote:
> Thank you. Could you email it to me?
>
> On Oct 2, 5:06 am, Maciek Sykulski wrote:
>
> > Hi Everyone, Hi Massimo,
>
> > I was having fun time working with web2py and setting up multiple file
> >
On Fri, Oct 2, 2009 at 10:14 AM, znafets 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 element it works, multi
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 fo
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 we
> 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
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 fr
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 wrote:
>
> > not sure why you think it doesn't work; it should work just fine:
> >
> > x = request.args[0]
> > y = request.args[1]
>
> well, as
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
web
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.co
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 wrote:
> If no one else can help you, I'll put t
Mind that URLs are validate on input and if uname contains spaces
things will not work because spaces will be replace by _. I suggest:
{{=A(uname, _href=URL(r=request, f='edit_user',vars=dict
(uname=uname)))}}
and in edit_user
rows=db(db.==request.vars.uname).select()
On Oct 2, 12:42 p
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)) o
On Fri, Oct 2, 2009 at 1:35 PM, znafets 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 = db.user.name==uname
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 wrote:
> On Fri, Oct 2, 2009 at 1
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 wrote:
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 - afewtips
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 wrote:
> Hope I am not getting too off topic but the main reason I've not moved
> a
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
O
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
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 wrote:
> http://www.google.com/hostednews/ap/article/ALeqM5izzuJeYaNdQE3RQW3n5...
--~--~-~--~~~---~--~~
You received this mess
On Oct 3, 3:22 am, notcourage 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 Checkout as Googl
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 ot
On Oct 3, 3:22 am, notcourage 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 Checkout as Googl
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)?
--~--
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 wrote:
>
> On Oct 3, 3:22 am, notcourage wrote:
> > Which payment processor do you use?
>
> I am currently using PayPal Express Checkout but have designed the
> s
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
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
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 t
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 wrote:
>
> What remains now is to have an event to further promote the web2py in
> Brazil!
>
> Hugs directly from
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
> db(db.person.name=='Bob').select(orderby=db.pe
On Oct2, 12:42pm, "mr.freeze" 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
Congratulations! And I th
@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 str
On Fri, Oct 2, 2009 at 14:34, mdipierro wrote:
>
> http://www.google.com/hostednews/ap/article/ALeqM5izzuJeYaNdQE3RQW3n5ZbN1UjM-QD9B33C2G0
You are all invited! ;-)
On Fri, Oct 2, 2009 at 21:28, Renato-ES wrote:
>
> What remains now is to have an event to further promote the web2py in
> Brazil
On Fri, Oct 2, 2009 at 9:39 PM, BioNip 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 this fi
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" gro
Yes, congratulations - let's see summer in Rio or summer in Chicago :)
On Oct 2, 8:05 pm, Álvaro Justen [Turicas]
wrote:
> On Fri, Oct 2, 2009 at 14:34, mdipierro wrote:
>
> >http://www.google.com/hostednews/ap/article/ALeqM5izzuJeYaNdQE3RQW3n5...
>
> You are all invited! ;-)
>
> On Fri, Oct 2,
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 t
On Oct3, 8:41am, Renato-ES-Brazil 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 there this pos
I solve this with this code
IS_UPPER(),IS_MATCH('([a-zA-Z]*[ ]*[á]*[é]*[í]*[ó]*[ú]*)
+',error_message='Solo se permite a-z, A-Z y espacios')
the problem is that i insert Perú, in the database i see PERú, the ú
is not upper it should appear Ú what can i do for this?
On 1 oct, 19:53, Sophie wrote
68 matches
Mail list logo