[web2py:36253] utf8 is not a known encoding -> leads to exception in web2py

2009-12-01 Thread Markus Gritsch
Hi, when generating a new application, all the bootstrap files start with the line # coding: utf8 which leads to the following exception, as soon as the file contains a non ASCII character: Traceback (most recent call last): File "D:\home\ActivityRecording\website\web2py\gluon\restricted.py",

[web2py:36254] Re: Plugin Central

2009-12-01 Thread selecta
> *Filename is expected to be "web2py.plugin.*.w2p" This is what you get when > you "pack" the plug-in individually. well i used web2py Version 1.72.3 on Ubuntu with Opera and it returns a gz file ... maybe a bug, so untill it is fixed you should allow gz files too for the functionality i guess i

[web2py:36255] Re: invalid request/controller handle

2009-12-01 Thread emmanu simo
my local app name is : samali I create a file : web2py\routes.py and edit it: routes_onerror = [ ('/samali/*', '/samali/default/index'), ] whent I request this Url : http://localhost:8000/samali/ccfff I have also : invalid controller did not work On 1 Dic, 05:22, Thadeus Burgess wrote: >

[web2py:36256] Call web page in cron

2009-12-01 Thread Angelo Compagnucci
Hi List! I have a question about cron! In a controller, I use request.args[int] to get the current argument, so I have a link in this form application/controller/argument . Can I call or execute this controller with argument? Or the controlle could be called without arguments? Is there a way t

[web2py:36257] Re: Call web page in cron

2009-12-01 Thread AchipA
Actually, this is not really a cron question :) The question is rather if you can specify arguments to controllers when invoked on the command line - if you can do that in the command line (I have no idea if that's possible), you will probably be able to do it in cron, too. On Dec 1, 10:50 am, Ang

Re: [web2py:36258] Re: Call web page in cron

2009-12-01 Thread Angelo Compagnucci
Ok, I'll try the command line first. Thanks for the suggestion! Angelo 2009/12/1 AchipA : > Actually, this is not really a cron question :) The question is rather > if you can specify arguments to controllers when invoked on the > command line - if you can do that in the command line (I have no

Re: [web2py:36259] Languages integration with Google Translate

2009-12-01 Thread Johann Spies
2009/11/23 Thadeus Burgess : ... > Google also has the following, javascript page translator. There is a little > lag as google translates the page, however everything seems to work > perfectly after the fact. Any reasons for not including this in your page? > How does it effect international users

[web2py:36260] web2py mod_wsgi apache problem

2009-12-01 Thread Oguz Yarimtepe
Hi all, I am having problems with setting up web2py with mod_wsgi on Apache2. Below is the vhosts.d/01_web2py_vhost.conf file i am using #virtual host LoadModule wsgi_module modules/mod_wsgi.so NameVirtualHost *:80 ServerName web2py.localhost ·· DocumentRoot /var/www/localhost/htdocs/web2

[web2py:36261] Re: Wordpress to Python :)

2009-12-01 Thread mdipierro
Could you explain again what is does? On Dec 1, 1:48 am, Thadeus Burgess wrote: > Since dreamhost insists on trying to run .py files instead of just serve > them, here is a working link > > http://static.thadeusb.com/wordpress2python.txt > > -Thadeus > > On Tue, Dec 1, 2009 at 1:36 AM, Thadeus Bu

[web2py:36262] Re: js functions from controller

