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
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(_
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
> 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
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
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
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
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:
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
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
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
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
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
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
>
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
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
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
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.
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
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
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.
>
>
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
> 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
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'
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
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('
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
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
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'
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
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
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
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
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
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
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
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
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
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
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
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
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
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=
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
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
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
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
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
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
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= ?
--~--~-~--~~~--
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
>
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
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
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
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
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
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
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.
--~--~-~--~~
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
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
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
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?
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
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
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
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
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
67 matches
Mail list logo