Yarko,
Thanks for pointing me to page 138 of the manual, I replaced 'date'
with type='date'.
Massimo,
It still isn't working.
This is the table definition of event:
db.define_table('event',
SQLField('bedrijf', db.bedrijf, default='', notnull=True),
SQLField('event', length=50,
I plan on making (actually, I have it but it's not user friendy yet) a
small script runnable from your own desktop that would (based on the
given hostname, u/p, and parameters you got from the provider) sort of
autodiscover the type of service and make some reasonable step-by-step
guide and/or
Thank you all for your suggestion. I am trying the free account on
Alwaysdata, the install process was easy and the control panel is
good.
I am tempted to test he Achipa script but too busy with some projects
at the moment.
carlo
On 10 Dic, 12:44, achipa [EMAIL PROTECTED] wrote:
I plan on
You can do all that. Here are some examples:
name=Achipa
T(Hello %s,name)
T(Hello %(name)s,dict(name=name))
x=0.123515
T(x=%.2f,x)
Massimo
On Dec 10, 4:40 am, achipa [EMAIL PROTECTED] wrote:
I know we T() for this, but there are some shortcoming. As I'm dealing
with more
See: http://flowplayer.org/download/LICENSE_GPL.txt
On Dec 9, 3:59 pm, mdipierro [EMAIL PROTECTED] wrote:
I am not sure the license allow redistribution. I cannot find the
license.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Checkout my tutorial for Dreamhost at:
http://wiki.dreamhost.com/Web2py
On Dec 7, 3:45 pm, carlo [EMAIL PROTECTED] wrote:
I need to open a new domain where some web2py apps will be hosted and
I am trying to browse the various offers.
At the moment I get:
WebFaction: I see we2py not
Still not good (enough), see my first post. This is good only for
english. The coder should be isolated from the language and it's
quirks. In most slavic languages for your example you would have 4
cases, not 2. Also, most languages do not use 0 (e.g. you would have
to say the equivalent of 'No
Just to see how bad it gets (then you'll understand why you don't want
to deal with this outside of T()):
English:
0 dogs
1 dog
2 dogs
Hungarian
Nincs kutya
1 kutya
2 kutya
3 kutya
Croatian
Nema pasa
1 pas
2..4 psa
5 pasa
... and every time you think you have covered all the cases, a
language
Here are some details if some is interested in more details:
http://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html
Also, there is a python-babel module which good for both I18N and
L10N, might be good for inclusion or at least inspiration.
On Dec 10, 4:59 pm, mdipierro [EMAIL
I can't tell if http://docs.python.org/library/gettext.html
does it does it?
On Wed, Dec 10, 2008 at 10:23 AM, achipa [EMAIL PROTECTED] wrote:
Here are some details if some is interested in more details:
http://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html
Also, there
FYI - either is equivalent; if 'date' is the second argument, that is what
type gets set to; if it's in a='b' form, that works in any position.
On Wed, Dec 10, 2008 at 3:09 AM, annet [EMAIL PROTECTED] wrote:
Yarko,
Thanks for pointing me to page 138 of the manual, I replaced 'date'
with
I am getting this error from a new appliance that I am coding:
Traceback (most recent call last):
File E:\projects\test\website\web2py\test\gluon\main.py, line 228,
in wsgibase
session._try_store_on_disk(request,response)
File E:\projects\test\website\web2py\test\gluon\globals.py, line
We could do something like this:
T(you have %s dogs,k,key=k)
and if a value of key is given, the translation string can be a
dictionary:
1:you have one dog, 2:you have two dogs, None:you have %s dogs
where None: is the default value.
Pros? Cons?
Massimo
On Dec 10, 10:32 am, Yarko
You may have a some weird object stored in the session. Something
unpickable. db, tables, rows, sessions, functions, files, cannot be
stored in session.
Massimo
On Dec 10, 10:44 am, voltron [EMAIL PROTECTED] wrote:
I am getting this error from a new appliance that I am coding:
Traceback
I did an svn checkout of web2py.
What does this mean:
cat VERSION
.mine
Version 1.52 (2008-12-03 11:25:27)
===
Version 1.53.5 (2008-12-08 16:55:03)
.r543
Why are there two version items in the VERSION file?
-wj
--~--~-~--~~~---~--~~
You received this
This is in trunk know
http://code.google.com/p/web2py/source/browse/trunk/VERSION
something got corrupted in the checkout I guess.
Massimo
On Dec 10, 11:13 am, Wes James [EMAIL PROTECTED] wrote:
I did an svn checkout of web2py.
What does this mean:
cat VERSION
.mine
Version 1.52
In my controllers I do not make use of the index() function, so it
simply reads:
def index():
return dict()
In one of my controllers called clubs I have got three functions:
byplace():
byactivity():
byfacility():
In my menu, when the visitor click clubs, the byplace function is
exposed,
def index(): redirect(URL(r=request,f='byplace'))
or at the bottom of controller
def index():
request.function='byplace' # override request
response.view='clubs/byplace.html' # make sure you map into the
right view
return byplace() # call the controller you want
Massimo
On Dec
That is to say, subversion tells you when there are unresolved conflicts,
gives you the file names and you have to go look for patterns like this, and
resolve them.
bzr and hg will pull up a merge tool to get you to do it...
anyway, this is manual conflict problem... unless you changed something
Got it, was a type in my code
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
I don't see where would you put the expressions for classification ?
You can't get around those, unfortunately (In my Croatian example, 101
starts over the cycle, so you have to use the modulo operator to cover
all cases). So, client side it's OK, but I don't see where does the
gettext
Anybody? Phyo?
On Dec 5, 9:01 am, voltron [EMAIL PROTECTED] wrote:
Anybody here using theUbuntuweb2py startup scripts? I have a few
questions, for example, line 30
DAEMON_ARGS=web2py.py --password=recycle --pid_filename=$PIDFILE
Should that not be:
DAEMON_ARGS= nohup web2py.py
Massimo,
Would you consider implementing with the itemize next/previous
numbered links for page access. Say you have 10 pages of content,
place 1 2 3 4 5..., etc. at top so that a specific page can be clicked
on.
thx for your efforts!
-wj
--~--~-~--~~~---~--~~
with this code:
editAreaLoader.init({id:
configuration_{{=request.args[0]}},start_highlight: false,
the false is normally true. When it is true, the highlight is about
the same color in the edit area as the selected line color and makes
it hard to select chuncks. I have changed it to
I would like to have that. Perhaps you can send me a patch?
the problem is that one need to account for a very large number of
pages.
Massimo
On Dec 10, 2:36 pm, Wes James [EMAIL PROTECTED] wrote:
Massimo,
Would you consider implementing with the itemize next/previous
numbered links for
If people want to remove the powered by web2py should they at least
do some work to achieve it? ;-)
But I like the idea of making the footer more customizable.
Massimo
On Dec 10, 2:55 pm, Wes James [EMAIL PROTECTED] wrote:
Massimo,
You have config settings for title and subtitle how about
try the same select at your database prompt.
On Wed, Dec 10, 2008 at 2:36 PM, pedro [EMAIL PROTECTED] wrote:
Ok, this is what i am trying to replicate using web2py data object
model:
SELECT * FROM teams, matches WHERE matches.team1_id=teams.id AND
matches.team2_id=teams.id
this through me for a loop...
I was seeing that settings.title, etc, were changing the
response.title, etc.. so I added settings.search=0 so I could block
out the google search and do my own footer with
settings.footer='web2py powered', but it wasn't taking in the page
with response.footer. I
SELECT * FROM teams, matches WHERE matches.team1_id=teams.id AND
matches.team2_id=teams.id
If I interpret that correctly it means: look for all matches where a
team played itself.
Unless you are looking for wrongly entered match info it would not be
very useful.
http://www.w3schools.com/css/pr_dim_line-height.asp
sets distance between lines
On Wed, Dec 10, 2008 at 3:43 PM, mdipierro [EMAIL PROTECTED] wrote:
I gave a new css to t3 (web2py.appspot.com/t3) but I do not know how
to increase the line-hight.
I tried putting line-height in various places
Here is an interesting article on using em instead of px:
http://mondaybynoon.com/2006/03/13/effective-style-with-em/
i.e. line-height:2em ( = 16*2) vs line-height:32px (i guess that's
what it means each em is 16px per previous article??)
-wj
On Wed, Dec 10, 2008 at 3:43 PM, mdipierro [EMAIL
But I am not trying to seperate sections. I am tring to separate lines
within the same section. em and px makes no difference in my tests.
On Dec 10, 5:12 pm, Wes James [EMAIL PROTECTED] wrote:
i went to manage/styles in the t3 here and put line-height:30px in
the body and i could see a
pedro, show us the model else we cannot answer and will have to guess.
Massimo
On Dec 10, 5:15 pm, billf [EMAIL PROTECTED] wrote:
in sql:
select * from matches a inner join teams b on a.team1_id=b.teams_id
inner join teams c on a.team2_id=c.team_id
so that a.? is match data, b.? is team1
You do not need it, you can just add to header, page, footer
width: 916px; margin-left: auto; margin-right: auto;
Massimo
On Dec 10, 5:29 pm, Wes James [EMAIL PROTECTED] wrote:
You've got something in the css that always causes a scroll left/right
bar to appear (safari and ff)
In toying
But the header does not wrap the whole page. This would only affect
the header area.
-wj
On Wed, Dec 10, 2008 at 4:39 PM, mdipierro [EMAIL PROTECTED] wrote:
You do not need it, you can just add to header, page, footer
width: 916px; margin-left: auto; margin-right: auto;
Massimo
On Dec
@wes, header, page and footer. everything else is in page.
@ceej. everywhere in particular lines in class page within same
paragraph. I will take any suggestion that makes it look better.
Massimo
On Dec 10, 5:57 pm, ceej [EMAIL PROTECTED] wrote:
Massimo,
What lines are you trying to give
Oops sent the last reply to the author. sorry about that.
I'm a little drugged up on cold medicine.
So I am running Ubuntu 8.10 Server which just like you suggested uses
ports.conf
however I cant seem to get my WSGI to fire on my web2py
the setup runs acceptably i think sine i get in to the
That worked, thanks!
On Dec 9, 1:02 am, mdipierro [EMAIL PROTECTED] wrote:
or using war SQL (not nice but possible)
sort=table.id, table.otherfield, table.yetanotherfield DESC
records=db().select(db.table.ALL,orderby=sort)
Notice in the second case there is no db. because the
if form.accepts(request.vars,session):
for table in db.tables:
rows=db(db[table].id).select()
print rows
open(str(os.sep).join([os.getcwd(), 'applications',
request.application, 'databases',
the code is created to store e table file then now i want to zip the
file after the file is created
On Dec 11, 1:19 pm, mdipierro [EMAIL PROTECTED] wrote:
It depends what do you need to do with the file? Store it or
return it? Perhps I do not understand the question.
The open()
40 matches
Mail list logo