2009-12-01 Thread mdipierro
In the new web2py there is no admin.tar Did you unzip it over an existing installation? Please try rm all web2py/*.tar Massimo On Dec 1, 1:59 am, haftish21 wrote: > yah, it's very strange. It's the from the source that I'm complaining > ab. When I double click, it momentarily disappears. If it

[web2py:36263] Open new window for print document

2009-12-01 Thread Gary
I'm looking for the best way to open a new window to put printable output while allowing the normal processing to complete, based on a checkbox selection. I'm using a custom CRUD form with a submit button. To re-state, once the submit button is pressed, a new window is launched with the printable

[web2py:36264] Re: utf8 is not a known encoding -> leads to exception in web2py

2009-12-01 Thread mdipierro
thanks Markus. Is # -*- coding: utf-8 -*- still recognized by Python? Massimo On Dec 1, 2:36 am, Markus Gritsch wrote: > Hi, > > when generating a new application, all the bootstrap files start with > the line > > # coding: utf8 > > which leads to the following exception, as soon as the file c

Re: [web2py:36265] Re: Wordpress to Python :)

2009-12-01 Thread david bain
Thadeus, So basically it creates a dictionary that represents all the content of a wordpress databse. Is this strictly for migration or more for syncing? I suppose it could be used for both. On Tue, Dec 1, 2009 at 9:53 AM, mdipierro wrote: > Could you explain again what is does? > > On Dec 1, 1:

[web2py:36266] Re: Plugin Central

2009-12-01 Thread mdipierro
I do not understand. Is this a web2pyslices issue of you get web2py.app.name.gz when you pack apps on your own web2py installation? On Dec 1, 2:52 am, selecta wrote: > > *Filename is expected to be "web2py.plugin.*.w2p" This is what you get when > > you "pack" the plug-in individually. > > well

[web2py:36267] Re: invalid request/controller handle

2009-12-01 Thread mdipierro
'/samali/*' is not a valid regex. Try routes_onerror = [ ('/samali.*', '/samali/default/index'), ] On Dec 1, 3:32 am, emmanu simo wrote: > my local app name is : samali > > I create a file : web2py\routes.py > > and edit it: > routes_onerror = [ >     ('/samali/*', '/samali/default/index'

[web2py:36268] Re: web2py mod_wsgi apache problem

2009-12-01 Thread mdipierro
Did you try this? http://www.web2pyslices.com/main/slices/take_slice/29 -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr

[web2py:36269] SVN 1472: sql.py error

2009-12-01 Thread rfx_labs
Hi Massimo, with version 1472 a bug in sql.py is introduced: File "/Applications/cherokee.app/Contents/MacOS/web2py/gluon/ sql.py", line 1234, in define_table t = self[tablename] = Table(self, tablename, *fields) File "/Applications/cherokee.app/Contents/MacOS/web2py/gluon/ sql.py", line

[web2py:36270] Re: utf8 is not a known encoding -> leads to exception in web2py

2009-12-01 Thread Markus Gritsch
On 1 Dez., 15:57, mdipierro wrote: > thanks Markus. Is > > # -*- coding: utf-8 -*- > > still recognized by Python? Of course. It is already used this way in all files in the gluon folder with one exception: gluon/utils. Kind regards, Markus -- You received this message because you are subscri

Re: [web2py:36271] Re: Wordpress to Python :)

2009-12-01 Thread Thadeus Burgess
Basically it just uses elementtree to parse the wordpress XML file into a python dictionary. From the dictionary it would be quite easy to insert the data into the DAL. Since every site is different, and has different table structure, or checks that need to be performed on the data, I leave it to t

[web2py:36272] Re: SVN 1472: sql.py error

2009-12-01 Thread mdipierro
You should not rewrite your model. It is a bug in trunk. I will fix it tonight. Thanks for testing this. On Dec 1, 9:40 am, rfx_labs wrote: > Hi Massimo, > > with version 1472 a bug in sql.py is introduced: > >   File "/Applications/cherokee.app/Contents/MacOS/web2py/gluon/ > sql.py", line 1234,

[web2py:36273] Re: utf8 is not a known encoding -> leads to exception in web2py

2009-12-01 Thread mdipierro
Ok. will do a global replace tonight. On Dec 1, 10:16 am, Markus Gritsch wrote: > On 1 Dez., 15:57, mdipierro wrote: > > > thanks Markus. Is > > > # -*- coding: utf-8 -*- > > > still recognized by Python? > > Of course.  It is already used this way in all files in the gluon > folder with one exc

[web2py:36274] Re: Wordpress to Python :)

2009-12-01 Thread mdipierro
You could create the models dinamically if you have tablenames and record values. On Dec 1, 10:44 am, Thadeus Burgess wrote: > Basically it just uses elementtree to parse the wordpress XML file into a > python dictionary. From the dictionary it would be quite easy to insert the > data into the DA

Re: [web2py:36275] Re: Plugin Central

2009-12-01 Thread Thadeus Burgess
I am using the latest version from trunk, on Ubuntu, using Firefox. When I hit "pack plugin" from the plug-in details screen, I recieve a w2p file. When I hit "pack all" from the site screen, I recieve a w2p file. I am confused as to why you are getting a .gz. Perhaps Opera is looking at the mim

Re: [web2py:36276] Re: Wordpress to Python :)

2009-12-01 Thread Thadeus Burgess
create which models dynamically? -Thadeus On Tue, Dec 1, 2009 at 10:48 AM, mdipierro wrote: > u could create the models dinamically if you have tablenames and > record valu > -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this

Re: [web2py:36277] Re: invalid request/controller handle

2009-12-01 Thread Thadeus Burgess
why does */* work then? And the example has /init/* and that does not work. The example routes.example.py needs updated then. -Thadeus On Tue, Dec 1, 2009 at 8:59 AM, mdipierro wrote: > '/samali/*' > > is not a valid regex. Try > > routes_onerror = [ >('/samali.*', '/samali/default/inde

[web2py:36278] upgrade app

2009-12-01 Thread DenesL
Using latest trunk (rev.1474) either command web2py.py -S myapp -u yes web2py.py --shell=myapp --upgrade=yes does not upgrade web2py_ajax.html under myapp/views even though web2py.py --upgrade=yes did upgrade the one in welcome. Am I missing something?. Thanks, Denes -- You received this mes

Re: [web2py:36279] upgrade app

2009-12-01 Thread Thadeus Burgess
It does not update web2py_ajax.html because that file could have been customized. You can copy the new one over from welcome.w2p packed file. -Thadeus On Tue, Dec 1, 2009 at 11:15 AM, DenesL wrote: > Using latest trunk (rev.1474) either command > > web2py.py -S myapp -u yes > web2py.py --shel

[web2py:36280] Re: upgrade app

2009-12-01 Thread DenesL
I thought that is why you had to upgrade explictly. So it has to be done manually? ugh! -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to

[web2py:36281] Re: upgrade app

2009-12-01 Thread villas
BTW when I upgraded from SVN and tried web2py.py -u yes, I got: IOError: [Errno 2] No such file or directory: 'admin.w2p' It didn't cause a problem, but I hadn't seen it before. Maybe that file needs to be checked into GoogleCode. On Dec 1, 5:19 pm, Thadeus Burgess wrote: > It does not updat

[web2py:36282] web2py and Linux

2009-12-01 Thread Ron K. Jeffries
Is there an EASY way to install the web2py platform on an Unbuntu machine? If not now, when? --- Ron K. Jeffries -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from

Re: [web2py:36283] web2py and Linux

2009-12-01 Thread Kuba Kucharski
http://www.web2pyslices.com/main/slices/take_slice/29 -- Kuba -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googl

[web2py:36284] Re: Languages integration with Google Translate

2009-12-01 Thread villas
You mean it would iterate through all the T strings for any chosen languages. That would be great! I guess the result would not always be an appropriate or good translation, but at least it would be a head start. Especially where someone knows enough of a language to spot any serious mis- transl

Re: [web2py:36285] Re: web2py mod_wsgi apache problem

2009-12-01 Thread Oguz Yarimtepe
On Tue, 1 Dec 2009 07:01:31 -0800 (PST) mdipierro wrote: > Did you try this? I had forgotten that script so i read it first. I am not usind Debian based distro so i followed the steps of the script one by one. > > http://www.web2pyslices.com/main/slices/take_slice/29 > > -- > I created a

Re: [web2py:36286] Re: web2py mod_wsgi apache problem

2009-12-01 Thread Thadeus Burgess
Try this slice, it has a step-by-step installation for a great web2py setup, you should be able to alter the settings to your own distro quite easily. http://www.web2pyslices.com/main/slices/take_slice/14 -Thadeus On Tue, Dec 1, 2009 at 12:42 PM, Oguz Yarimtepe wrote: > On Tue, 1 Dec 2009 07

Re: [web2py:36287] Re: web2py mod_wsgi apache problem

2009-12-01 Thread Thadeus Burgess
I think it might have something to do with the ServerName? It is probably being weird with it, try using 127.0.0.1 instead of localhost. -Thadeus On Tue, Dec 1, 2009 at 12:48 PM, Thadeus Burgess wrote: > Try this slice, it has a step-by-step installation for a great web2py > setup, you should

[web2py:36288] Deployment recipes on web2pyslices

2009-12-01 Thread Thadeus Burgess
I think they should link to each other :) -Thadeus -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com.

[web2py:36289] Re: upgrade app

2009-12-01 Thread DenesL
admin.w2p and examples.w2p are fairly large files and because of their size they are excluded from the SVN, you have to download them manually before upgrading, this was already discussed in another post. We now resume our original program: what gets upgraded then in an app upgrade? On Dec 1, 1

[web2py:36290] Re: Deployment recipes on web2pyslices

2009-12-01 Thread mr.freeze
If you click the category or tag of a slice it will perform a search. Is that what you mean? Thadeus Burgess wrote: > I think they should link to each other :) > > -Thadeus -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group,

Re: [web2py:36291] Re: Deployment recipes on web2pyslices

2009-12-01 Thread Thadeus Burgess
Nope. I think the deployment recipies should have links to the other ones available. This way if somebody goes to the slice about the script, they can go to my slice that has all of the detailed in depth setup, and visa versa. -Thadeus On Tue, Dec 1, 2009 at 1:32 PM, mr.freeze wrote: > If

[web2py:36292] Ver 1.72.3 error in DAL? - MySQL table creation

2009-12-01 Thread SergeyPo
Works under SQLite, but under MySQL table creation script generates the following sql: 'VARCHAR(16),\n\tcms_url VARCHAR(255),\n\tagency VARCHAR(32),\n\tuser VARCHAR(32),\n\tpas' - notice \n\t ! Error traceback Traceback (most recent call last): File "C:\web2py\gluon\restricted.py", line 184,

[web2py:36293] Re: Wordpress to Python :)

2009-12-01 Thread mdipierro
You said: > Since every site is different, and has different table > structure, or checks that need to be performed on the data, I leave it to > the programmer to do this. pehaps you can have an automatic default. On Dec 1, 10:55 am, Thadeus Burgess wrote: > create which models dynamically? > > -

[web2py:36294] Re: invalid request/controller handle

2009-12-01 Thread mdipierro
routes_onerror has a different syntax tha routes_in/out, it is not regex On Dec 1, 10:59 am, Thadeus Burgess wrote: > why does */* work then? > > And the example has /init/* and that does not work. The example > routes.example.py needs updated then. > > -Thadeus > > On Tue, Dec 1, 2009 at 8:59 AM

[web2py:36295] Re: Languages integration with Google Translate

2009-12-01 Thread mdipierro
I think it would be a good default for when a new language file is created On Dec 1, 12:22 pm, villas wrote: > You mean it would iterate through all the T strings for any chosen > languages.  That would be great! > > I guess the result would not always be an appropriate or good > translation,  bu

[web2py:36296] Re: Ver 1.72.3 error in DAL? - MySQL table creation

2009-12-01 Thread mdipierro
key or user may be a reserved keyword in mysql and cannot used as a field name. On Dec 1, 2:08 pm, SergeyPo wrote: > Works under SQLite, but under MySQL table creation script generates > the following sql: 'VARCHAR(16),\n\tcms_url VARCHAR(255),\n\tagency > VARCHAR(32),\n\tuser VARCHAR(32),\n\tpas

Re: [web2py:36297] Re: invalid request/controller handle

2009-12-01 Thread Thadeus Burgess
well routes on_error is what we are talking about. -Thadeus On Tue, Dec 1, 2009 at 2:48 PM, mdipierro wrote: > routes_onerror has a different syntax tha routes_in/out, it is not > regex > > On Dec 1, 10:59 am, Thadeus Burgess wrote: > > why does */* work then? > > > > And the example ha

