[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,
line 182, in restricted
ccode = compile(code.replace('\r\n', '\n'), layer, 'exec')
  File D:/home/ActivityRecording/website/web2py/applications/report/
controllers/default.py, line 0
SyntaxError: unknown encoding: utf8 (report/controllers/default.py,
line 0)

The correct name of this encoding is utf-8, so please change it --
preferrably to

# -*- coding: utf-8 -*-

which makes the encoding also recognizable by Emacs.

Kind regards,
Markus

--

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://groups.google.com/group/web2py?hl=en.




[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 it is really all about information
density and this is still quite low on you page
try to fit in more information on one page, go to a commercial or
sucessfull open source web page (e.g. http://www.web2pyslices.com/)
and you will find at least 5-10 main items of information on each
page, right now i can see 3+1/2 plugin on the main page

On Nov 30, 4:22 pm, Thadeus Burgess thade...@thadeusb.com wrote:
 *Value not in database errors. - Should have been fixed in trunk, not sure
 of a way around it except for just not using Validators all around.

 *Version Number - good idea.

 *Filename is expected to be web2py.plugin.*.w2p This is what you get when
 you pack the plug-in individually.

 *Code for comments - My bad, that actually comes from the python sample at
 gravatar.com, yay for editors auto-save :)

 -Thadeus



 On Mon, Nov 30, 2009 at 3:47 AM, selecta gr...@delarue-berlin.de wrote:
  in the cotroller plug

  i see
  0 Responses Comment RSS Feed
  # import code for encoding urls and generating md5 hashes import
  urllib, hashlib # Set your variables here email =
  some...@somewhere.com default = http://www.somewhere.com/
  homsar.jpg http://www.somewhere.com/%0Ahomsar.jpg size = 40 # construct
  the url gravatar_url = http://
 www.gravatar.com/avatar.php? gravatar_url += urllib.urlencode
  ({'gravatar_id':hashlib.md5(email).hexdigest(), 'default':default,
  'size':str(size)})

  looks like some commented code that should be hidden

  On Nov 30, 10:43 am, selecta gr...@delarue-berlin.de wrote:
   thanks that was it
   when I try to submit my plugin and I don't choose a category like
   food I get
   value not in database for each category
   on Publish a new version
   there is a field called Number: it's not clear what this is supposed
   to mean I would call it version number instead
   on uploading my improved tagging plugin i get enter valid filename
   my filename is web2py.plugin.tagging.gz ... as chosen by the export
   function?? why is it not valid?

   On Nov 29, 8:56 pm, Thadeus Burgess thade...@thadeusb.com wrote:

Make sure you are using username not emai

-Thadeus

On Sun, Nov 29, 2009 at 7:32 AM, selecta gr...@delarue-berlin.de
  wrote:
 nice design, i hope it will go online soon
 but i am having problems signing in, I registerd but after clicking
 the confimation link it jus says invalid login??
 I would also suggest that you add a licencse category, for the
  tagging
 part also i would suggest that you use my improved version of the
 tagging plugin for your tagging ;-)

 http://groups.google.com/group/web2py/browse_thread/thread/4f9dfc4e9c...

 On Nov 28, 8:57 pm, Thadeus Burgess thade...@thadeusb.com wrote:
  Hello everyone,

  Ok I am putting the finishing touches on our new web2py plugin
  hosting
 site.

  Could everyone take a look at it, let me know what you think, and
  reply
 to
  this thread for any comments or suggestions. I will not get a
  chance to
  update it until next weekend, but would love to start gathering a
  list of
  things that could be done better.

  You can start uploading some packed plug-ins to try the site out,
  however
 it
  is just running off the demo SQLITE database, which will be
  scrubbed when
  the site goes official.

  As a note, the plug-ins that are already in the database are test
  files,
 and
  do not actually contain anything.

 http://plugincentral.thadeusb.com/

  Hope you enjoy!

  Thanks,

  -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.comweb2py%2bunsubscr...@googlegroups.com
  web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.­com

 .
 For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.

  --

  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.comweb2py%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.

--

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 

[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 thade...@thadeusb.com wrote:
 When I use the following in my routes.py

 routes_onerror = [
     ('*/*', '/init/default/index'),
 ]

 The process hits 100% cpu and freezes the machine, consumes ram, and spikes
 the local network.

 Infinite loop in there somewhere?

 -Thadeus

 On Mon, Nov 30, 2009 at 10:11 PM, Thadeus Burgess 
 thade...@thadeusb.comwrote:

  web2py/routes.example.py

  -Thadeus

  On Mon, Nov 30, 2009 at 8:26 AM, Simo scommes...@gmail.com wrote:

  where  (in with directory)  is that file ?

  On Mon, Nov 30, 2009 at 3:18 PM, mdipierro mdipie...@cs.depaul.eduwrote:

  Read the file routes.example.py

  You can do what you need by renaming this file route.py and
  customizing routes_onerror.

  Massimo

  On Nov 30, 3:55 am, emmanu simo scommes...@gmail.com wrote:
   If a user put a bad Url , I have an INVALID REQUEST/CONTROLLER
   I want to  automaticly redirect that request to a home page or a last
   page done.
   how can I do it ?

  --

  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.comweb2py%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.

  --
  Emmanuel Simo

   --
  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.comweb2py%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.

--

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://groups.google.com/group/web2py?hl=en.




[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 to call a controlle with arguments?

Thanks in advance!

--

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://groups.google.com/group/web2py?hl=en.




[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, Angelo Compagnucci angelo.compagnu...@gmail.com
wrote:
 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 to call a controlle with arguments?

 Thanks in advance!

--

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://groups.google.com/group/web2py?hl=en.




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 attila.cs...@gmail.com:
 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, Angelo Compagnucci angelo.compagnu...@gmail.com
 wrote:
 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 to call a controlle with arguments?

 Thanks in advance!

 --

 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://groups.google.com/group/web2py?hl=en.




--

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://groups.google.com/group/web2py?hl=en.




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

2009-12-01 Thread Johann Spies
2009/11/23 Thadeus Burgess thade...@thadeusb.com:
...
 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 to your site, would they appreciate
 it or hate it?

 http://translate.google.com/translate_tools

Interesting.  Thank you.

Johann

--

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://groups.google.com/group/web2py?hl=en.




[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
VirtualHost *:80
  ServerName web2py.localhost
··
  DocumentRoot /var/www/localhost/htdocs/web2py/applications
  Alias / /var/www/localhost/htdocs/web2py/applications/
··
  WSGIScriptAlias / /var/www/localhost/htdocs/web2py/wsgihandler.py
  WSGIDaemonProcess web2py user=apache group=apache \
   display-name=%{GROUP} processes=5 
maximum-requests=1000 home=/var/www/localhost/htdocs/web2py
··
  LocationMatch ˆ(/[\w_]*/static/.*)
  Order Allow,Deny
  Allow from all
  /LocationMatch

  Location /admin
  Deny from all
  /Location
  LocationMatch ˆ/([ˆ/]+)/appadmin
  Deny from all
  /LocationMatch
··
  Location /
  Order Deny,Allow
  Allow from all·
  WSGIProcessGroup web2py
  /Location

  CustomLog /var/log/apache2/access.log common
  ErrorLog /var/log/apache2/error.log
/VirtualHost

And

# ls -l /var/www/localhost/htdocs/ | grep web
drwxr-xr-x  6 apache apache  4096 2009-12-01 11:32 web2py

if i run 
$ python web2py.py in the web2py directory and go to the 
http://127.0.0.1:8000/test/default/images, i have a simple application. 

But after i set up mod_wsgi on apache and go to the url 
http://web2py.localhost/test/default/images i can not see my application but 
got the error message The requested URL /test/default/images was not found on 
this server.
When i checked the log file i saw: 
[Tue Dec 01 16:25:59 2009] [error] [client 127.0.1.1] File does not exist: 
/var/www/localhost/htdocs/web2py/applications/test/default

So it seems i missed something related with my configuration. 

Anybody have an idea?

-- 
Oguz Yarimtepe oguzyarimt...@gmail.com

--

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://groups.google.com/group/web2py?hl=en.




[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 haftis...@gmail.com 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 helps, let
 me paste the exception I receive everytime I type python  web2py.py

 WARNING: root: no file locking
 unpacking apps; this may take a few seconds...
 Traceback (most recent call last):
    File web2py.py, line 20 in (module)
       gluon.widget.start(cron=True)
    File C:\web2py\gluon\widget.py, line 726, in start
       (options, args) = console()
    File C:\web2py\gluon\widget.py, line699, in console
       w2p_unpack('admin.w2p, 'applications/admin/')
    File C:\web2py\gluon\fielutils.py, line 189, in w2p_unpack
       os.unpack(tarname)
 WindowsError: [Error 13] The process cannot access the file because it
 is being used by another process: 'admin.tar'

--

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://groups.google.com/group/web2py?hl=en.




[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 data (I'm using CRUD read to accomplish
the creation of the desired new window) while the original window
continues to the next logical screen.  Furthermore the database needs
to be updated prior to the launch of the new window to get the value
of the checkbox.

Currently, the update works OR I can launch the new form in the same
window.  I'm searching for the best way to accomplish them
asynchronously in different windows.

Thanks in advance.
Gary

--

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://groups.google.com/group/web2py?hl=en.




[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 m.grit...@gmail.com 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 contains a
 non ASCII character:

 Traceback (most recent call last):
   File D:\home\ActivityRecording\website\web2py\gluon\restricted.py,
 line 182, in restricted
     ccode = compile(code.replace('\r\n', '\n'), layer, 'exec')
   File D:/home/ActivityRecording/website/web2py/applications/report/
 controllers/default.py, line 0
 SyntaxError: unknown encoding: utf8 (report/controllers/default.py,
 line 0)

 The correct name of this encoding is utf-8, so please change it --
 preferrably to

 # -*- coding: utf-8 -*-

 which makes the encoding also recognizable by Emacs.

 Kind regards,
 Markus

--

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://groups.google.com/group/web2py?hl=en.




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 mdipie...@cs.depaul.edu wrote:

 Could you explain again what is does?

 On Dec 1, 1:48 am, Thadeus Burgess thade...@thadeusb.com 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 Burgess thade...@thadeusb.com
 wrote:
 
   Here ya go, hope this helps convince you to migrate from wordpress to
   web2py :)
 
   import, pass it an open file to the wordpress exported xml/rss. And get
   back a python dictionary with everything you should need :)
 
   Then it is only a matter of inserting the data into your database.
 
  http://static.thadeusb.com/wordpress2python.py
 
   Here is the dict structure returned by the function
 
   db {
   title
   link
   description
   pub_date
   language
   categories -
   name
   slug
   parent
   description (if available)
   tags -
   name
   slug
   posts -
   id
   title
   slug
   status
   type
   link
   pub_date
   description
   content
   post_date
   post_date_gmt
   categories - flat array
   tags - flat array
   comments -
   id
   author
   author_email
   author_url
   author_ip
   date
   date_gmt
   content
   approved
   }
 
   Cheers,
 
   -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.comweb2py%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.




--

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://groups.google.com/group/web2py?hl=en.




[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 gr...@delarue-berlin.de wrote:
  *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 it is really all about information
 density and this is still quite low on you page
 try to fit in more information on one page, go to a commercial or
 sucessfull open source web page (e.g.http://www.web2pyslices.com/)
 and you will find at least 5-10 main items of information on each
 page, right now i can see 3+1/2 plugin on the main page

 On Nov 30, 4:22 pm, Thadeus Burgess thade...@thadeusb.com wrote:

  *Value not in database errors. - Should have been fixed in trunk, not sure
  of a way around it except for just not using Validators all around.

  *Version Number - good idea.

  *Filename is expected to be web2py.plugin.*.w2p This is what you get when
  you pack the plug-in individually.

  *Code for comments - My bad, that actually comes from the python sample at
  gravatar.com, yay for editors auto-save :)

  -Thadeus

  On Mon, Nov 30, 2009 at 3:47 AM, selecta gr...@delarue-berlin.de wrote:
   in the cotroller plug

   i see
   0 Responses Comment RSS Feed
   # import code for encoding urls and generating md5 hashes import
   urllib, hashlib # Set your variables here email =
   some...@somewhere.com default = http://www.somewhere.com/
   homsar.jpg http://www.somewhere.com/%0Ahomsar.jpg size = 40 # construct
   the url gravatar_url = http://
  www.gravatar.com/avatar.php? gravatar_url += urllib.urlencode
   ({'gravatar_id':hashlib.md5(email).hexdigest(), 'default':default,
   'size':str(size)})

   looks like some commented code that should be hidden

   On Nov 30, 10:43 am, selecta gr...@delarue-berlin.de wrote:
thanks that was it
when I try to submit my plugin and I don't choose a category like
food I get
value not in database for each category
on Publish a new version
there is a field called Number: it's not clear what this is supposed
to mean I would call it version number instead
on uploading my improved tagging plugin i get enter valid filename
my filename is web2py.plugin.tagging.gz ... as chosen by the export
function?? why is it not valid?

On Nov 29, 8:56 pm, Thadeus Burgess thade...@thadeusb.com wrote:

 Make sure you are using username not emai

 -Thadeus

 On Sun, Nov 29, 2009 at 7:32 AM, selecta gr...@delarue-berlin.de
   wrote:
  nice design, i hope it will go online soon
  but i am having problems signing in, I registerd but after clicking
  the confimation link it jus says invalid login??
  I would also suggest that you add a licencse category, for the
   tagging
  part also i would suggest that you use my improved version of the
  tagging plugin for your tagging ;-)

  http://groups.google.com/group/web2py/browse_thread/thread/4f9dfc4e9c...

  On Nov 28, 8:57 pm, Thadeus Burgess thade...@thadeusb.com wrote:
   Hello everyone,

   Ok I am putting the finishing touches on our new web2py plugin
   hosting
  site.

   Could everyone take a look at it, let me know what you think, and
   reply
  to
   this thread for any comments or suggestions. I will not get a
   chance to
   update it until next weekend, but would love to start gathering a
   list of
   things that could be done better.

   You can start uploading some packed plug-ins to try the site out,
   however
  it
   is just running off the demo SQLITE database, which will be
   scrubbed when
   the site goes official.

   As a note, the plug-ins that are already in the database are test
   files,
  and
   do not actually contain anything.

  http://plugincentral.thadeusb.com/

   Hope you enjoy!

   Thanks,

   -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.comweb2py%2bunsubscr...@googlegroups.com
   web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.­com

  .
  For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.

   --

   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.comweb2py%2bunsubscr...@googlegroups.com
   .
   For more options, visit this group at
  

[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 scommes...@gmail.com wrote:
 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 thade...@thadeusb.com wrote:

  When I use the following in my routes.py

  routes_onerror = [
      ('*/*', '/init/default/index'),
  ]

  The process hits 100% cpu and freezes the machine, consumes ram, and spikes
  the local network.

  Infinite loop in there somewhere?

  -Thadeus

  On Mon, Nov 30, 2009 at 10:11 PM, Thadeus Burgess 
  thade...@thadeusb.comwrote:

   web2py/routes.example.py

   -Thadeus

   On Mon, Nov 30, 2009 at 8:26 AM, Simo scommes...@gmail.com wrote:

   where  (in with directory)  is that file ?

   On Mon, Nov 30, 2009 at 3:18 PM, mdipierro 
   mdipie...@cs.depaul.eduwrote:

   Read the file routes.example.py

   You can do what you need by renaming this file route.py and
   customizing routes_onerror.

   Massimo

   On Nov 30, 3:55 am, emmanu simo scommes...@gmail.com wrote:
If a user put a bad Url , I have an INVALID REQUEST/CONTROLLER
I want to  automaticly redirect that request to a home page or a last
page done.
how can I do it ?

   --

   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.comweb2py%2bunsubscr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/web2py?hl=en.

   --
   Emmanuel Simo

    --
   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.comweb2py%2bunsubscr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/web2py?hl=en.



--

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://groups.google.com/group/web2py?hl=en.




[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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.




[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 1506, in __init__
field.requires = sqlhtml_validators(field)
  File /Applications/cherokee.app/Contents/MacOS/web2py/gluon/
sql.py, line 467, in sqlhtml_validators
requires[-1]=validators.IS_EMPTY_OR(requires[-1])
IndexError: list index out of range

I have reverted to 1471 and all my models works again.
Some of my apps are a little bit older, should I rewrite the models?

proof=SQLDB(sqlite://proof.db)

proof.define_table('reference',
SQLField('name'),
SQLField('l', 'double'),
SQLField('a', 'double'),
SQLField('b', 'double'),
SQLField('opacity', 'integer', default=0),
SQLField('preview'))

proof.define_table('file',
SQLField('name', length=64),
SQLField('kind'),
SQLField('data','upload'))

proof.define_table('match',
SQLField('name'),
SQLField('press', proof.file),
SQLField('proof', proof.file),
SQLField('intent'),
SQLField('spotcolor', proof.file),
SQLField('optimize', proof.file),
SQLField('fmcal', proof.file),
SQLField('cal', proof.file),
SQLField('bump', proof.file),
SQLField('keep_black', 'boolean'),
SQLField('proofer'),
SQLField('pos', 'integer'))

proof.define_table('color',
SQLField('name'),
SQLField('reference', proof.reference),
SQLField('match', proof.match),
SQLField('c', 'integer', default=0),
SQLField('m', 'integer', default=0),
SQLField('y', 'integer', default=0),
SQLField('k', 'integer', default=0),
SQLField('opacity', 'integer', default=0),
SQLField('preview'))

proof.reference.name.requires  = [IS_NOT_EMPTY(Muss angeben
werden!), IS_NOT_IN_DB(proof, reference.name, Name bereits
vorhanden!)]
proof.reference.l.requires = IS_FLOAT_IN_RANGE(0,101,Muss imm
Bereich von 0-100 sein!)
proof.reference.a.requires = IS_FLOAT_IN_RANGE(-255,255,Muss imm
Bereich von -255 bis 255 sein!)
proof.reference.b.requires = IS_FLOAT_IN_RANGE(-255,255,Muss imm
Bereich von -255 bis 255 sein!)
proof.reference.opacity.requires = IS_INT_IN_RANGE(0,101,Muss imm
Bereich von 0-100 sein!)

proof.file.name.requires   = IS_NOT_EMPTY(Eine Datei muss
ausgewählt sein!)
proof.file.kind.requires   = IS_IN_SET((profile, cal, bump))

proof.match.press.requires = IS_IN_DB(proof(proof.file.kind ==
profile), file.id, %(name)s)
proof.match.proof.requires = IS_IN_DB(proof(proof.file.kind ==
profile), file.id, %(name)s)
proof.match.spotcolor.requires = IS_IN_DB(proof(proof.file.kind ==
profile), file.id, %(name)s)
proof.match.optimize.requires  = IS_NULL_OR(IS_IN_DB(proof
(proof.file.kind == profile), file.id, %(name)s))
proof.match.fmcal.requires = IS_IN_DB(proof(proof.file.kind ==
cal), file.id, %(name)s)
proof.match.cal.requires   = IS_IN_DB(proof(proof.file.kind ==
cal), file.id, %(name)s)
proof.match.bump.requires  = IS_IN_DB(proof(proof.file.kind ==
bump), file.id, %(name)s)
proof.match.intent.requires= IS_IN_SET((absolute, relative))
proof.match.proofer.requires   = IS_IN_SET((Epson9900, Epson9600))

proof.color.name.requires  = IS_NOT_EMPTY(Muss angeben werden!)
proof.color.reference.requires = IS_NULL_OR
(proof.color.reference.requires)
proof.color.match.requires = IS_IN_DB(proof, match.id, %(name)
s,orderby=proof.match.pos)
proof.color.c.requires = IS_INT_IN_RANGE(0,101,Muss im
Bereich von 0-100 sein!)
proof.color.m.requires = IS_INT_IN_RANGE(0,101,Muss im
Bereich von 0-100 sein!)
proof.color.y.requires = IS_INT_IN_RANGE(0,101,Muss im
Bereich von 0-100 sein!)
proof.color.k.requires = IS_INT_IN_RANGE(0,101,Muss im
Bereich von 0-100 sein!)
proof.color.opacity.requires   = IS_INT_IN_RANGE(0,101,Muss imm
Bereich von 0-100 sein!)

Martin

--

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 

[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 mdipie...@cs.depaul.edu 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 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://groups.google.com/group/web2py?hl=en.




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
the programmer to do this.

The idea was mainly strictly for migration.

You could use it for syncing, however wordpress export is a manual process
that exports all data each time.

I wouldn't use it for syncing since when you export from wordpress it
exports everything, that and you have to manually export the data.

It would be nice to use our new KeyedTables to create a wordpress
compatibility layer with the DAL, so that you can just pull the data
straight from the mysql tables...

-Thadeus




On Tue, Dec 1, 2009 at 8:57 AM, david bain pigeonfli...@gmail.com wrote:

 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 mdipie...@cs.depaul.edu wrote:

 Could you explain again what is does?

 On Dec 1, 1:48 am, Thadeus Burgess thade...@thadeusb.com 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 Burgess thade...@thadeusb.com
 wrote:
 
   Here ya go, hope this helps convince you to migrate from wordpress to
   web2py :)
 
   import, pass it an open file to the wordpress exported xml/rss. And
 get
   back a python dictionary with everything you should need :)
 
   Then it is only a matter of inserting the data into your database.
 
  http://static.thadeusb.com/wordpress2python.py
 
   Here is the dict structure returned by the function
 
   db {
   title
   link
   description
   pub_date
   language
   categories -
   name
   slug
   parent
   description (if available)
   tags -
   name
   slug
   posts -
   id
   title
   slug
   status
   type
   link
   pub_date
   description
   content
   post_date
   post_date_gmt
   categories - flat array
   tags - flat array
   comments -
   id
   author
   author_email
   author_url
   author_ip
   date
   date_gmt
   content
   approved
   }
 
   Cheers,
 
   -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.comweb2py%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.



  --
 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.comweb2py%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.


--

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://groups.google.com/group/web2py?hl=en.




[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 l...@reproflex.de 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, tablename, *fields)
   File /Applications/cherokee.app/Contents/MacOS/web2py/gluon/
 sql.py, line 1506, in __init__
     field.requires = sqlhtml_validators(field)
   File /Applications/cherokee.app/Contents/MacOS/web2py/gluon/
 sql.py, line 467, in sqlhtml_validators
     requires[-1]=validators.IS_EMPTY_OR(requires[-1])
 IndexError: list index out of range

 I have reverted to 1471 and all my models works again.
 Some of my apps are a little bit older, should I rewrite the models?

 proof=SQLDB(sqlite://proof.db)

 proof.define_table('reference',
                                 SQLField('name'),
                                 SQLField('l', 'double'),
                                 SQLField('a', 'double'),
                                 SQLField('b', 'double'),
                                 SQLField('opacity', 'integer', default=0),
                                 SQLField('preview'))

 proof.define_table('file',
                                 SQLField('name', length=64),
                                 SQLField('kind'),
                                 SQLField('data','upload'))

 proof.define_table('match',
                                 SQLField('name'),
                                 SQLField('press', proof.file),
                                 SQLField('proof', proof.file),
                                 SQLField('intent'),
                                 SQLField('spotcolor', proof.file),
                                 SQLField('optimize', proof.file),
                                 SQLField('fmcal', proof.file),
                                 SQLField('cal', proof.file),
                                 SQLField('bump', proof.file),
                                 SQLField('keep_black', 'boolean'),
                                 SQLField('proofer'),
                                 SQLField('pos', 'integer'))

 proof.define_table('color',
                                 SQLField('name'),
                                 SQLField('reference', proof.reference),
                                 SQLField('match', proof.match),
                                 SQLField('c', 'integer', default=0),
                                 SQLField('m', 'integer', default=0),
                                 SQLField('y', 'integer', default=0),
                                 SQLField('k', 'integer', default=0),
                                 SQLField('opacity', 'integer', default=0),
                                 SQLField('preview'))

 proof.reference.name.requires  = [IS_NOT_EMPTY(Muss angeben
 werden!), IS_NOT_IN_DB(proof, reference.name, Name bereits
 vorhanden!)]
 proof.reference.l.requires     = IS_FLOAT_IN_RANGE(0,101,Muss imm
 Bereich von 0-100 sein!)
 proof.reference.a.requires     = IS_FLOAT_IN_RANGE(-255,255,Muss imm
 Bereich von -255 bis 255 sein!)
 proof.reference.b.requires     = IS_FLOAT_IN_RANGE(-255,255,Muss imm
 Bereich von -255 bis 255 sein!)
 proof.reference.opacity.requires = IS_INT_IN_RANGE(0,101,Muss imm
 Bereich von 0-100 sein!)

 proof.file.name.requires       = IS_NOT_EMPTY(Eine Datei muss
 ausgewählt sein!)
 proof.file.kind.requires       = IS_IN_SET((profile, cal, bump))

 proof.match.press.requires     = IS_IN_DB(proof(proof.file.kind ==
 profile), file.id, %(name)s)
 proof.match.proof.requires     = IS_IN_DB(proof(proof.file.kind ==
 profile), file.id, %(name)s)
 proof.match.spotcolor.requires = IS_IN_DB(proof(proof.file.kind ==
 profile), file.id, %(name)s)
 proof.match.optimize.requires  = IS_NULL_OR(IS_IN_DB(proof
 (proof.file.kind == profile), file.id, %(name)s))
 proof.match.fmcal.requires     = IS_IN_DB(proof(proof.file.kind ==
 cal), file.id, %(name)s)
 proof.match.cal.requires       = IS_IN_DB(proof(proof.file.kind ==
 cal), file.id, %(name)s)
 proof.match.bump.requires      = IS_IN_DB(proof(proof.file.kind ==
 bump), file.id, %(name)s)
 proof.match.intent.requires    = IS_IN_SET((absolute, relative))
 proof.match.proofer.requires   = IS_IN_SET((Epson9900, Epson9600))

 proof.color.name.requires      = IS_NOT_EMPTY(Muss angeben werden!)
 proof.color.reference.requires = IS_NULL_OR
 (proof.color.reference.requires)
 proof.color.match.requires     = IS_IN_DB(proof, match.id, %(name)
 s,orderby=proof.match.pos)
 proof.color.c.requires         = IS_INT_IN_RANGE(0,101,Muss im
 Bereich von 0-100 sein!)
 proof.color.m.requires         = IS_INT_IN_RANGE(0,101,Muss im
 Bereich von 0-100 sein!)
 proof.color.y.requires         = IS_INT_IN_RANGE(0,101,Muss im
 Bereich von 0-100 sein!)
 proof.color.k.requires         = IS_INT_IN_RANGE(0,101,Muss im
 Bereich von 0-100 sein!)
 

[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 m.grit...@gmail.com wrote:
 On 1 Dez., 15:57, mdipierro mdipie...@cs.depaul.edu 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 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://groups.google.com/group/web2py?hl=en.




[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 thade...@thadeusb.com 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 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
 the programmer to do this.

 The idea was mainly strictly for migration.

 You could use it for syncing, however wordpress export is a manual process
 that exports all data each time.

 I wouldn't use it for syncing since when you export from wordpress it
 exports everything, that and you have to manually export the data.

 It would be nice to use our new KeyedTables to create a wordpress
 compatibility layer with the DAL, so that you can just pull the data
 straight from the mysql tables...

 -Thadeus

 On Tue, Dec 1, 2009 at 8:57 AM, david bain pigeonfli...@gmail.com wrote:
  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 mdipie...@cs.depaul.edu wrote:

  Could you explain again what is does?

  On Dec 1, 1:48 am, Thadeus Burgess thade...@thadeusb.com 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 Burgess thade...@thadeusb.com
  wrote:

Here ya go, hope this helps convince you to migrate from wordpress to
web2py :)

import, pass it an open file to the wordpress exported xml/rss. And
  get
back a python dictionary with everything you should need :)

Then it is only a matter of inserting the data into your database.

   http://static.thadeusb.com/wordpress2python.py

Here is the dict structure returned by the function

    db {
        title
        link
        description
        pub_date
        language
        categories -
            name
            slug
            parent
            description (if available)
        tags -
            name
            slug
        posts -
            id
            title
            slug
            status
            type
            link
            pub_date
            description
            content
            post_date
            post_date_gmt
            categories - flat array
            tags - flat array
            comments -
                id
                author
                author_email
                author_url
                author_ip
                date
                date_gmt
                content
                approved
    }

Cheers,

-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.comweb2py%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.

   --
  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.comweb2py%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.

--

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://groups.google.com/group/web2py?hl=en.




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 mimetype returned (which is a .gz file) and
renaming it. This would be a bug :)

Agreed, search needs to be refined to display more results.

-Thadeus




On Tue, Dec 1, 2009 at 8:58 AM, mdipierro mdipie...@cs.depaul.edu wrote:

 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 gr...@delarue-berlin.de wrote:
   *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 it is really all about information
  density and this is still quite low on you page
  try to fit in more information on one page, go to a commercial or
  sucessfull open source web page (e.g.http://www.web2pyslices.com/)
  and you will find at least 5-10 main items of information on each
  page, right now i can see 3+1/2 plugin on the main page
 
  On Nov 30, 4:22 pm, Thadeus Burgess thade...@thadeusb.com wrote:
 
   *Value not in database errors. - Should have been fixed in trunk, not
 sure
   of a way around it except for just not using Validators all around.
 
   *Version Number - good idea.
 
   *Filename is expected to be web2py.plugin.*.w2p This is what you get
 when
   you pack the plug-in individually.
 
   *Code for comments - My bad, that actually comes from the python
 sample at
   gravatar.com, yay for editors auto-save :)
 
   -Thadeus
 
   On Mon, Nov 30, 2009 at 3:47 AM, selecta gr...@delarue-berlin.de
 wrote:
in the cotroller plug
 
i see
0 Responses Comment RSS Feed
# import code for encoding urls and generating md5 hashes import
urllib, hashlib # Set your variables here email =
some...@somewhere.com default = http://www.somewhere.com/
homsar.jpg http://www.somewhere.com/%0Ahomsar.jpg size = 40 #
 construct
the url gravatar_url = http://
   www.gravatar.com/avatar.php? gravatar_url += urllib.urlencode
({'gravatar_id':hashlib.md5(email).hexdigest(), 'default':default,
'size':str(size)})
 
looks like some commented code that should be hidden
 
On Nov 30, 10:43 am, selecta gr...@delarue-berlin.de wrote:
 thanks that was it
 when I try to submit my plugin and I don't choose a category like
 food I get
 value not in database for each category
 on Publish a new version
 there is a field called Number: it's not clear what this is
 supposed
 to mean I would call it version number instead
 on uploading my improved tagging plugin i get enter valid
 filename
 my filename is web2py.plugin.tagging.gz ... as chosen by the export
 function?? why is it not valid?
 
 On Nov 29, 8:56 pm, Thadeus Burgess thade...@thadeusb.com wrote:
 
  Make sure you are using username not emai
 
  -Thadeus
 
  On Sun, Nov 29, 2009 at 7:32 AM, selecta 
 gr...@delarue-berlin.de
wrote:
   nice design, i hope it will go online soon
   but i am having problems signing in, I registerd but after
 clicking
   the confimation link it jus says invalid login??
   I would also suggest that you add a licencse category, for the
tagging
   part also i would suggest that you use my improved version of
 the
   tagging plugin for your tagging ;-)
 
   
 http://groups.google.com/group/web2py/browse_thread/thread/4f9dfc4e9c...
 
   On Nov 28, 8:57 pm, Thadeus Burgess thade...@thadeusb.com
 wrote:
Hello everyone,
 
Ok I am putting the finishing touches on our new web2py
 plugin
hosting
   site.
 
Could everyone take a look at it, let me know what you think,
 and
reply
   to
this thread for any comments or suggestions. I will not get a
chance to
update it until next weekend, but would love to start
 gathering a
list of
things that could be done better.
 
You can start uploading some packed plug-ins to try the site
 out,
however
   it
is just running off the demo SQLITE database, which will be
scrubbed when
the site goes official.
 
As a note, the plug-ins that are already in the database are
 test
files,
   and
do not actually contain anything.
 
   http://plugincentral.thadeusb.com/
 
Hope you enjoy!
 
Thanks,
 
-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 

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 mdipie...@cs.depaul.edu 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 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://groups.google.com/group/web2py?hl=en.




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 mdipie...@cs.depaul.edu wrote:

 '/samali/*'

 is not a valid regex. Try

 routes_onerror = [
('/samali.*', '/samali/default/index'),
 ]



 On Dec 1, 3:32 am, emmanu simo scommes...@gmail.com wrote:
  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 thade...@thadeusb.com wrote:
 
   When I use the following in my routes.py
 
   routes_onerror = [
   ('*/*', '/init/default/index'),
   ]
 
   The process hits 100% cpu and freezes the machine, consumes ram, and
 spikes
   the local network.
 
   Infinite loop in there somewhere?
 
   -Thadeus
 
   On Mon, Nov 30, 2009 at 10:11 PM, Thadeus Burgess 
 thade...@thadeusb.comwrote:
 
web2py/routes.example.py
 
-Thadeus
 
On Mon, Nov 30, 2009 at 8:26 AM, Simo scommes...@gmail.com wrote:
 
where  (in with directory)  is that file ?
 
On Mon, Nov 30, 2009 at 3:18 PM, mdipierro mdipie...@cs.depaul.edu
 wrote:
 
Read the file routes.example.py
 
You can do what you need by renaming this file route.py and
customizing routes_onerror.
 
Massimo
 
On Nov 30, 3:55 am, emmanu simo scommes...@gmail.com wrote:
 If a user put a bad Url , I have an INVALID REQUEST/CONTROLLER
 I want to  automaticly redirect that request to a home page or a
 last
 page done.
 how can I do it ?
 
--
 
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.comweb2py%2bunsubscr...@googlegroups.com
 web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com
 
.
For more options, visit this group at
   http://groups.google.com/group/web2py?hl=en.
 
--
Emmanuel Simo
 
 --
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.comweb2py%2bunsubscr...@googlegroups.com
 web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com
 
.
For more options, visit this group at
   http://groups.google.com/group/web2py?hl=en.
 
 

 --

 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.comweb2py%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.




--

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://groups.google.com/group/web2py?hl=en.




[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 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://groups.google.com/group/web2py?hl=en.




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 denes1...@yahoo.ca wrote:

 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 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.comweb2py%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.




--

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://groups.google.com/group/web2py?hl=en.




[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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.




[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 thade...@thadeusb.com wrote:
 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 denes1...@yahoo.ca wrote:
  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 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.comweb2py%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.



--

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://groups.google.com/group/web2py?hl=en.




[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? grin
---
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 this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.




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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.




[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-
translations.

Please let us know,  if you ever get it working.  Thanks.


On Nov 23, 9:53 pm, Thadeus Burgess thade...@thadeusb.com wrote:
 I am doing a case study on determining the viability for integrating google
 translate into web2py.

 I would like any input or ideas from the community, currently my line of
 thinking is to have a controller that will post queries to googles translate
 form, and then place the results in the languages/...py files.

 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 to your site, would they appreciate
 it or hate it?

 http://translate.google.com/translate_tools

 -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.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.




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 mdipie...@cs.depaul.edu 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 www-data directory at my user home directory and copied the web2py 
directory there. Chmod the direcotory do that the apache user is able to read 
and write to it. 

The current 01_web2py_vhost.conf is as follows:

#virtual host
LoadModule wsgi_module modules/mod_wsgi.so
NameVirtualHost *:80
VirtualHost *:80
  ServerName web2py.localhost
··
  WSGIDaemonProcess web2py user=apache group=apache display-name=%{GROUP} 
processes=5 maximum-requests=1000
  WSGIProcessGroup web2py
  WSGIScriptAlias / /home/oguz/www-data/web2py/wsgihandler.py
··
 # DocumentRoot /var/www/localhost/htdocs/web2py/applications

  Directory /home/oguz/www-data/web2py
AllowOverride None
Order Allow,Deny
Deny from all
Files wsgihandler.py
  Allow from all
/Files
  /Directory

  AliasMatch ^/([^/]+)/static/(.*) \
   /home/www-data/web2py/applications/$1/static/$2
  Directory /home/oguz/www-data/web2py/applications/*/static/
Order Allow,Deny
Allow from all
  /Directory

  Location /admin
  Deny from all
  /Location

  LocationMatch ^/([^/]+)/appadmin
  Deny from all
  /LocationMatch

  CustomLog /var/log/apache2/access.log common
  ErrorLog /var/log/apache2/error.log
/VirtualHost

When i try to reach the http://web2py.localhost/test/default/images url below 
is the error.log message:
[Tue Dec 01 20:36:02 2009] [error] [client 127.0.1.1] File does not exist: 
/home/oguz/www-data/web2py/wsgihandler.py/test/default/images

so it seems i have a problem with apache configuration. But i don't know what 
it is.

I can see that web2py processes are created during the apache start up:

$ ps aux | grep web2py
oguz  2867  0.0  0.2  10508  4332 pts/0S+   18:18   0:00 vim 
setup-web2py.sh
root  3158  0.0  0.1  10436  3896 pts/2S+   18:54   0:00 vim 
vhosts.d/01_web2py_vhost.conf
apache4356  0.0  0.3 168444  6476 ?Sl   20:07   0:00 (wsgi:web2py)  
   -d /usr/lib/apache2/ -f /etc/apache2/httpd.conf -D DEFAULT_VHOST -D USERDIR 
-D PYTHON -D PHP5 -k start
apache4370  0.0  0.3 168444  6468 ?Sl   20:07   0:00 (wsgi:web2py)  
   -d /usr/lib/apache2/ -f /etc/apache2/httpd.conf -D DEFAULT_VHOST -D USERDIR 
-D PYTHON -D PHP5 -k start
apache4392  0.0  0.3 168444  6468 ?Sl   20:07   0:00 (wsgi:web2py)  
   -d /usr/lib/apache2/ -f /etc/apache2/httpd.conf -D DEFAULT_VHOST -D USERDIR 
-D PYTHON -D PHP5 -k start
apache4410  0.0  0.3 168444  6468 ?Sl   20:07   0:00 (wsgi:web2py)  
   -d /usr/lib/apache2/ -f /etc/apache2/httpd.conf -D DEFAULT_VHOST -D USERDIR 
-D PYTHON -D PHP5 -k start
apache4428  0.0  0.3 168444  6468 ?Sl   20:07   0:00 (wsgi:web2py)  
   -d /usr/lib/apache2/ -f /etc/apache2/httpd.conf -D DEFAULT_VHOST -D USERDIR 
-D PYTHON -D PHP5 -k start
apache4747  0.0  1.0 146648 20928 pts/3Sl   20:11   0:00 python2.5 
web2py.py -i 127.0.1.1 -p 8123 -a ozyyarim12
oguz  5014  0.0  0.0   3264   844 pts/5S+   20:37   0:00 grep --color 
web2py

--

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://groups.google.com/group/web2py?hl=en.




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 oguzyarimt...@gmail.comwrote:

 On Tue, 1 Dec 2009 07:01:31 -0800 (PST)
 mdipierro mdipie...@cs.depaul.edu 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 www-data directory at my user home directory and copied the
 web2py directory there. Chmod the direcotory do that the apache user is able
 to read and write to it.

 The current 01_web2py_vhost.conf is as follows:

 #virtual host
 LoadModule wsgi_module modules/mod_wsgi.so
 NameVirtualHost *:80
 VirtualHost *:80
  ServerName web2py.localhost
 ··
   WSGIDaemonProcess web2py user=apache group=apache display-name=%{GROUP}
 processes=5 maximum-requests=1000
   WSGIProcessGroup web2py
  WSGIScriptAlias / /home/oguz/www-data/web2py/wsgihandler.py
 ··
  # DocumentRoot /var/www/localhost/htdocs/web2py/applications

  Directory /home/oguz/www-data/web2py
AllowOverride None
Order Allow,Deny
Deny from all
Files wsgihandler.py
  Allow from all
/Files
  /Directory

  AliasMatch ^/([^/]+)/static/(.*) \
   /home/www-data/web2py/applications/$1/static/$2
  Directory /home/oguz/www-data/web2py/applications/*/static/
 Order Allow,Deny
Allow from all
   /Directory

  Location /admin
  Deny from all
  /Location

   LocationMatch ^/([^/]+)/appadmin
  Deny from all
  /LocationMatch

  CustomLog /var/log/apache2/access.log common
  ErrorLog /var/log/apache2/error.log
 /VirtualHost

 When i try to reach the http://web2py.localhost/test/default/images url
 below is the error.log message:
 [Tue Dec 01 20:36:02 2009] [error] [client 127.0.1.1] File does not exist:
 /home/oguz/www-data/web2py/wsgihandler.py/test/default/images

 so it seems i have a problem with apache configuration. But i don't know
 what it is.

 I can see that web2py processes are created during the apache start up:

 $ ps aux | grep web2py
 oguz  2867  0.0  0.2  10508  4332 pts/0S+   18:18   0:00 vim
 setup-web2py.sh
 root  3158  0.0  0.1  10436  3896 pts/2S+   18:54   0:00 vim
 vhosts.d/01_web2py_vhost.conf
 apache4356  0.0  0.3 168444  6476 ?Sl   20:07   0:00
 (wsgi:web2py) -d /usr/lib/apache2/ -f /etc/apache2/httpd.conf -D
 DEFAULT_VHOST -D USERDIR -D PYTHON -D PHP5 -k start
 apache4370  0.0  0.3 168444  6468 ?Sl   20:07   0:00
 (wsgi:web2py) -d /usr/lib/apache2/ -f /etc/apache2/httpd.conf -D
 DEFAULT_VHOST -D USERDIR -D PYTHON -D PHP5 -k start
 apache4392  0.0  0.3 168444  6468 ?Sl   20:07   0:00
 (wsgi:web2py) -d /usr/lib/apache2/ -f /etc/apache2/httpd.conf -D
 DEFAULT_VHOST -D USERDIR -D PYTHON -D PHP5 -k start
 apache4410  0.0  0.3 168444  6468 ?Sl   20:07   0:00
 (wsgi:web2py) -d /usr/lib/apache2/ -f /etc/apache2/httpd.conf -D
 DEFAULT_VHOST -D USERDIR -D PYTHON -D PHP5 -k start
 apache4428  0.0  0.3 168444  6468 ?Sl   20:07   0:00
 (wsgi:web2py) -d /usr/lib/apache2/ -f /etc/apache2/httpd.conf -D
 DEFAULT_VHOST -D USERDIR -D PYTHON -D PHP5 -k start
 apache4747  0.0  1.0 146648 20928 pts/3Sl   20:11   0:00 python2.5
 web2py.py -i 127.0.1.1 -p 8123 -a ozyyarim12
 oguz  5014  0.0  0.0   3264   844 pts/5S+   20:37   0:00 grep
 --color web2py

 --

 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.comweb2py%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.




--

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://groups.google.com/group/web2py?hl=en.




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 thade...@thadeusb.comwrote:

 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 
 oguzyarimt...@gmail.comwrote:

 On Tue, 1 Dec 2009 07:01:31 -0800 (PST)
 mdipierro mdipie...@cs.depaul.edu 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 www-data directory at my user home directory and copied the
 web2py directory there. Chmod the direcotory do that the apache user is able
 to read and write to it.

 The current 01_web2py_vhost.conf is as follows:

 #virtual host
 LoadModule wsgi_module modules/mod_wsgi.so
 NameVirtualHost *:80
 VirtualHost *:80
  ServerName web2py.localhost
 ··
   WSGIDaemonProcess web2py user=apache group=apache display-name=%{GROUP}
 processes=5 maximum-requests=1000
   WSGIProcessGroup web2py
  WSGIScriptAlias / /home/oguz/www-data/web2py/wsgihandler.py
 ··
  # DocumentRoot /var/www/localhost/htdocs/web2py/applications

  Directory /home/oguz/www-data/web2py
AllowOverride None
Order Allow,Deny
Deny from all
Files wsgihandler.py
  Allow from all
/Files
  /Directory

  AliasMatch ^/([^/]+)/static/(.*) \
   /home/www-data/web2py/applications/$1/static/$2
  Directory /home/oguz/www-data/web2py/applications/*/static/
 Order Allow,Deny
Allow from all
   /Directory

  Location /admin
  Deny from all
  /Location

   LocationMatch ^/([^/]+)/appadmin
  Deny from all
  /LocationMatch

  CustomLog /var/log/apache2/access.log common
  ErrorLog /var/log/apache2/error.log
 /VirtualHost

 When i try to reach the http://web2py.localhost/test/default/images url
 below is the error.log message:
 [Tue Dec 01 20:36:02 2009] [error] [client 127.0.1.1] File does not exist:
 /home/oguz/www-data/web2py/wsgihandler.py/test/default/images

 so it seems i have a problem with apache configuration. But i don't know
 what it is.

 I can see that web2py processes are created during the apache start up:

 $ ps aux | grep web2py
 oguz  2867  0.0  0.2  10508  4332 pts/0S+   18:18   0:00 vim
 setup-web2py.sh
 root  3158  0.0  0.1  10436  3896 pts/2S+   18:54   0:00 vim
 vhosts.d/01_web2py_vhost.conf
 apache4356  0.0  0.3 168444  6476 ?Sl   20:07   0:00
 (wsgi:web2py) -d /usr/lib/apache2/ -f /etc/apache2/httpd.conf -D
 DEFAULT_VHOST -D USERDIR -D PYTHON -D PHP5 -k start
 apache4370  0.0  0.3 168444  6468 ?Sl   20:07   0:00
 (wsgi:web2py) -d /usr/lib/apache2/ -f /etc/apache2/httpd.conf -D
 DEFAULT_VHOST -D USERDIR -D PYTHON -D PHP5 -k start
 apache4392  0.0  0.3 168444  6468 ?Sl   20:07   0:00
 (wsgi:web2py) -d /usr/lib/apache2/ -f /etc/apache2/httpd.conf -D
 DEFAULT_VHOST -D USERDIR -D PYTHON -D PHP5 -k start
 apache4410  0.0  0.3 168444  6468 ?Sl   20:07   0:00
 (wsgi:web2py) -d /usr/lib/apache2/ -f /etc/apache2/httpd.conf -D
 DEFAULT_VHOST -D USERDIR -D PYTHON -D PHP5 -k start
 apache4428  0.0  0.3 168444  6468 ?Sl   20:07   0:00
 (wsgi:web2py) -d /usr/lib/apache2/ -f /etc/apache2/httpd.conf -D
 DEFAULT_VHOST -D USERDIR -D PYTHON -D PHP5 -k start
 apache4747  0.0  1.0 146648 20928 pts/3Sl   20:11   0:00 python2.5
 web2py.py -i 127.0.1.1 -p 8123 -a ozyyarim12
 oguz  5014  0.0  0.0   3264   844 pts/5S+   20:37   0:00 grep
 --color web2py

 --

 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.comweb2py%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.





--

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://groups.google.com/group/web2py?hl=en.




[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.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.




[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:08 pm, villas villa...@gmail.com wrote:
 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.

--

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://groups.google.com/group/web2py?hl=en.




[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, 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://groups.google.com/group/web2py?hl=en.




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 nat...@freezable.com wrote:

 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, send email to web...@googlegroups.com.
 To unsubscribe from this group, send email to
 web2py+unsubscr...@googlegroups.comweb2py%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.




--

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://groups.google.com/group/web2py?hl=en.




[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, in restricted

exec ccode in environment

  File C:/web2py/applications/tpa/models/db.py, line 19, in module

Field('password', 'string', length=32),

  File C:\web2py\gluon\sql.py, line 1205, in define_table

query = t._create(migrate=migrate, fake_migrate=fake_migrate)

  File C:\web2py\gluon\sql.py, line 1607, in _create

self._db._execute(query)

  File C:\web2py\gluon\sql.py, line 879, in lambda

self._execute = lambda *a, **b: self._cursor.execute(*a, **b)

  File c:\python26\lib\site-packages\MySQLdb\cursors.py, line 166,
in execute

self.errorhandler(self, exc, value)

  File c:\python26\lib\site-packages\MySQLdb\connections.py, line
35, in defaulterrorhandler

raise errorclass, errorvalue

ProgrammingError: (1064, You have an error in your SQL syntax; check
the manual that corresponds to your MySQL server version for the right
syntax to use near 'VARCHAR(16),\n\tcms_url VARCHAR(255),\n\tagency
VARCHAR(32),\n\tuser VARCHAR(32),\n\tpas' at line 4)


In file: C:\web2py\applications\tpa/models/db.py


# coding: utf8



  import datetime



  #db = DAL('sqlite://storage.sqlite')   # if not, use SQLite or
other DB

  db=DAL('mysql://tpa:123...@localhost/tpa', pool_size=10)

  ## if no need for session

# session.forget()



  from gluon.tools import Service

service=Service(globals())   # for json, xml, jsonrpc,
xmlrpc, amfrpc



  db.define_table('jurisdictions',

Field('name', 'string', length=32),

Field('key', 'string', length=16),

Field('cms_url', 'string', length=255),

Field('agency', 'string', length=32),

Field('user', 'string', length=32),

Field('password', 'string', length=32),

)

--

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://groups.google.com/group/web2py?hl=en.




[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 thade...@thadeusb.com 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, mdipierro mdipie...@cs.depaul.edu wrote:
  '/samali/*'

  is not a valid regex. Try

  routes_onerror = [
     ('/samali.*', '/samali/default/index'),
  ]

  On Dec 1, 3:32 am, emmanu simo scommes...@gmail.com wrote:
   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 thade...@thadeusb.com wrote:

When I use the following in my routes.py

routes_onerror = [
    ('*/*', '/init/default/index'),
]

The process hits 100% cpu and freezes the machine, consumes ram, and
  spikes
the local network.

Infinite loop in there somewhere?

-Thadeus

On Mon, Nov 30, 2009 at 10:11 PM, Thadeus Burgess 
  thade...@thadeusb.comwrote:

 web2py/routes.example.py

 -Thadeus

 On Mon, Nov 30, 2009 at 8:26 AM, Simo scommes...@gmail.com wrote:

 where  (in with directory)  is that file ?

 On Mon, Nov 30, 2009 at 3:18 PM, mdipierro mdipie...@cs.depaul.edu
  wrote:

 Read the file routes.example.py

 You can do what you need by renaming this file route.py and
 customizing routes_onerror.

 Massimo

 On Nov 30, 3:55 am, emmanu simo scommes...@gmail.com wrote:
  If a user put a bad Url , I have an INVALID REQUEST/CONTROLLER
  I want to  automaticly redirect that request to a home page or a
  last
  page done.
  how can I do it ?

 --

 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.comweb2py%2bunsubscr...@googlegroups.com
  web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com

 .
 For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.

 --
 Emmanuel Simo

  --
 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.comweb2py%2bunsubscr...@googlegroups.com
  web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com

 .
 For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.

  --

  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.comweb2py%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.

--

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://groups.google.com/group/web2py?hl=en.




[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 villa...@gmail.com 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,  but at least it would be a head start. Especially where
 someone knows enough of a language to spot any serious mis-
 translations.

 Please let us know,  if you ever get it working.  Thanks.

 On Nov 23, 9:53 pm, Thadeus Burgess thade...@thadeusb.com wrote:

  I am doing a case study on determining the viability for integrating google
  translate into web2py.

  I would like any input or ideas from the community, currently my line of
  thinking is to have a controller that will post queries to googles translate
  form, and then place the results in the languages/...py files.

  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 to your site, would they appreciate
  it or hate it?

 http://translate.google.com/translate_tools

  -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.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.




[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 ser...@zarealye.com 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' - notice \n\t !

 Error traceback

 Traceback (most recent call last):

   File C:\web2py\gluon\restricted.py, line 184, in restricted

     exec ccode in environment

   File C:/web2py/applications/tpa/models/db.py, line 19, in module

     Field('password', 'string', length=32),

   File C:\web2py\gluon\sql.py, line 1205, in define_table

     query = t._create(migrate=migrate, fake_migrate=fake_migrate)

   File C:\web2py\gluon\sql.py, line 1607, in _create

     self._db._execute(query)

   File C:\web2py\gluon\sql.py, line 879, in lambda

     self._execute = lambda *a, **b: self._cursor.execute(*a, **b)

   File c:\python26\lib\site-packages\MySQLdb\cursors.py, line 166,
 in execute

     self.errorhandler(self, exc, value)

   File c:\python26\lib\site-packages\MySQLdb\connections.py, line
 35, in defaulterrorhandler

     raise errorclass, errorvalue

 ProgrammingError: (1064, You have an error in your SQL syntax; check
 the manual that corresponds to your MySQL server version for the right
 syntax to use near 'VARCHAR(16),\n\tcms_url VARCHAR(255),\n\tagency
 VARCHAR(32),\n\tuser VARCHAR(32),\n\tpas' at line 4)

 In file: C:\web2py\applications\tpa/models/db.py

 # coding: utf8

   import datetime

   #db = DAL('sqlite://storage.sqlite')       # if not, use SQLite or
 other DB

   db=DAL('mysql://tpa:123...@localhost/tpa', pool_size=10)

   ## if no need for session

 # session.forget()

   from gluon.tools import Service

 service=Service(globals())                   # for json, xml, jsonrpc,
 xmlrpc, amfrpc

   db.define_table('jurisdictions',

     Field('name', 'string', length=32),

     Field('key', 'string', length=16),

     Field('cms_url', 'string', length=255),

     Field('agency', 'string', length=32),

     Field('user', 'string', length=32),

     Field('password', 'string', length=32),

     )

--

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://groups.google.com/group/web2py?hl=en.




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 mdipie...@cs.depaul.edu wrote:

 routes_onerror has a different syntax tha routes_in/out, it is not
 regex

 On Dec 1, 10:59 am, Thadeus Burgess thade...@thadeusb.com 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, mdipierro mdipie...@cs.depaul.edu
 wrote:
   '/samali/*'
 
   is not a valid regex. Try
 
   routes_onerror = [
  ('/samali.*', '/samali/default/index'),
   ]
 
   On Dec 1, 3:32 am, emmanu simo scommes...@gmail.com wrote:
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 thade...@thadeusb.com wrote:
 
 When I use the following in my routes.py
 
 routes_onerror = [
 ('*/*', '/init/default/index'),
 ]
 
 The process hits 100% cpu and freezes the machine, consumes ram,
 and
   spikes
 the local network.
 
 Infinite loop in there somewhere?
 
 -Thadeus
 
 On Mon, Nov 30, 2009 at 10:11 PM, Thadeus Burgess 
   thade...@thadeusb.comwrote:
 
  web2py/routes.example.py
 
  -Thadeus
 
  On Mon, Nov 30, 2009 at 8:26 AM, Simo scommes...@gmail.com
 wrote:
 
  where  (in with directory)  is that file ?
 
  On Mon, Nov 30, 2009 at 3:18 PM, mdipierro 
 mdipie...@cs.depaul.edu
   wrote:
 
  Read the file routes.example.py
 
  You can do what you need by renaming this file route.py and
  customizing routes_onerror.
 
  Massimo
 
  On Nov 30, 3:55 am, emmanu simo scommes...@gmail.com wrote:
   If a user put a bad Url , I have an INVALID
 REQUEST/CONTROLLER
   I want to  automaticly redirect that request to a home page
 or a
   last
   page done.
   how can I do it ?
 
  --
 
  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.comweb2py%2bunsubscr...@googlegroups.com
 web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com
 
   web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com
 web2py%252bunsubscr...@googlegroups.comweb2py%25252bunsubscr...@googlegroups.com
 
 
  .
  For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.
 
  --
  Emmanuel Simo
 
   --
  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.comweb2py%2bunsubscr...@googlegroups.com
 web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com
 
   web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com
 web2py%252bunsubscr...@googlegroups.comweb2py%25252bunsubscr...@googlegroups.com
 
 
  .
  For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.
 
   --
 
   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.comweb2py%2bunsubscr...@googlegroups.com
 web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/web2py?hl=en.

 --

 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.comweb2py%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.




--

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://groups.google.com/group/web2py?hl=en.




[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 to increment the value in x for a set of records.

Would db(db.tabela.id0).update(x='x+10') work on GAE ?

--

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://groups.google.com/group/web2py?hl=en.




[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 thade...@thadeusb.com wrote:
 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 mimetype returned (which is a .gz file) and
 renaming it. This would be a bug :)

 Agreed, search needs to be refined to display more results.

 -Thadeus



 On Tue, Dec 1, 2009 at 8:58 AM, mdipierro mdipie...@cs.depaul.edu wrote:
  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 gr...@delarue-berlin.de wrote:
*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 it is really all about information
   density and this is still quite low on you page
   try to fit in more information on one page, go to a commercial or
   sucessfull open source web page (e.g.http://www.web2pyslices.com/)
   and you will find at least 5-10 main items of information on each
   page, right now i can see 3+1/2 plugin on the main page

   On Nov 30, 4:22 pm, Thadeus Burgess thade...@thadeusb.com wrote:

*Value not in database errors. - Should have been fixed in trunk, not
  sure
of a way around it except for just not using Validators all around.

*Version Number - good idea.

*Filename is expected to be web2py.plugin.*.w2p This is what you get
  when
you pack the plug-in individually.

*Code for comments - My bad, that actually comes from the python
  sample at
gravatar.com, yay for editors auto-save :)

-Thadeus

On Mon, Nov 30, 2009 at 3:47 AM, selecta gr...@delarue-berlin.de
  wrote:
 in the cotroller plug

 i see
 0 Responses Comment RSS Feed
 # import code for encoding urls and generating md5 hashes import
 urllib, hashlib # Set your variables here email =
 some...@somewhere.com default = http://www.somewhere.com/
 homsar.jpg http://www.somewhere.com/%0Ahomsar.jpg size = 40 #
  construct
 the url gravatar_url = http://
www.gravatar.com/avatar.php? gravatar_url += urllib.urlencode
 ({'gravatar_id':hashlib.md5(email).hexdigest(), 'default':default,
 'size':str(size)})

 looks like some commented code that should be hidden

 On Nov 30, 10:43 am, selecta gr...@delarue-berlin.de wrote:
  thanks that was it
  when I try to submit my plugin and I don't choose a category like
  food I get
  value not in database for each category
  on Publish a new version
  there is a field called Number: it's not clear what this is
  supposed
  to mean I would call it version number instead
  on uploading my improved tagging plugin i get enter valid
  filename
  my filename is web2py.plugin.tagging.gz ... as chosen by the export
  function?? why is it not valid?

  On Nov 29, 8:56 pm, Thadeus Burgess thade...@thadeusb.com wrote:

   Make sure you are using username not emai

   -Thadeus

   On Sun, Nov 29, 2009 at 7:32 AM, selecta 
  gr...@delarue-berlin.de
 wrote:
nice design, i hope it will go online soon
but i am having problems signing in, I registerd but after
  clicking
the confimation link it jus says invalid login??
I would also suggest that you add a licencse category, for the
 tagging
part also i would suggest that you use my improved version of
  the
tagging plugin for your tagging ;-)

 http://groups.google.com/group/web2py/browse_thread/thread/4f9dfc4e9c...

On Nov 28, 8:57 pm, Thadeus Burgess thade...@thadeusb.com
  wrote:
 Hello everyone,

 Ok I am putting the finishing touches on our new web2py
  plugin
 hosting
site.

 Could everyone take a look at it, let me know what you think,
  and
 reply
to
 this thread for any comments or suggestions. I will not get a
 chance to
 update it until next weekend, but would love to start
  gathering a
 list of
 things that could be done better.

 You can start uploading some packed plug-ins to try the site
  out,
 however
it
 is just running off the demo SQLITE database, which will be
 scrubbed when
 the site goes official.

 As a note, the plug-ins that are already in the database are
  test
 files,
and
 do not actually contain anything.

http://plugincentral.thadeusb.com/

 Hope 

[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 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://groups.google.com/group/web2py?hl=en.




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 gr...@delarue-berlin.de 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 thade...@thadeusb.com wrote:
  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 mimetype returned (which is a .gz file)
 and
  renaming it. This would be a bug :)
 
  Agreed, search needs to be refined to display more results.
 
  -Thadeus
 
 
 
  On Tue, Dec 1, 2009 at 8:58 AM, mdipierro mdipie...@cs.depaul.edu
 wrote:
   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 gr...@delarue-berlin.de wrote:
 *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 it is really all about information
density and this is still quite low on you page
try to fit in more information on one page, go to a commercial or
sucessfull open source web page (e.g.http://www.web2pyslices.com/)
and you will find at least 5-10 main items of information on each
page, right now i can see 3+1/2 plugin on the main page
 
On Nov 30, 4:22 pm, Thadeus Burgess thade...@thadeusb.com wrote:
 
 *Value not in database errors. - Should have been fixed in trunk,
 not
   sure
 of a way around it except for just not using Validators all around.
 
 *Version Number - good idea.
 
 *Filename is expected to be web2py.plugin.*.w2p This is what you
 get
   when
 you pack the plug-in individually.
 
 *Code for comments - My bad, that actually comes from the python
   sample at
 gravatar.com, yay for editors auto-save :)
 
 -Thadeus
 
 On Mon, Nov 30, 2009 at 3:47 AM, selecta gr...@delarue-berlin.de
   wrote:
  in the cotroller plug
 
  i see
  0 Responses Comment RSS Feed
  # import code for encoding urls and generating md5 hashes import
  urllib, hashlib # Set your variables here email =
  some...@somewhere.com default = http://www.somewhere.com/
  homsar.jpg http://www.somewhere.com/%0Ahomsar.jpg size = 40 #
   construct
  the url gravatar_url = http://
 www.gravatar.com/avatar.php? gravatar_url += urllib.urlencode
  ({'gravatar_id':hashlib.md5(email).hexdigest(),
 'default':default,
  'size':str(size)})
 
  looks like some commented code that should be hidden
 
  On Nov 30, 10:43 am, selecta gr...@delarue-berlin.de wrote:
   thanks that was it
   when I try to submit my plugin and I don't choose a category
 like
   food I get
   value not in database for each category
   on Publish a new version
   there is a field called Number: it's not clear what this is
   supposed
   to mean I would call it version number instead
   on uploading my improved tagging plugin i get enter valid
   filename
   my filename is web2py.plugin.tagging.gz ... as chosen by the
 export
   function?? why is it not valid?
 
   On Nov 29, 8:56 pm, Thadeus Burgess thade...@thadeusb.com
 wrote:
 
Make sure you are using username not emai
 
-Thadeus
 
On Sun, Nov 29, 2009 at 7:32 AM, selecta 
   gr...@delarue-berlin.de
  wrote:
 nice design, i hope it will go online soon
 but i am having problems signing in, I registerd but after
   clicking
 the confimation link it jus says invalid login??
 I would also suggest that you add a licencse category, for
 the
  tagging
 part also i would suggest that you use my improved version
 of
   the
 tagging plugin for your tagging ;-)
 
  http://groups.google.com/group/web2py/browse_thread/thread/4f9dfc4e9c.
 ..
 
 On Nov 28, 8:57 pm, Thadeus Burgess thade...@thadeusb.com
 
   wrote:
  Hello everyone,
 
  Ok I am putting the finishing touches on our new web2py
   plugin
  hosting
 site.
 
  Could everyone take a look at it, let me know what you
 think,
   and
  reply
 to
  this thread for any comments or suggestions. I will not
 get a
  chance to
  update it until next weekend, but would love to start
   gathering a
  list of
  things that could be done better.
 
  You can start uploading some packed plug-ins to try the
 site
   out,
  however
 it
  is just running off the demo SQLITE database, 

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 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://groups.google.com/group/web2py?hl=en.




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 thade...@thadeusb.comwrote:

 I shall allow it for now :)

 -Thadeus





 On Tue, Dec 1, 2009 at 4:07 PM, selecta gr...@delarue-berlin.de 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 thade...@thadeusb.com wrote:
  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 mimetype returned (which is a .gz file)
 and
  renaming it. This would be a bug :)
 
  Agreed, search needs to be refined to display more results.
 
  -Thadeus
 
 
 
  On Tue, Dec 1, 2009 at 8:58 AM, mdipierro mdipie...@cs.depaul.edu
 wrote:
   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 gr...@delarue-berlin.de wrote:
 *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 it is really all about information
density and this is still quite low on you page
try to fit in more information on one page, go to a commercial or
sucessfull open source web page (e.g.http://www.web2pyslices.com/)
and you will find at least 5-10 main items of information on each
page, right now i can see 3+1/2 plugin on the main page
 
On Nov 30, 4:22 pm, Thadeus Burgess thade...@thadeusb.com wrote:
 
 *Value not in database errors. - Should have been fixed in trunk,
 not
   sure
 of a way around it except for just not using Validators all
 around.
 
 *Version Number - good idea.
 
 *Filename is expected to be web2py.plugin.*.w2p This is what you
 get
   when
 you pack the plug-in individually.
 
 *Code for comments - My bad, that actually comes from the python
   sample at
 gravatar.com, yay for editors auto-save :)
 
 -Thadeus
 
 On Mon, Nov 30, 2009 at 3:47 AM, selecta gr...@delarue-berlin.de
 
   wrote:
  in the cotroller plug
 
  i see
  0 Responses Comment RSS Feed
  # import code for encoding urls and generating md5 hashes import
  urllib, hashlib # Set your variables here email =
  some...@somewhere.com default = http://www.somewhere.com/
  homsar.jpg http://www.somewhere.com/%0Ahomsar.jpg size = 40
 #
   construct
  the url gravatar_url = http://
 www.gravatar.com/avatar.php? gravatar_url += urllib.urlencode
  ({'gravatar_id':hashlib.md5(email).hexdigest(),
 'default':default,
  'size':str(size)})
 
  looks like some commented code that should be hidden
 
  On Nov 30, 10:43 am, selecta gr...@delarue-berlin.de wrote:
   thanks that was it
   when I try to submit my plugin and I don't choose a category
 like
   food I get
   value not in database for each category
   on Publish a new version
   there is a field called Number: it's not clear what this is
   supposed
   to mean I would call it version number instead
   on uploading my improved tagging plugin i get enter valid
   filename
   my filename is web2py.plugin.tagging.gz ... as chosen by the
 export
   function?? why is it not valid?
 
   On Nov 29, 8:56 pm, Thadeus Burgess thade...@thadeusb.com
 wrote:
 
Make sure you are using username not emai
 
-Thadeus
 
On Sun, Nov 29, 2009 at 7:32 AM, selecta 
   gr...@delarue-berlin.de
  wrote:
 nice design, i hope it will go online soon
 but i am having problems signing in, I registerd but after
   clicking
 the confimation link it jus says invalid login??
 I would also suggest that you add a licencse category, for
 the
  tagging
 part also i would suggest that you use my improved version
 of
   the
 tagging plugin for your tagging ;-)
 
  http://groups.google.com/group/web2py/browse_thread/thread/4f9dfc4e9c.
 ..
 
 On Nov 28, 8:57 pm, Thadeus Burgess 
 thade...@thadeusb.com
   wrote:
  Hello everyone,
 
  Ok I am putting the finishing touches on our new web2py
   plugin
  hosting
 site.
 
  Could everyone take a look at it, let me know what you
 think,
   and
  reply
 to
  this thread for any comments or suggestions. I will not
 get a
  chance to
  update it until next 

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.

This is the new file upload regexy

filename=^web2py.plugin.*

extension=^w2p|gz$

-Thadeus




On Tue, Dec 1, 2009 at 4:27 PM, Thadeus Burgess thade...@thadeusb.comwrote:

 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 thade...@thadeusb.comwrote:

 I shall allow it for now :)

 -Thadeus





 On Tue, Dec 1, 2009 at 4:07 PM, selecta gr...@delarue-berlin.de 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 thade...@thadeusb.com wrote:
  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 mimetype returned (which is a .gz file)
 and
  renaming it. This would be a bug :)
 
  Agreed, search needs to be refined to display more results.
 
  -Thadeus
 
 
 
  On Tue, Dec 1, 2009 at 8:58 AM, mdipierro mdipie...@cs.depaul.edu
 wrote:
   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 gr...@delarue-berlin.de wrote:
 *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 it is really all about information
density and this is still quite low on you page
try to fit in more information on one page, go to a commercial or
sucessfull open source web page (e.g.http://www.web2pyslices.com/)
and you will find at least 5-10 main items of information on each
page, right now i can see 3+1/2 plugin on the main page
 
On Nov 30, 4:22 pm, Thadeus Burgess thade...@thadeusb.com wrote:
 
 *Value not in database errors. - Should have been fixed in
 trunk, not
   sure
 of a way around it except for just not using Validators all
 around.
 
 *Version Number - good idea.
 
 *Filename is expected to be web2py.plugin.*.w2p This is what
 you get
   when
 you pack the plug-in individually.
 
 *Code for comments - My bad, that actually comes from the python
   sample at
 gravatar.com, yay for editors auto-save :)
 
 -Thadeus
 
 On Mon, Nov 30, 2009 at 3:47 AM, selecta 
 gr...@delarue-berlin.de
   wrote:
  in the cotroller plug
 
  i see
  0 Responses Comment RSS Feed
  # import code for encoding urls and generating md5 hashes
 import
  urllib, hashlib # Set your variables here email =
  some...@somewhere.com default = http://www.somewhere.com/
  homsar.jpg http://www.somewhere.com/%0Ahomsar.jpg size = 40
 #
   construct
  the url gravatar_url = http://
 www.gravatar.com/avatar.php? gravatar_url += urllib.urlencode
  ({'gravatar_id':hashlib.md5(email).hexdigest(),
 'default':default,
  'size':str(size)})
 
  looks like some commented code that should be hidden
 
  On Nov 30, 10:43 am, selecta gr...@delarue-berlin.de wrote:
   thanks that was it
   when I try to submit my plugin and I don't choose a category
 like
   food I get
   value not in database for each category
   on Publish a new version
   there is a field called Number: it's not clear what this is
   supposed
   to mean I would call it version number instead
   on uploading my improved tagging plugin i get enter valid
   filename
   my filename is web2py.plugin.tagging.gz ... as chosen by the
 export
   function?? why is it not valid?
 
   On Nov 29, 8:56 pm, Thadeus Burgess thade...@thadeusb.com
 wrote:
 
Make sure you are using username not emai
 
-Thadeus
 
On Sun, Nov 29, 2009 at 7:32 AM, selecta 
   gr...@delarue-berlin.de
  wrote:
 nice design, i hope it will go online soon
 but i am having problems signing in, I registerd but
 after
   clicking
 the confimation link it jus says invalid login??
 I would also suggest that you add a licencse category,
 for the
  tagging
 part also i would suggest that you use my improved
 version of
   the
 tagging plugin for your tagging ;-)
 
  
 

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 mdipie...@cs.depaul.edu wrote:

 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 thade...@thadeusb.com wrote:
  create which models dynamically?
 
  -Thadeus
 
  On Tue, Dec 1, 2009 at 10:48 AM, mdipierro mdipie...@cs.depaul.edu
 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 group, send email to web...@googlegroups.com.
 To unsubscribe from this group, send email to
 web2py+unsubscr...@googlegroups.comweb2py%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.




--

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://groups.google.com/group/web2py?hl=en.




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 plugin, I would
definitely tie the import process into this.

Other people will use just a straight parent relationship in the database.

Some people will want their own table devoted to tags, others just want a
field in their posts table that holds tags.

How can I honestly account for any kind of data format a person might want?

-Thadeus




On Tue, Dec 1, 2009 at 4:50 PM, Thadeus Burgess thade...@thadeusb.comwrote:

 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 mdipie...@cs.depaul.edu wrote:

 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 thade...@thadeusb.com wrote:
  create which models dynamically?
 
  -Thadeus
 
  On Tue, Dec 1, 2009 at 10:48 AM, mdipierro mdipie...@cs.depaul.edu
 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 group, send email to web...@googlegroups.com.
 To unsubscribe from this group, send email to
 web2py+unsubscr...@googlegroups.comweb2py%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.





--

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://groups.google.com/group/web2py?hl=en.




[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 thade...@thadeusb.com wrote:
 well routes on_error is what we are talking about.

 -Thadeus

 On Tue, Dec 1, 2009 at 2:48 PM, mdipierro mdipie...@cs.depaul.edu wrote:
  routes_onerror has a different syntax tha routes_in/out, it is not
  regex

  On Dec 1, 10:59 am, Thadeus Burgess thade...@thadeusb.com 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, mdipierro mdipie...@cs.depaul.edu
  wrote:
'/samali/*'

is not a valid regex. Try

routes_onerror = [
   ('/samali.*', '/samali/default/index'),
]

On Dec 1, 3:32 am, emmanu simo scommes...@gmail.com wrote:
 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 thade...@thadeusb.com wrote:

  When I use the following in my routes.py

  routes_onerror = [
      ('*/*', '/init/default/index'),
  ]

  The process hits 100% cpu and freezes the machine, consumes ram,
  and
spikes
  the local network.

  Infinite loop in there somewhere?

  -Thadeus

  On Mon, Nov 30, 2009 at 10:11 PM, Thadeus Burgess 
thade...@thadeusb.comwrote:

   web2py/routes.example.py

   -Thadeus

   On Mon, Nov 30, 2009 at 8:26 AM, Simo scommes...@gmail.com
  wrote:

   where  (in with directory)  is that file ?

   On Mon, Nov 30, 2009 at 3:18 PM, mdipierro 
  mdipie...@cs.depaul.edu
wrote:

   Read the file routes.example.py

   You can do what you need by renaming this file route.py and
   customizing routes_onerror.

   Massimo

   On Nov 30, 3:55 am, emmanu simo scommes...@gmail.com wrote:
If a user put a bad Url , I have an INVALID
  REQUEST/CONTROLLER
I want to  automaticly redirect that request to a home page
  or a
last
page done.
how can I do it ?

   --

   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.comweb2py%2bunsubscr...@googlegroups.com
  web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com

web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com
  web2py%252bunsubscr...@googlegroups.comweb2py%25252bunsubscr...@googlegroups.com

   .
   For more options, visit this group at
  http://groups.google.com/group/web2py?hl=en.

   --
   Emmanuel Simo

    --
   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.comweb2py%2bunsubscr...@googlegroups.com
  web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com

web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com
  web2py%252bunsubscr...@googlegroups.comweb2py%25252bunsubscr...@googlegroups.com

   .
   For more options, visit this group at
  http://groups.google.com/group/web2py?hl=en.

--

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.comweb2py%2bunsubscr...@googlegroups.com
  web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com

.
For more options, visit this group at
   http://groups.google.com/group/web2py?hl=en.

  --

  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.comweb2py%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.



--

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 

[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.id0).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 yamandu.co...@gmail.com wrote:
 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 to increment the value in x for a set of records.

 Would db(db.tabela.id0).update(x='x+10') work on GAE ?

--

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://groups.google.com/group/web2py?hl=en.




[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 haftis...@gmail.com 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 repeats itself...

--

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://groups.google.com/group/web2py?hl=en.




[web2py:36310] Re: upgrade app

2009-12-01 Thread DenesL
bump

--

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://groups.google.com/group/web2py?hl=en.




[web2py:36311] Re: Plugin Central

2009-12-01 Thread mdipierro
send me another patch. ;-)

On Dec 1, 4:31 pm, Thadeus Burgess thade...@thadeusb.com 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 bug in web2py, in that web2py sends the gz
 mimetype instead of a w2p mimetype.

 This is the new file upload regexy

 filename=^web2py.plugin.*

 extension=^w2p|gz$

 -Thadeus

 On Tue, Dec 1, 2009 at 4:27 PM, Thadeus Burgess thade...@thadeusb.comwrote:

  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 
  thade...@thadeusb.comwrote:

  I shall allow it for now :)

  -Thadeus

  On Tue, Dec 1, 2009 at 4:07 PM, selecta gr...@delarue-berlin.de 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 thade...@thadeusb.com wrote:
   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 mimetype returned (which is a .gz file)
  and
   renaming it. This would be a bug :)

   Agreed, search needs to be refined to display more results.

   -Thadeus

   On Tue, Dec 1, 2009 at 8:58 AM, mdipierro mdipie...@cs.depaul.edu
  wrote:
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 gr...@delarue-berlin.de wrote:
  *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 it is really all about information
 density and this is still quite low on you page
 try to fit in more information on one page, go to a commercial or
 sucessfull open source web page (e.g.http://www.web2pyslices.com/)
 and you will find at least 5-10 main items of information on each
 page, right now i can see 3+1/2 plugin on the main page

 On Nov 30, 4:22 pm, Thadeus Burgess thade...@thadeusb.com wrote:

  *Value not in database errors. - Should have been fixed in
  trunk, not
sure
  of a way around it except for just not using Validators all
  around.

  *Version Number - good idea.

  *Filename is expected to be web2py.plugin.*.w2p This is what
  you get
when
  you pack the plug-in individually.

  *Code for comments - My bad, that actually comes from the python
sample at
  gravatar.com, yay for editors auto-save :)

  -Thadeus

  On Mon, Nov 30, 2009 at 3:47 AM, selecta 
  gr...@delarue-berlin.de
wrote:
   in the cotroller plug

   i see
   0 Responses Comment RSS Feed
   # import code for encoding urls and generating md5 hashes
  import
   urllib, hashlib # Set your variables here email =
   some...@somewhere.com default = http://www.somewhere.com/
   homsar.jpg http://www.somewhere.com/%0Ahomsar.jpg size = 40
  #
construct
   the url gravatar_url = http://
  www.gravatar.com/avatar.php? gravatar_url += urllib.urlencode
   ({'gravatar_id':hashlib.md5(email).hexdigest(),
  'default':default,
   'size':str(size)})

   looks like some commented code that should be hidden

   On Nov 30, 10:43 am, selecta gr...@delarue-berlin.de wrote:
thanks that was it
when I try to submit my plugin and I don't choose a category
  like
food I get
value not in database for each category
on Publish a new version
there is a field called Number: it's not clear what this is
supposed
to mean I would call it version number instead
on uploading my improved tagging plugin i get enter valid
filename
my filename is web2py.plugin.tagging.gz ... as chosen by the
  export
function?? why is it not valid?

On Nov 29, 8:56 pm, Thadeus Burgess thade...@thadeusb.com
  wrote:

 Make sure you are using username not emai

 -Thadeus

 On Sun, Nov 29, 2009 at 7:32 AM, selecta 
gr...@delarue-berlin.de
   wrote:
  nice design, i hope it will go online soon
  but i am having problems signing in, I registerd but
  after
clicking
  the confimation link it jus says invalid login??
  I would also suggest that you add a licencse category,
  for the
   

[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 close to production. The svn and
bzr checkout retrieve the all directory structure so there is no *.w2p
but there is nothing to upgrade. The checkout is the upgrade.


On Dec 1, 1:16 pm, DenesL denes1...@yahoo.ca wrote:
 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:08 pm, villas villa...@gmail.com wrote:

  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.



--

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://groups.google.com/group/web2py?hl=en.




[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 from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.




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

-Thadeus




On Tue, Dec 1, 2009 at 8:39 PM, mdipierro mdipie...@cs.depaul.edu wrote:

 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 thade...@thadeusb.com wrote:
  well routes on_error is what we are talking about.
 
  -Thadeus
 
  On Tue, Dec 1, 2009 at 2:48 PM, mdipierro mdipie...@cs.depaul.edu
 wrote:
   routes_onerror has a different syntax tha routes_in/out, it is not
   regex
 
   On Dec 1, 10:59 am, Thadeus Burgess thade...@thadeusb.com 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, mdipierro mdipie...@cs.depaul.edu
   wrote:
 '/samali/*'
 
 is not a valid regex. Try
 
 routes_onerror = [
('/samali.*', '/samali/default/index'),
 ]
 
 On Dec 1, 3:32 am, emmanu simo scommes...@gmail.com wrote:
  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 thade...@thadeusb.com wrote:
 
   When I use the following in my routes.py
 
   routes_onerror = [
   ('*/*', '/init/default/index'),
   ]
 
   The process hits 100% cpu and freezes the machine, consumes
 ram,
   and
 spikes
   the local network.
 
   Infinite loop in there somewhere?
 
   -Thadeus
 
   On Mon, Nov 30, 2009 at 10:11 PM, Thadeus Burgess 
 thade...@thadeusb.comwrote:
 
web2py/routes.example.py
 
-Thadeus
 
On Mon, Nov 30, 2009 at 8:26 AM, Simo scommes...@gmail.com
   wrote:
 
where  (in with directory)  is that file ?
 
On Mon, Nov 30, 2009 at 3:18 PM, mdipierro 
   mdipie...@cs.depaul.edu
 wrote:
 
Read the file routes.example.py
 
You can do what you need by renaming this file route.py and
customizing routes_onerror.
 
Massimo
 
On Nov 30, 3:55 am, emmanu simo scommes...@gmail.com
 wrote:
 If a user put a bad Url , I have an INVALID
   REQUEST/CONTROLLER
 I want to  automaticly redirect that request to a home
 page
   or a
 last
 page done.
 how can I do it ?
 
--
 
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.comweb2py%2bunsubscr...@googlegroups.com
 web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com
 
   web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com
 web2py%252bunsubscr...@googlegroups.comweb2py%25252bunsubscr...@googlegroups.com
 
 
 web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com
 web2py%252bunsubscr...@googlegroups.comweb2py%25252bunsubscr...@googlegroups.com
 
   web2py%252bunsubscr...@googlegroups.comweb2py%25252bunsubscr...@googlegroups.com
 web2py%25252bunsubscr...@googlegroups.comweb2py%2525252bunsubscr...@googlegroups.com
 
 
.
For more options, visit this group at
   http://groups.google.com/group/web2py?hl=en.
 
--
Emmanuel Simo
 
 --
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.comweb2py%2bunsubscr...@googlegroups.com
 web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com
 
   web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com
 web2py%252bunsubscr...@googlegroups.comweb2py%25252bunsubscr...@googlegroups.com
 
 
 web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com
 web2py%252bunsubscr...@googlegroups.comweb2py%25252bunsubscr...@googlegroups.com
 
   web2py%252bunsubscr...@googlegroups.comweb2py%25252bunsubscr...@googlegroups.com
 web2py%25252bunsubscr...@googlegroups.comweb2py%2525252bunsubscr...@googlegroups.com
 
 
.
For more options, visit this group at
   

[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 thade...@thadeusb.com wrote:
 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 plugin, I would
 definitely tie the import process into this.

 Other people will use just a straight parent relationship in the database.

 Some people will want their own table devoted to tags, others just want a
 field in their posts table that holds tags.

 How can I honestly account for any kind of data format a person might want?

 -Thadeus

 On Tue, Dec 1, 2009 at 4:50 PM, Thadeus Burgess thade...@thadeusb.comwrote:

  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 mdipie...@cs.depaul.edu wrote:

  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 thade...@thadeusb.com wrote:
   create which models dynamically?

   -Thadeus

   On Tue, Dec 1, 2009 at 10:48 AM, mdipierro mdipie...@cs.depaul.edu
  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 group, send email to web...@googlegroups.com.
  To unsubscribe from this group, send email to
  web2py+unsubscr...@googlegroups.comweb2py%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.

--

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://groups.google.com/group/web2py?hl=en.




[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 thade...@thadeusb.com 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 thade...@thadeusb.comwrote:

  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 
  oguzyarimt...@gmail.comwrote:

  On Tue, 1 Dec 2009 07:01:31 -0800 (PST)
  mdipierro mdipie...@cs.depaul.edu 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 www-data directory at my user home directory and copied the
  web2py directory there. Chmod the direcotory do that the apache user is 
  able
  to read and write to it.

  The current 01_web2py_vhost.conf is as follows:

  #virtual host
  LoadModule wsgi_module modules/mod_wsgi.so
  NameVirtualHost *:80
  VirtualHost *:80
   ServerName web2py.localhost
  ··
    WSGIDaemonProcess web2py user=apache group=apache display-name=%{GROUP}
  processes=5 maximum-requests=1000
    WSGIProcessGroup web2py
   WSGIScriptAlias / /home/oguz/www-data/web2py/wsgihandler.py
  ··
   # DocumentRoot /var/www/localhost/htdocs/web2py/applications

   Directory /home/oguz/www-data/web2py
     AllowOverride None
     Order Allow,Deny
     Deny from all
     Files wsgihandler.py
       Allow from all
     /Files
   /Directory

   AliasMatch ^/([^/]+)/static/(.*) \
            /home/www-data/web2py/applications/$1/static/$2
   Directory /home/oguz/www-data/web2py/applications/*/static/
      Order Allow,Deny
     Allow from all
    /Directory

   Location /admin
   Deny from all
   /Location

    LocationMatch ^/([^/]+)/appadmin
   Deny from all
   /LocationMatch

   CustomLog /var/log/apache2/access.log common
   ErrorLog /var/log/apache2/error.log
  /VirtualHost

  When i try to reach thehttp://web2py.localhost/test/default/imagesurl
  below is the error.log message:
  [Tue Dec 01 20:36:02 2009] [error] [client 127.0.1.1] File does not exist:
  /home/oguz/www-data/web2py/wsgihandler.py/test/default/images

  so it seems i have a problem with apache configuration. But i don't know
  what it is.

  I can see that web2py processes are created during the apache start up:

  $ ps aux | grep web2py
  oguz      2867  0.0  0.2  10508  4332 pts/0    S+   18:18   0:00 vim
  setup-web2py.sh
  root      3158  0.0  0.1  10436  3896 pts/2    S+   18:54   0:00 vim
  vhosts.d/01_web2py_vhost.conf
  apache    4356  0.0  0.3 168444  6476 ?        Sl   20:07   0:00
  (wsgi:web2py)     -d /usr/lib/apache2/ -f /etc/apache2/httpd.conf -D
  DEFAULT_VHOST -D USERDIR -D PYTHON -D PHP5 -k start
  apache    4370  0.0  0.3 168444  6468 ?        Sl   20:07   0:00
  (wsgi:web2py)     -d /usr/lib/apache2/ -f /etc/apache2/httpd.conf -D
  DEFAULT_VHOST -D USERDIR -D PYTHON -D PHP5 -k start
  apache    4392  0.0  0.3 168444  6468 ?        Sl   20:07   0:00
  (wsgi:web2py)     -d /usr/lib/apache2/ -f /etc/apache2/httpd.conf -D
  DEFAULT_VHOST -D USERDIR -D PYTHON -D PHP5 -k start
  apache    4410  0.0  0.3 168444  6468 ?        Sl   20:07   0:00
  (wsgi:web2py)     -d /usr/lib/apache2/ -f /etc/apache2/httpd.conf -D
  DEFAULT_VHOST -D USERDIR -D PYTHON -D PHP5 -k start
  apache    4428  0.0  0.3 168444  6468 ?        Sl   20:07   0:00
  (wsgi:web2py)     -d /usr/lib/apache2/ -f /etc/apache2/httpd.conf -D
  DEFAULT_VHOST -D USERDIR -D PYTHON -D PHP5 -k start
  apache    4747  0.0  1.0 146648 20928 pts/3    Sl   20:11   0:00 python2.5
  web2py.py -i 127.0.1.1 -p 8123 -a ozyyarim12
  oguz      5014  0.0  0.0   3264   844 pts/5    S+   20:37   0:00 grep
  --color web2py

  --

  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.comweb2py%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.

--

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://groups.google.com/group/web2py?hl=en.




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 you edit them). 

And this is *only* relevant if you're installing the standard download zip 
file. It has no useful function at all if you're using the svn or bzr trunk, 
because the standard apps are always current in the trunk.

The only reason it's there at all is to make upgrading the standard apps 
optional, in case you've edited them (the code  html), and don't want to 
overwrite the old versions. 

--

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://groups.google.com/group/web2py?hl=en.




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 thade...@thadeusb.comwrote:

 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

 -Thadeus





 On Tue, Dec 1, 2009 at 8:39 PM, mdipierro mdipie...@cs.depaul.edu wrote:

 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 thade...@thadeusb.com wrote:
  well routes on_error is what we are talking about.
 
  -Thadeus
 
  On Tue, Dec 1, 2009 at 2:48 PM, mdipierro mdipie...@cs.depaul.edu
 wrote:
   routes_onerror has a different syntax tha routes_in/out, it is not
   regex
 
   On Dec 1, 10:59 am, Thadeus Burgess thade...@thadeusb.com 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, mdipierro mdipie...@cs.depaul.edu
   wrote:
 '/samali/*'
 
 is not a valid regex. Try
 
 routes_onerror = [
('/samali.*', '/samali/default/index'),
 ]
 
 On Dec 1, 3:32 am, emmanu simo scommes...@gmail.com wrote:
  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 thade...@thadeusb.com wrote:
 
   When I use the following in my routes.py
 
   routes_onerror = [
   ('*/*', '/init/default/index'),
   ]
 
   The process hits 100% cpu and freezes the machine, consumes
 ram,
   and
 spikes
   the local network.
 
   Infinite loop in there somewhere?
 
   -Thadeus
 
   On Mon, Nov 30, 2009 at 10:11 PM, Thadeus Burgess 
 thade...@thadeusb.comwrote:
 
web2py/routes.example.py
 
-Thadeus
 
On Mon, Nov 30, 2009 at 8:26 AM, Simo scommes...@gmail.com
 
   wrote:
 
where  (in with directory)  is that file ?
 
On Mon, Nov 30, 2009 at 3:18 PM, mdipierro 
   mdipie...@cs.depaul.edu
 wrote:
 
Read the file routes.example.py
 
You can do what you need by renaming this file route.py
 and
customizing routes_onerror.
 
Massimo
 
On Nov 30, 3:55 am, emmanu simo scommes...@gmail.com
 wrote:
 If a user put a bad Url , I have an INVALID
   REQUEST/CONTROLLER
 I want to  automaticly redirect that request to a home
 page
   or a
 last
 page done.
 how can I do it ?
 
--
 
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.comweb2py%2bunsubscr...@googlegroups.com
 web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com
 
   web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com
 web2py%252bunsubscr...@googlegroups.comweb2py%25252bunsubscr...@googlegroups.com
 
 
 web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com
 web2py%252bunsubscr...@googlegroups.comweb2py%25252bunsubscr...@googlegroups.com
 
   web2py%252bunsubscr...@googlegroups.comweb2py%25252bunsubscr...@googlegroups.com
 web2py%25252bunsubscr...@googlegroups.comweb2py%2525252bunsubscr...@googlegroups.com
 
 
.
For more options, visit this group at
   http://groups.google.com/group/web2py?hl=en.
 
--
Emmanuel Simo
 
 --
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.comweb2py%2bunsubscr...@googlegroups.com
 web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com
 
   web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com
 web2py%252bunsubscr...@googlegroups.comweb2py%25252bunsubscr...@googlegroups.com
 
 
 web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com
 web2py%252bunsubscr...@googlegroups.comweb2py%25252bunsubscr...@googlegroups.com
 
   

[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 important for seo. as the bots
also check your archive you can easily be found on the engines.


On Dec 1, 8:26 am, mdipierro mdipie...@cs.depaul.edu wrote:
 I think the difference is that tags are flat, categories are supposed
 to have a hierarchical structure. Usually categories are set by the
 administrator, not by users, as in the case of tags.

 On Nov 30, 9:52 pm, Victor victor.akuj...@gmail.com wrote:

  Really, I'm no expert, maybe categories are  for SEO. However I
  believe that tags are more searchable, and you can have as many as you
  want. For example, look at engadget, each post has loads of tags. but
  fewer categories. I'ld say Categories to allow people look at your
  information and tags to add to the keywords meta tag on each post page
  for SEO. Once again I'm no expert, just a physics student who loves to
  code python and web2py.
  But then again Its one of tose questions that make you think.

  Victor

  On Nov 30, 3:30 pm, Thadeus Burgess thade...@thadeusb.com wrote:

   I was just curious why most blogs have archive then? Is it for S.E.O. ?

   If you have a tagging system, would you really need categories?, since 
   tags
   are basically a category cloud DO you really need both, how do
   categories interact with tags?

   -Thadeus

   On Mon, Nov 30, 2009 at 8:32 AM, Victor victor.akuj...@gmail.com wrote:
IMHO,  It's better to use categories because people would generally
visit your  blog looking for  posts on a topic (JQuery, Web2py,
Photoshop etc), if you had an Older/Newer posts link, then thats
fine.

On Nov 29, 10:43 am, Thadeus Burgess thade...@thadeusb.com wrote:
 What is the benefit or reason for having date-sorted archive links on 
 a
 blog?

 -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.comweb2py%2bunsubscr...@googlegroups.com
.
For more options, visit this group at
   http://groups.google.com/group/web2py?hl=en.

--

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://groups.google.com/group/web2py?hl=en.




[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 mdipie...@cs.depaul.edu 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 change.

 Anyway, as a more general advice, you should use frames if the content
 is a complete HTML page. If you are trying to embed the output of a
 web2py action there are better ways that result in less communication.
 I.e. embed the page via ajax and table or div instead of using
 frames.

 Massimo

 On Nov 26, 2:48 am, Lydia Manikonda lydia.maniko...@gmail.com wrote:

  Something like breaking a particular page in to some frames.

  Like in html we normally mention like for example:

  HTML
  HEAD
  TITLEA simple frameset document/TITLE
  /HEAD
  FRAMESET cols=20%, 80%
    FRAMESET rows=100, 200
        FRAME src=contents_of_frame1.html
        FRAME src=contents_of_frame2.gif
    /FRAMESET
    FRAME src=contents_of_frame3.html
    NOFRAMES
        PThis frameset document contains:
        UL
           LIA href=contents_of_frame1.htmlSome neat contents/A
           LIIMG src=contents_of_frame2.gif alt=A neat image
           LIA href=contents_of_frame3.htmlSome other neat
  contents/A
        /UL
    /NOFRAMES
  /FRAMESET
  /HTML
  that might create a frame layout something like this:

   
  |              |                             |
  |              |                             |
  | Frame 1 |                             |
  |              |                             |
  |              |                             |
  |--|                             |
  |              |          Frame 3       |
  |              |                             |
  |              |                             |
  |              |                             |
  | Frame 2 |                             |
  |              |                             |
  |              |                             |
  |              |                             |
  |              |                             |
   

  On Nov 24, 9:36 pm, mdipierro mdipie...@cs.depaul.edu wrote:

   Something like this?

   iframe src=http://google.com;/iframe

   On Nov 24, 9:50 am, Lydia Manikonda lydia.maniko...@gmail.com wrote:

I'm very new to web2py. I want to include the HTML frames in my .html
file of web2py. Can anyone kindly let me know how to use frameset and
frames.

Thanks in advance.

--

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://groups.google.com/group/web2py?hl=en.




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
themselves.

I should be finished with the migration script in a couple of days at the
very latest. I will design it so that you can customize some of the fields,
this way it will integrate well with your blog Mengu.

-Thadeus




On Tue, Dec 1, 2009 at 10:15 PM, Mengu whalb...@gmail.com wrote:

 deus,

 you may know that i have been developing a web2py b


--

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://groups.google.com/group/web2py?hl=en.




[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 thade...@thadeusb.com 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 Massimo had export_to_csv in his copy/paste and
 somehow his IDE decided to paste it right there and he did not realize.
 Eclipse has done that to me many a time.

 -Thadeus

 On Thu, Nov 26, 2009 at 1:07 AM, Vasile Ermicioi elff...@gmail.com wrote:

  should be self.export_to_csv.settings.table_even

  Is it because of the built in web2py editor?

  On Thu, Nov 26, 2009 at 6:03 AM, mr.freeze nat...@freezable.com wrote:

  What kind of patch are you making??? Sexports and csv elves??? Haha.

  On Nov 25, 9:52 pm, Thadeus Burgess thade...@thadeusb.com wrote:
   Traceback (most recent call last):

     File /home/Applications/web2py/gluon/tools.py, line 834, in
  define_tables

       table = sexport_to_csvelf.settings.table_event
   NameError: global name 'sexport_to_csvelf' is not defined

   -Thadeus

  --~--~-~--~~~---~--~~
  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+unsubscr...@googlegroups.comweb2py%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en
  -~--~~~~--~~--~--~---

--

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://groups.google.com/group/web2py?hl=en.




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.

As for archives, I suppose this is why there are dates in links as well?

Would it benefit to provide multiple interfaces to a post, one link such as

/myapp/default/view/this-is-the-post-title

and just for SEO,

/myapp/default/archive/2009/11/28/this-is-the-post-title

-Thadeus




On Tue, Dec 1, 2009 at 10:27 PM, Mengu whalb...@gmail.com wrote:

 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 important for seo. as the bots
 also check your archive you can easily be found on the engines.


 On Dec 1, 8:26 am, mdipierro mdipie...@cs.depaul.edu wrote:
  I think the difference is that tags are flat, categories are supposed
  to have a hierarchical structure. Usually categories are set by the
  administrator, not by users, as in the case of tags.
 
  On Nov 30, 9:52 pm, Victor victor.akuj...@gmail.com wrote:
 
   Really, I'm no expert, maybe categories are  for SEO. However I
   believe that tags are more searchable, and you can have as many as you
   want. For example, look at engadget, each post has loads of tags. but
   fewer categories. I'ld say Categories to allow people look at your
   information and tags to add to the keywords meta tag on each post page
   for SEO. Once again I'm no expert, just a physics student who loves to
   code python and web2py.
   But then again Its one of tose questions that make you think.
 
   Victor
 
   On Nov 30, 3:30 pm, Thadeus Burgess thade...@thadeusb.com wrote:
 
I was just curious why most blogs have archive then? Is it for S.E.O.
 ?
 
If you have a tagging system, would you really need categories?,
 since tags
are basically a category cloud DO you really need both, how do
categories interact with tags?
 
-Thadeus
 
On Mon, Nov 30, 2009 at 8:32 AM, Victor victor.akuj...@gmail.com
 wrote:
 IMHO,  It's better to use categories because people would generally
 visit your  blog looking for  posts on a topic (JQuery, Web2py,
 Photoshop etc), if you had an Older/Newer posts link, then thats
 fine.
 
 On Nov 29, 10:43 am, Thadeus Burgess thade...@thadeusb.com
 wrote:
  What is the benefit or reason for having date-sorted archive
 links on a
  blog?
 
  -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.comweb2py%2bunsubscr...@googlegroups.com
 web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com
 
 .
 For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.

 --

 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.comweb2py%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.




--

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://groups.google.com/group/web2py?hl=en.




[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 thade...@thadeusb.com 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, though most
 blogs end up just displaying the categories flat anyways, even if they are
 hierarchical on the backend.

 As for archives, I suppose this is why there are dates in links as well?

 Would it benefit to provide multiple interfaces to a post, one link such as

 /myapp/default/view/this-is-the-post-title

 and just for SEO,

 /myapp/default/archive/2009/11/28/this-is-the-post-title

 -Thadeus

 On Tue, Dec 1, 2009 at 10:27 PM, Mengu whalb...@gmail.com wrote:
  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 important for seo. as the bots
  also check your archive you can easily be found on the engines.

  On Dec 1, 8:26 am, mdipierro mdipie...@cs.depaul.edu wrote:
   I think the difference is that tags are flat, categories are supposed
   to have a hierarchical structure. Usually categories are set by the
   administrator, not by users, as in the case of tags.

   On Nov 30, 9:52 pm, Victor victor.akuj...@gmail.com wrote:

Really, I'm no expert, maybe categories are  for SEO. However I
believe that tags are more searchable, and you can have as many as you
want. For example, look at engadget, each post has loads of tags. but
fewer categories. I'ld say Categories to allow people look at your
information and tags to add to the keywords meta tag on each post page
for SEO. Once again I'm no expert, just a physics student who loves to
code python and web2py.
But then again Its one of tose questions that make you think.

Victor

On Nov 30, 3:30 pm, Thadeus Burgess thade...@thadeusb.com wrote:

 I was just curious why most blogs have archive then? Is it for S.E.O.
  ?

 If you have a tagging system, would you really need categories?,
  since tags
 are basically a category cloud DO you really need both, how do
 categories interact with tags?

 -Thadeus

 On Mon, Nov 30, 2009 at 8:32 AM, Victor victor.akuj...@gmail.com
  wrote:
  IMHO,  It's better to use categories because people would generally
  visit your  blog looking for  posts on a topic (JQuery, Web2py,
  Photoshop etc), if you had an Older/Newer posts link, then thats
  fine.

  On Nov 29, 10:43 am, Thadeus Burgess thade...@thadeusb.com
  wrote:
   What is the benefit or reason for having date-sorted archive
  links on a
   blog?

   -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.comweb2py%2bunsubscr...@googlegroups.com
  web2py%2bunsubscr...@googlegroups.comweb2py%252bunsubscr...@googlegroups.com

  .
  For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.

  --

  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.comweb2py%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en.

--

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://groups.google.com/group/web2py?hl=en.




[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 thade...@thadeusb.com 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 Massimo had export_to_csv in his copy/paste and
 somehow his IDE decided to paste it right there and he did not realize.
 Eclipse has done that to me many a time.

 -Thadeus

 On Thu, Nov 26, 2009 at 1:07 AM, Vasile Ermicioi elff...@gmail.com wrote:

  should be self.export_to_csv.settings.table_even

  Is it because of the built in web2py editor?

  On Thu, Nov 26, 2009 at 6:03 AM, mr.freeze nat...@freezable.com wrote:

  What kind of patch are you making??? Sexports and csv elves??? Haha.

  On Nov 25, 9:52 pm, Thadeus Burgess thade...@thadeusb.com wrote:
   Traceback (most recent call last):

     File /home/Applications/web2py/gluon/tools.py, line 834, in
  define_tables

       table = sexport_to_csvelf.settings.table_event
   NameError: global name 'sexport_to_csvelf' is not defined

   -Thadeus

  --~--~-~--~~~---~--~~
  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+unsubscr...@googlegroups.comweb2py%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/web2py?hl=en
  -~--~~~~--~~--~--~---



--

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://groups.google.com/group/web2py?hl=en.




[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 mdipie...@cs.depaul.edu 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 thade...@thadeusb.com 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 Massimo had export_to_csv in his copy/paste and
  somehow his IDE decided to paste it right there and he did not realize.
  Eclipse has done that to me many a time.

  -Thadeus

  On Thu, Nov 26, 2009 at 1:07 AM, Vasile Ermicioi elff...@gmail.com wrote:

   should be self.export_to_csv.settings.table_even

   Is it because of the built in web2py editor?

   On Thu, Nov 26, 2009 at 6:03 AM, mr.freeze nat...@freezable.com wrote:

   What kind of patch are you making??? Sexports and csv elves??? Haha.

   On Nov 25, 9:52 pm, Thadeus Burgess thade...@thadeusb.com wrote:
Traceback (most recent call last):

  File /home/Applications/web2py/gluon/tools.py, line 834, in
   define_tables

    table = sexport_to_csvelf.settings.table_event
NameError: global name 'sexport_to_csvelf' is not defined

-Thadeus

   --~--~-~--~~~---~--~~
   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+unsubscr...@googlegroups.comweb2py%2bunsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/web2py?hl=en
   -~--~~~~--~~--~--~---



--

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://groups.google.com/group/web2py?hl=en.




[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 l...@reproflex.de 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, tablename, *fields)
   File /Applications/cherokee.app/Contents/MacOS/web2py/gluon/
 sql.py, line 1506, in __init__
     field.requires = sqlhtml_validators(field)
   File /Applications/cherokee.app/Contents/MacOS/web2py/gluon/
 sql.py, line 467, in sqlhtml_validators
     requires[-1]=validators.IS_EMPTY_OR(requires[-1])
 IndexError: list index out of range

 I have reverted to 1471 and all my models works again.
 Some of my apps are a little bit older, should I rewrite the models?

 proof=SQLDB(sqlite://proof.db)

 proof.define_table('reference',
                                 SQLField('name'),
                                 SQLField('l', 'double'),
                                 SQLField('a', 'double'),
                                 SQLField('b', 'double'),
                                 SQLField('opacity', 'integer', default=0),
                                 SQLField('preview'))

 proof.define_table('file',
                                 SQLField('name', length=64),
                                 SQLField('kind'),
                                 SQLField('data','upload'))

 proof.define_table('match',
                                 SQLField('name'),
                                 SQLField('press', proof.file),
                                 SQLField('proof', proof.file),
                                 SQLField('intent'),
                                 SQLField('spotcolor', proof.file),
                                 SQLField('optimize', proof.file),
                                 SQLField('fmcal', proof.file),
                                 SQLField('cal', proof.file),
                                 SQLField('bump', proof.file),
                                 SQLField('keep_black', 'boolean'),
                                 SQLField('proofer'),
                                 SQLField('pos', 'integer'))

 proof.define_table('color',
                                 SQLField('name'),
                                 SQLField('reference', proof.reference),
                                 SQLField('match', proof.match),
                                 SQLField('c', 'integer', default=0),
                                 SQLField('m', 'integer', default=0),
                                 SQLField('y', 'integer', default=0),
                                 SQLField('k', 'integer', default=0),
                                 SQLField('opacity', 'integer', default=0),
                                 SQLField('preview'))

 proof.reference.name.requires  = [IS_NOT_EMPTY(Muss angeben
 werden!), IS_NOT_IN_DB(proof, reference.name, Name bereits
 vorhanden!)]
 proof.reference.l.requires     = IS_FLOAT_IN_RANGE(0,101,Muss imm
 Bereich von 0-100 sein!)
 proof.reference.a.requires     = IS_FLOAT_IN_RANGE(-255,255,Muss imm
 Bereich von -255 bis 255 sein!)
 proof.reference.b.requires     = IS_FLOAT_IN_RANGE(-255,255,Muss imm
 Bereich von -255 bis 255 sein!)
 proof.reference.opacity.requires = IS_INT_IN_RANGE(0,101,Muss imm
 Bereich von 0-100 sein!)

 proof.file.name.requires       = IS_NOT_EMPTY(Eine Datei muss
 ausgewählt sein!)
 proof.file.kind.requires       = IS_IN_SET((profile, cal, bump))

 proof.match.press.requires     = IS_IN_DB(proof(proof.file.kind ==
 profile), file.id, %(name)s)
 proof.match.proof.requires     = IS_IN_DB(proof(proof.file.kind ==
 profile), file.id, %(name)s)
 proof.match.spotcolor.requires = IS_IN_DB(proof(proof.file.kind ==
 profile), file.id, %(name)s)
 proof.match.optimize.requires  = IS_NULL_OR(IS_IN_DB(proof
 (proof.file.kind == profile), file.id, %(name)s))
 proof.match.fmcal.requires     = IS_IN_DB(proof(proof.file.kind ==
 cal), file.id, %(name)s)
 proof.match.cal.requires       = IS_IN_DB(proof(proof.file.kind ==
 cal), file.id, %(name)s)
 proof.match.bump.requires      = IS_IN_DB(proof(proof.file.kind ==
 bump), file.id, %(name)s)
 proof.match.intent.requires    = IS_IN_SET((absolute, relative))
 proof.match.proofer.requires   = IS_IN_SET((Epson9900, Epson9600))

 proof.color.name.requires      = IS_NOT_EMPTY(Muss angeben werden!)
 proof.color.reference.requires = IS_NULL_OR
 (proof.color.reference.requires)
 proof.color.match.requires     = IS_IN_DB(proof, match.id, %(name)
 s,orderby=proof.match.pos)
 proof.color.c.requires         = IS_INT_IN_RANGE(0,101,Muss im
 Bereich von 0-100 sein!)
 proof.color.m.requires         = IS_INT_IN_RANGE(0,101,Muss im
 Bereich von 0-100 sein!)
 proof.color.y.requires         = IS_INT_IN_RANGE(0,101,Muss im
 Bereich von 0-100 sein!)
 proof.color.k.requires         = IS_INT_IN_RANGE(0,101,Muss im
 Bereich von 0-100 sein!)
 proof.color.opacity.requires   = IS_INT_IN_RANGE(0,101,Muss imm
 Bereich von 

[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 haftis...@gmail.com 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 repeats itself...

--

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://groups.google.com/group/web2py?hl=en.




[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 just hit an entry with tags camry no matter which
category it is in.

However, one psycho drawback of tag system (to me) is that, there is
no obvious tree-structure for all the data. So in case you want to
read all data one by one, you don't know where to start and you will
encounter many duplicate posts. This is unlike the tree system, which
you can always use depth-first-search or breadth-first-search.

Just my 0.02$

On Dec 1, 2:26 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 I think the difference is that tags are flat, categories are supposed
 to have a hierarchical structure. Usually categories are set by the
 administrator, not by users, as in the case of tags.

 On Nov 30, 9:52 pm, Victor victor.akuj...@gmail.com wrote:



  Really, I'm no expert, maybe categories are  for SEO. However I
  believe that tags are more searchable, and you can have as many as you
  want. For example, look at engadget, each post has loads of tags. but
  fewer categories. I'ld say Categories to allow people look at your
  information and tags to add to the keywords meta tag on each post page
  for SEO. Once again I'm no expert, just a physics student who loves to
  code python and web2py.
  But then again Its one of tose questions that make you think.

  Victor

  On Nov 30, 3:30 pm, Thadeus Burgess thade...@thadeusb.com wrote:

   I was just curious why most blogs have archive then? Is it for S.E.O. ?

   If you have a tagging system, would you really need categories?, since 
   tags
   are basically a category cloud DO you really need both, how do
   categories interact with tags?

   -Thadeus

   On Mon, Nov 30, 2009 at 8:32 AM, Victor victor.akuj...@gmail.com wrote:
IMHO,  It's better to use categories because people would generally
visit your  blog looking for  posts on a topic (JQuery, Web2py,
Photoshop etc), if you had an Older/Newer posts link, then thats
fine.

On Nov 29, 10:43 am, Thadeus Burgess thade...@thadeusb.com wrote:
 What is the benefit or reason for having date-sorted archive links on 
 a
 blog?

 -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.comweb2py%2bunsubscr...@googlegroups.com
.
For more options, visit this group at
   http://groups.google.com/group/web2py?hl=en.

--

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://groups.google.com/group/web2py?hl=en.




[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 mdipie...@cs.depaul.edu wrote:
 key or user may be a reserved keyword in mysql and cannot used as a
 field name.

 On Dec 1, 2:08 pm, SergeyPo ser...@zarealye.com 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' - notice \n\t !

  Error traceback

  Traceback (most recent call last):

    File C:\web2py\gluon\restricted.py, line 184, in restricted

      exec ccode in environment

    File C:/web2py/applications/tpa/models/db.py, line 19, in module

      Field('password', 'string', length=32),

    File C:\web2py\gluon\sql.py, line 1205, in define_table

      query = t._create(migrate=migrate, fake_migrate=fake_migrate)

    File C:\web2py\gluon\sql.py, line 1607, in _create

      self._db._execute(query)

    File C:\web2py\gluon\sql.py, line 879, in lambda

      self._execute = lambda *a, **b: self._cursor.execute(*a, **b)

    File c:\python26\lib\site-packages\MySQLdb\cursors.py, line 166,
  in execute

      self.errorhandler(self, exc, value)

    File c:\python26\lib\site-packages\MySQLdb\connections.py, line
  35, in defaulterrorhandler

      raise errorclass, errorvalue

  ProgrammingError: (1064, You have an error in your SQL syntax; check
  the manual that corresponds to your MySQL server version for the right
  syntax to use near 'VARCHAR(16),\n\tcms_url VARCHAR(255),\n\tagency
  VARCHAR(32),\n\tuser VARCHAR(32),\n\tpas' at line 4)

  In file: C:\web2py\applications\tpa/models/db.py

  # coding: utf8

    import datetime

    #db = DAL('sqlite://storage.sqlite')       # if not, use SQLite or
  other DB

    db=DAL('mysql://tpa:123...@localhost/tpa', pool_size=10)

    ## if no need for session

  # session.forget()

    from gluon.tools import Service

  service=Service(globals())                   # for json, xml, jsonrpc,
  xmlrpc, amfrpc

    db.define_table('jurisdictions',

      Field('name', 'string', length=32),

      Field('key', 'string', length=16),

      Field('cms_url', 'string', length=255),

      Field('agency', 'string', length=32),

      Field('user', 'string', length=32),

      Field('password', 'string', length=32),

      )

--

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://groups.google.com/group/web2py?hl=en.




[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 ser...@zarealye.com 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 mdipie...@cs.depaul.edu wrote:

  key or user may be a reserved keyword in mysql and cannot used as a
  field name.

  On Dec 1, 2:08 pm, SergeyPo ser...@zarealye.com 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' - notice \n\t !

   Error traceback

   Traceback (most recent call last):

     File C:\web2py\gluon\restricted.py, line 184, in restricted

       exec ccode in environment

     File C:/web2py/applications/tpa/models/db.py, line 19, in module

       Field('password', 'string', length=32),

     File C:\web2py\gluon\sql.py, line 1205, in define_table

       query = t._create(migrate=migrate, fake_migrate=fake_migrate)

     File C:\web2py\gluon\sql.py, line 1607, in _create

       self._db._execute(query)

     File C:\web2py\gluon\sql.py, line 879, in lambda

       self._execute = lambda *a, **b: self._cursor.execute(*a, **b)

     File c:\python26\lib\site-packages\MySQLdb\cursors.py, line 166,
   in execute

       self.errorhandler(self, exc, value)

     File c:\python26\lib\site-packages\MySQLdb\connections.py, line
   35, in defaulterrorhandler

       raise errorclass, errorvalue

   ProgrammingError: (1064, You have an error in your SQL syntax; check
   the manual that corresponds to your MySQL server version for the right
   syntax to use near 'VARCHAR(16),\n\tcms_url VARCHAR(255),\n\tagency
   VARCHAR(32),\n\tuser VARCHAR(32),\n\tpas' at line 4)

   In file: C:\web2py\applications\tpa/models/db.py

   # coding: utf8

     import datetime

     #db = DAL('sqlite://storage.sqlite')       # if not, use SQLite or
   other DB

     db=DAL('mysql://tpa:123...@localhost/tpa', pool_size=10)

     ## if no need for session

   # session.forget()

     from gluon.tools import Service

   service=Service(globals())                   # for json, xml, jsonrpc,
   xmlrpc, amfrpc

     db.define_table('jurisdictions',

       Field('name', 'string', length=32),

       Field('key', 'string', length=16),

       Field('cms_url', 'string', length=255),

       Field('agency', 'string', length=32),

       Field('user', 'string', length=32),

       Field('password', 'string', length=32),

       )



--

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://groups.google.com/group/web2py?hl=en.




[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 login() function I found

def login(
   ..

table_user = self.settings.table_user
if 'username' in table_user.fields:
username = 'username'
else:
username = 'email'
old_requires = table_user[username].requires
table_user[username].requires = IS_NOT_EMPTY()

Now we've only one validator on the field which is IS_NOT_EMPTY()

Now I want to things to happen and I don't know how

1 - add validation IS_EMAIL() on the email field
2- be able to translate the error messages in both cases (if field is
empty or not an email)

note:

IN MY MODEL , I've :

auth.settings.table_user.email.requires = [IS_NOT_EMPTY(error_message
= T(Enter value)), IS_EMAIL(error_message=T(Enter Email)),
   IS_NOT_IN_DB(db,
auth.settings.table_user.email, error_message=T(value already in
database))]

but this seems to be not working

--

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://groups.google.com/group/web2py?hl=en.




[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 ser...@zarealye.com 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 mdipie...@cs.depaul.edu wrote:

  key or user may be a reserved keyword in mysql and cannot used as a
  field name.

  On Dec 1, 2:08 pm, SergeyPo ser...@zarealye.com 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' - notice \n\t !

   Error traceback

   Traceback (most recent call last):

     File C:\web2py\gluon\restricted.py, line 184, in restricted

       exec ccode in environment

     File C:/web2py/applications/tpa/models/db.py, line 19, in module

       Field('password', 'string', length=32),

     File C:\web2py\gluon\sql.py, line 1205, in define_table

       query = t._create(migrate=migrate, fake_migrate=fake_migrate)

     File C:\web2py\gluon\sql.py, line 1607, in _create

       self._db._execute(query)

     File C:\web2py\gluon\sql.py, line 879, in lambda

       self._execute = lambda *a, **b: self._cursor.execute(*a, **b)

     File c:\python26\lib\site-packages\MySQLdb\cursors.py, line 166,
   in execute

       self.errorhandler(self, exc, value)

     File c:\python26\lib\site-packages\MySQLdb\connections.py, line
   35, in defaulterrorhandler

       raise errorclass, errorvalue

   ProgrammingError: (1064, You have an error in your SQL syntax; check
   the manual that corresponds to your MySQL server version for the right
   syntax to use near 'VARCHAR(16),\n\tcms_url VARCHAR(255),\n\tagency
   VARCHAR(32),\n\tuser VARCHAR(32),\n\tpas' at line 4)

   In file: C:\web2py\applications\tpa/models/db.py

   # coding: utf8

     import datetime

     #db = DAL('sqlite://storage.sqlite')       # if not, use SQLite or
   other DB

     db=DAL('mysql://tpa:123...@localhost/tpa', pool_size=10)

     ## if no need for session

   # session.forget()

     from gluon.tools import Service

   service=Service(globals())                   # for json, xml, jsonrpc,
   xmlrpc, amfrpc

     db.define_table('jurisdictions',

       Field('name', 'string', length=32),

       Field('key', 'string', length=16),

       Field('cms_url', 'string', length=255),

       Field('agency', 'string', length=32),

       Field('user', 'string', length=32),

       Field('password', 'string', length=32),

       )



--

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://groups.google.com/group/web2py?hl=en.




[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
praticular

auth.settings.table_user.email.requires = [IS_NOT_EMPTY(error_message
= T(Enter value)), IS_EMAIL(error_message=T(Enter Email)),
   IS_NOT_IN_DB(db,
auth.settings.table_user.email, error_message=T(value already in
database))]

would be right for registration but not for login. IS_NOT_IN_DB should
be IS_IN_DB and IS_NOT_EMPTY is redundant given IS_EMAIL.

You are right there is a problem. Since login overrides the validation
you cannot markup its error message with T. This is a bug and I will
fix it tomorrow.


On Dec 2, 1:07 am, hamdy.a.farag hamdy.a.fa...@inbox.com wrote:
 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 login() function I found

 def login(
        ..

         table_user = self.settings.table_user
         if 'username' in table_user.fields:
             username = 'username'
         else:
             username = 'email'
         old_requires = table_user[username].requires
         table_user[username].requires = IS_NOT_EMPTY()

 Now we've only one validator on the field which is IS_NOT_EMPTY()

 Now I want to things to happen and I don't know how

 1 - add validation IS_EMAIL() on the email field
 2- be able to translate the error messages in both cases (if field is
 empty or not an email)

 note:

 IN MY MODEL , I've :

 auth.settings.table_user.email.requires = [IS_NOT_EMPTY(error_message
 = T(Enter value)), IS_EMAIL(error_message=T(Enter Email)),
                                            IS_NOT_IN_DB(db,
 auth.settings.table_user.email, error_message=T(value already in
 database))]

 but this seems to be not working

--

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://groups.google.com/group/web2py?hl=en.




[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, which is checked on every request
- If the task table is empty then start the background task with
subprocess and store the pid in the task table
- If the task table has an entry but its pid is not active (not in /
proc) then restart the background task and update the pid
- Else the task is running fine

This is a low bandwidth site so efficiency is not important. But the
above strategy seems cumbersome - is there a better way?

thanks,
Richard

--

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://groups.google.com/group/web2py?hl=en.