[web2py:13259] Re: class='date' syntax error

2008-12-10 Thread annet
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,

[web2py:13261] Re: Suggestion for web2py hosting

2008-12-10 Thread achipa
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

[web2py:13262] Re: Suggestion for web2py hosting

2008-12-10 Thread carlo
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

[web2py:13264] Re: string internationalization

2008-12-10 Thread mdipierro
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

[web2py:13265] Re: new in T3 - movie player

2008-12-10 Thread don
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

[web2py:13268] Re: Suggestion for web2py hosting

2008-12-10 Thread robsan
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

[web2py:13269] Re: string internationalization

2008-12-10 Thread achipa
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

[web2py:13270] Re: string internationalization

2008-12-10 Thread achipa
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

[web2py:13273] Re: string internationalization

2008-12-10 Thread achipa
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

[web2py:13275] Re: string internationalization

2008-12-10 Thread Yarko Tymciurak
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

[web2py:13276] Re: class='date' syntax error

2008-12-10 Thread Yarko Tymciurak
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

[web2py:13277] Error with sessions?

2008-12-10 Thread voltron
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

[web2py:13278] Re: string internationalization

2008-12-10 Thread mdipierro
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

[web2py:13279] Re: Error with sessions?

2008-12-10 Thread mdipierro
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

[web2py:13280] what does this mean

2008-12-10 Thread Wes James
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

[web2py:13281] Re: what does this mean

2008-12-10 Thread mdipierro
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

[web2py:13282] index() function

2008-12-10 Thread annet
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,

[web2py:13284] Re: index() function

2008-12-10 Thread mdipierro
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

[web2py:13285] Re: what does this mean

2008-12-10 Thread Yarko Tymciurak
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

[web2py:13286] FIXED : Error with sessions?

2008-12-10 Thread voltron
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

[web2py:13287] Re: string internationalization

2008-12-10 Thread achipa
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

[web2py:13288] Re: Ubuntu web2py startup scripts

2008-12-10 Thread voltron
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

[web2py:13290] wish item for itemize

2008-12-10 Thread Wes James
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 --~--~-~--~~~---~--~~

[web2py:13291] editAreaLoader

2008-12-10 Thread Wes James
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

[web2py:13293] Re: wish item for itemize

2008-12-10 Thread mdipierro
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

[web2py:13299] Re: footer setting for t3

2008-12-10 Thread mdipierro
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

[web2py:13303] Re: query with two relationships

2008-12-10 Thread Wes James
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

[web2py:13304] response vs settings in t3

2008-12-10 Thread Wes James
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

[web2py:13305] Re: query with two relationships

2008-12-10 Thread DenesL
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.

[web2py:13308] Re: grr, i do not understand css

2008-12-10 Thread Wes James
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

[web2py:13314] Re: grr, i do not understand css

2008-12-10 Thread Wes James
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

[web2py:13317] Re: grr, i do not understand css

2008-12-10 Thread mdipierro
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

[web2py:13318] Re: query with two relationships

2008-12-10 Thread mdipierro
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

[web2py:13319] Re: grr, i do not understand css

2008-12-10 Thread mdipierro
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

[web2py:13320] Re: grr, i do not understand css

2008-12-10 Thread Wes James
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

[web2py:13322] Re: grr, i do not understand css

2008-12-10 Thread mdipierro
@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

[web2py:13324] Re: Apache Deployment issues on Ubuntu

2008-12-10 Thread Johanm
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

[web2py:13325] Re: dynamically create sql objects

2008-12-10 Thread Cory Coager
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

[web2py:13329] zip a file

2008-12-10 Thread somebody
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',

[web2py:13332] Re: zip a file

2008-12-10 Thread somebody
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()