[web2py:36298] Propper way to update records on GAE

2009-12-01 Thread yamandu
Could anyone here throw some light on this subject? I think GQL has no update statement and Web2py does not support expressions. So what´s the propper way to (batch) update records? I mean in the case like that: db.define_table('tabela', Field('x',integer) ) Suppose I want t

[web2py:36299] Re: Plugin Central

2009-12-01 Thread selecta
yes i hit "pack plugin" and i get a gz file returned will test tomorrow with other browsers and the "pack all" too ... till then On Dec 1, 5:54 pm, Thadeus Burgess wrote: > I am using the latest version from trunk, on Ubuntu, using Firefox. > > When I hit "pack plugin" from the plug-in details sc

[web2py:36300] Re: js functions from controller

2009-12-01 Thread haftish21
I saw that admin.tar is a new file that is immediately created on the web2py root folder while I run web2py.py. I delete and run it again, the problem repeats itself... -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send

Re: [web2py:36301] Re: Plugin Central

2009-12-01 Thread Thadeus Burgess
I shall allow it for now :) -Thadeus On Tue, Dec 1, 2009 at 4:07 PM, selecta wrote: > yes i hit "pack plugin" and i get a gz file returned > will test tomorrow with other browsers and the "pack all" too > ... till then > > On Dec 1, 5:54 pm, Thadeus Burgess wrote: > > I am using the latest

Re: [web2py:36302] Re: Plugin Central

2009-12-01 Thread Kuba Kucharski
Ha! I saw this yesterday, same issue - tested on Windows 7, Chrome, web2py - latest trunk. Packing from WEB2PY ADMIN results in a filename.w2p.gz. seems more like a browser issue but.. you cannot install such app w/o renaming the file. -- Kuba -- You received this message because you are subs

Re: [web2py:36303] Re: Plugin Central

2009-12-01 Thread Thadeus Burgess
Go ahead and try it now. Also, I noticed logout does not appear on the menu at top, perhaps the font should be reduced, or the search bar floated to the top right. -Thadeus On Tue, Dec 1, 2009 at 4:19 PM, Thadeus Burgess wrote: > I shall allow it for now :) > > -Thadeus > > > > > > On Tue, D

Re: [web2py:36304] Re: Plugin Central

2009-12-01 Thread Thadeus Burgess
It is a browser issue, the browser is looking at the MIME/TYPE of the file, (which web2py says to be a .gz). So for security reasons, the browser is renaming the extension for the file. So this could be considered a bug in web2py, in that web2py sends the gz mimetype instead of a w2p mimetype. Th

Re: [web2py:36305] Re: Wordpress to Python :)

2009-12-01 Thread Thadeus Burgess
So, supply the default table-names for the data. if those table names exist, with the field names, insert the data? Have a default supply, but allow user to override. This is becoming a plug-in :) -Thadeus On Tue, Dec 1, 2009 at 2:47 PM, mdipierro wrote: > You said: > > Since every site i

Re: [web2py:36306] Re: Wordpress to Python :)

2009-12-01 Thread Thadeus Burgess
This is the reason I don't want to go any further with this than just a python dictionary. My category system uses a modified preorder traversal tree. To port a wordpress category tree, I would need to do some calculations on the data to insert it correctly. Because I wrote my own preorder tree pl

[web2py:36307] Re: invalid request/controller handle

2009-12-01 Thread mdipierro
sorry I got confused. The syntax of routes_onerror is explained in the file itself appname/error * for all app, * for all errors. So specifically routes_onerror = [ ('samali/*', '/samali/default/index'), ] On Dec 1, 3:04 pm, Thadeus Burgess wrote: > well routes on_error is what we are t

[web2py:36308] Re: Propper way to update records on GAE

2009-12-01 Thread mdipierro
You have to loop: for row in db(db.table.id>0).select(): row.update_record(x=row.x+1) It is going to be slow and not transaction safe. On Dec 1, 3:11 pm, yamandu wrote: > Could anyone here throw some light on this subject? > I think GQL has no update statement and Web2py does not support >

[web2py:36309] Re: js functions from controller

2009-12-01 Thread mdipierro
fascinating. Let me look more into this. I may need you to run some tests. Will email you personally. On Dec 1, 4:19 pm, haftish21 wrote: > I saw that admin.tar is a new file that is immediately created on the > web2py root folder while I run web2py.py. I delete and run it again, > the problem re

[web2py:36310] Re: upgrade app

2009-12-01 Thread DenesL
-- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://grou

[web2py:36311] Re: Plugin Central

2009-12-01 Thread mdipierro
send me another patch. ;-) On Dec 1, 4:31 pm, Thadeus Burgess wrote: > It is a browser issue, the browser is looking at the MIME/TYPE of the file, > (which web2py says to be a .gz). So for security reasons, the browser is > renaming the extension for the file. > > So this could be considered a bu

[web2py:36312] Re: upgrade app

2009-12-01 Thread mdipierro
I am not sure if there is a question. People are supposed to use the stable distribution (not svn or bzr). In that case you unzip, the *.w2p are there. You upgrade with web2py --upgrade=yes svn and bzr are for testers. I commit any modifications, including untested features. It is in no way clos

[web2py:36313] Re: upgrade app

2009-12-01 Thread DenesL
The question was: when one does an app upgrade what exactly is upgraded? as in: web2py.py -S myapp -u yes Thank you. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe

Re: [web2py:36314] Re: invalid request/controller handle

2009-12-01 Thread Thadeus Burgess
Yes, but that is not working :) routes_onerror = [ ('thadeusb/*', '/thadeusb/default/error'), ] Shows "invalid function", even though there is an error action in the default controller. ('*/*', '/thadeusb/default/error') works. but of course it does every error, i just want 404's redirected -

[web2py:36315] Re: Wordpress to Python :)

2009-12-01 Thread Mengu
thadeus, you may know that i have been developing a web2py blog application (http://github.com/mengu/blog), i am thinking of a migration script from wordpress to my app. would you like to help me on that? On Dec 2, 1:20 am, Thadeus Burgess wrote: > This is the reason I don't want to go any fur

[web2py:36316] Re: web2py mod_wsgi apache problem

2009-12-01 Thread Mengu
Oguz, are you using Pardus? On Dec 1, 8:55 pm, Thadeus Burgess wrote: > I think it might have something to do with the ServerName? It is probably > being weird with it, try using 127.0.0.1 instead of localhost. > > -Thadeus > > On Tue, Dec 1, 2009 at 12:48 PM, Thadeus Burgess wrote: > > > Try thi

Re: [web2py:36317] Re: upgrade app

2009-12-01 Thread Jonathan Lundell
On Dec 1, 2009, at 8:04 PM, DenesL wrote: > The question was: > when one does an app upgrade what exactly is upgraded? > > as in: > web2py.py -S myapp -u yes The three standard apps (admin, examples & welcome) are upgraded. Your own apps are never upgraded under any circumstances (well, unless

Re: [web2py:36318] Re: invalid request/controller handle

2009-12-01 Thread Thadeus Burgess
Patch sent for the mime-type. I tested under Opera, Firefox, Epiphany on Ubuntu 10.4 -Thadeus On Tue, Dec 1, 2009 at 10:07 PM, Thadeus Burgess wrote: > Yes, but that is not working :) > routes_onerror = [ >('thadeusb/*', '/thadeusb/default/error'), > ] > > Shows "invalid function", even t

[web2py:36319] Re: Off-Topic: Question about blog archive links

2009-12-01 Thread Mengu
first of all, you need to keep the visitor in your blog. if the visitor liked one of your posts, s/he would probably want to read your other posts on the same topic or any other topic s/he's interested in. archives are very good for this as well as tags. second of all, the keyword "archive" is imp

[web2py:36320] Re: Help with frames

2009-12-01 Thread Mengu
please check w3schools page for the frames. here is an example: http://www.w3schools.com/HTML/tryit.asp?filename=tryhtml_frame_mix On Nov 26, 11:35 am, mdipierro wrote: > In the templates (which we call views) you can put any HTML you like. > You can put the HTML of your example without any chang

Re: [web2py:36321] Re: Wordpress to Python :)

2009-12-01 Thread Thadeus Burgess
I will create a simple migration script that will import the data into DAL if certain fields exist. As far as categories and tags go, I will assume they shall exist in their own table, if anybody wants more custom control over the migration (like I do for my blog), they can just use the function th

[web2py:36322] Re: Don't you love it when editors mess up?

2009-12-01 Thread Mengu
this is why ides suck for python and ruby development. i have been using gedit for a long time :) On Nov 26, 6:53 pm, Thadeus Burgess wrote: > Actually, it should be self.settings.table_even. > > However somehow export_to_csv got stuck in there, and is in SVN trunk. > > I think at some point Mass

Re: [web2py:36323] Re: Off-Topic: Question about blog archive links

2009-12-01 Thread Thadeus Burgess
However if my tag was the same as my category, say I "tag" it python, all a user needs to do is browse by that tag, no? I think Massimo's description is well, flat vs hierarchical, though most blogs end up just displaying the categories flat anyways, even if they are hierarchical on the backend.

[web2py:36324] Re: Off-Topic: Question about blog archive links

2009-12-01 Thread Mengu
this is called permalink. http://en.wikipedia.org/wiki/Permalink On Dec 2, 6:36 am, Thadeus Burgess wrote: > However if my tag was the same as my category, say I "tag" it python, all a > user needs to do is browse by that tag, no? > > I think Massimo's description is well, flat vs hierarchical,

[web2py:36325] Re: Don't you love it when editors mess up?

2009-12-01 Thread mdipierro
I am long in this discussion. Which app are you talking about? web2py gluon.tools.py only has a auth.settings.table_event Massimo On Nov 26, 10:53 am, Thadeus Burgess wrote: > Actually, it should be self.settings.table_even. > > However somehow export_to_csv got stuck in there, and is in SVN tr

[web2py:36326] Re: Don't you love it when editors mess up?

2009-12-01 Thread mdipierro
I am *lost* not *long* in this discussion. On Dec 1, 11:10 pm, mdipierro wrote: > I am long in this discussion. Which app are you talking about? web2py > gluon.tools.py only has a > > auth.settings.table_event > > Massimo > > On Nov 26, 10:53 am, Thadeus Burgess wrote: > > > Actually, it should

[web2py:36327] Re: SVN 1472: sql.py error

2009-12-01 Thread mdipierro
fixed in trunk. Can you please check again? On Dec 1, 9:40 am, rfx_labs wrote: > Hi Massimo, > > with version 1472 a bug in sql.py is introduced: > >   File "/Applications/cherokee.app/Contents/MacOS/web2py/gluon/ > sql.py", line 1234, in define_table >     t = self[tablename] = Table(self, table

[web2py:36328] Re: js functions from controller

2009-12-01 Thread mdipierro
I think I fixed this fixed in trunk but I cannot test it because I did not have the problem in the first place. Can you please check? On Dec 1, 4:19 pm, haftish21 wrote: > I saw that admin.tar is a new file that is immediately created on the > web2py root folder while I run web2py.py. I delete an

[web2py:36329] Re: Off-Topic: Question about blog archive links

2009-12-01 Thread Iceberg
And consequently one item can not exist in different category, so user has to follow the predefined hierarchical tree to locate a post. Say, a post about "Camry6" only exist in /root/toyota/camry6, but you can't easily find it if you don't know Camry is built by Toyota. If using tags, user can jus

[web2py:36330] Re: Ver 1.72.3 error in DAL? - MySQL table creation

2009-12-01 Thread SergeyPo
Thank you Massimo, that MySQL message was completely indescriptive. Are \t\n symbols allowed in SQL? - they are in DAL-generated DDL statement in my case. On Dec 1, 11:51 pm, mdipierro wrote: > key or user may be a reserved keyword in mysql and cannot used as a > field name. > > On Dec 1, 2:08 pm

[web2py:36331] Re: Ver 1.72.3 error in DAL? - MySQL table creation

2009-12-01 Thread mdipierro
Yes as far as I know. On Dec 2, 12:50 am, SergeyPo wrote: > Thank you Massimo, that MySQL message was completely indescriptive. > Are \t\n symbols allowed in SQL? - they are in DAL-generated DDL > statement in my case. > > On Dec 1, 11:51 pm, mdipierro wrote: > > > key or user may be a reserved

[web2py:36332] sign in form , email field validation problem

2009-12-01 Thread hamdy.a.farag
Hi I got a problem using the sign in form I got the email field and password field Now email field is not validated as expected , when letting it empty I got the error message "enter a value" which I can't translate . if I entered any characters in it I got nothing looking into Auth() in the l

[web2py:36333] Re: Ver 1.72.3 error in DAL? - MySQL table creation

2009-12-01 Thread mdipierro
Anyway, now that you mention it...even if allowed \t is not a good idea. I replaced it with 4 spaces in trunk now. On Dec 2, 12:50 am, SergeyPo wrote: > Thank you Massimo, that MySQL message was completely indescriptive. > Are \t\n symbols allowed in SQL? - they are in DAL-generated DDL > stateme

[web2py:36334] Re: sign in form , email field validation problem

2009-12-01 Thread mdipierro
You make a good point. The requires for email is set if define_tables. You can override that. The validators only apply when registering a new user. The login function overrides the validators because you do not want to give an attacker unnecessary information about why he cannot login. In praticu

[web2py:36335] check background task is running

2009-12-01 Thread Richard
Hello, I have an ongoing background task for processing my database. I want this task to automatically start when I run my app somewhere (can assume it is a Linux box), and to restart if it somehow dies. This is my current thinking, which I would appreciate feedback on: - Define a task table, whi