[web2py] Re: Sort order for related table grids in SQLFORM.smartgrid

2011-09-24 Thread Martin.Mulone
+1 it's confusing every body, I made this way because I don't want to touch 
DAL.

[web2py] Re: Suggested functionality extention for SQLTABLE

2011-06-23 Thread Martin.Mulone
This patch was applied?. I'm interested in this function.

[web2py] Re: error occurs when use executesql

2011-02-14 Thread Martin.Mulone
are you sure is not syntax error?

db.executesql(insert into hytest (conent)values(%s),content) 

conent



[web2py] Re: T-Shirts web2py

2011-01-26 Thread Martin.Mulone
like the idea, but we need a more complex design.

[web2py] Re: web2pyslices migration

2011-01-21 Thread Martin.Mulone
do you like web2pycentral?. :P

Our idea is to give solution to this items menu from web2py site: 

- User Voice
- Perhaps alter ego (FAQ)
- Videos
- Web2py slices
- Free Appliance
- Plugins

But we don't want to make it too complex, because the time we can dedicated 
to this. For comments we are going to use plugin comments. The vote system, 
we are going to have vote system (to show most popular) and ratings. Also 
for applications and plugin we are going to keep trak of downloads, to show 
the most download. The main idea is to promote web2py, people and projects 
too, open source and not.


[web2py] Re: SQLFORM not working on GAE

2011-01-20 Thread Martin.Mulone
db definition?.
exception message?.




Re: [web2py] Re: web2pyslices migration

2011-01-20 Thread Martin.Mulone
:O the rumors run fast

[web2py] [plugin] Plugin comments

2011-01-17 Thread Martin.Mulone
http://martin.tecnodoc.com.ar/myblog/2011/01/17/plugin-comments-for-web2py


[web2py] Re: account for each user

2011-01-16 Thread Martin.Mulone
in create.html

#if recording!=record.thedate:} 

you commented this line but you hasn't commented the pass, the same to 
{{#session.uuid=record.uuid}}
and what is recording??.


[web2py] Re: SCRIPT tag

2011-01-11 Thread Martin.Mulone
my mistake this code in view

view
 {{=XML(myscript)}} 
/view




[web2py] [Tips] Change style of sqlform

2011-01-10 Thread Martin.Mulone
http://martin.tecnodoc.com.ar/myblog/2011/01/10/hacking-web2py-sqlform-part-1


[web2py] Re: strange problem with checkbox and ajax

2010-12-28 Thread Martin.Mulone
I think you are checking request.vars instead of request.args

[web2py] Re: Not open source yet... but

2010-12-28 Thread Martin.Mulone
Look really good.

[web2py] Re: CSS probleme

2010-12-27 Thread Martin.Mulone
There are no css customization over upload input in the base.css, because 
any css rules is override with the browser, perhaps some yes, but it's hard 
to achieve and requiere some js hacks and don't work with all browser.  See 
http://www.quirksmode.org/dom/inputfile.html if you want to do that, any 
easy solution is welcome.

[web2py] Re: It is done GPL2 - LGPL3

2010-12-21 Thread Martin.Mulone
LGPL3 +1
Merry Christmas +1


Re: [web2py] Need help

2010-12-19 Thread Martin.Mulone


I dont't understand this line: seems to me that dogs_teamname is not defined

db.users.team.requires = IS_IN_DB(db, 'dogs.teamname', ' dogs_teamname')



[web2py] Re: web2py 1.90.1 is OUT

2010-12-19 Thread Martin.Mulone
Great!, I will test tomorrow!.

[web2py] Re: Say hello to pyStack.com

2010-12-19 Thread Martin.Mulone
I like it, congrats good app!. I have a sugestion, Do you consider to make 
janrain authetication?, because I don't like to put info of my google 
account. A bit late for exhibition also :).

[web2py] Re: csvstudio: for those who need to handle csv files

2010-12-19 Thread Martin.Mulone
+1

[web2py] the new dal is returning none instead of when default=

2010-12-18 Thread Martin.Mulone


From web2py from trunk I have this code. In older version has no problem with 
this. This stop instant press working with the last version.

==BEGIN CODE ==
db.define_table('problematic',
Field('id', 'id'),
Field('myfield','string',default=),
Field('myfield2','string',default=)
)
problematic = db(db.problematic.id0).select()  
if not problematic:
someid = db.problematic.insert(myfield=)

lastinserted = db(db.problematic.id0).select()[0]
print lastinserted.myfield
print lastinserted.myfield2
==END CODE ==

the second print return None when have to return .

http://code.google.com/p/web2py/issues/detail?id=137



[web2py] Re: Web2py Application Exhibition ( Final Day! )

2010-12-16 Thread Martin.Mulone
Thank you anthony. Sorry I was very busy yeasterday. I'll fix this today. 
And yes don't vote for app exhibition is going to be deleted.

Re: [web2py] Re: passing width and height args to download controller from image

2010-12-15 Thread Martin.Mulone
It's a security issue that can be exploided if you allow public to manage 
width and height. 

Google in appengine for serving image the size has to be in: 

IMG_SERVING_SIZES = [
  32, 48, 64, 72, 80, 90, 94, 104, 110, 120, 128, 144,
  150, 160, 200, 220, 288, 320, 400, 512, 576, 640, 720,
  800, 912, 1024, 1152, 1280, 1440, 1600]


[web2py] Re: Unable to call method in module

2010-12-11 Thread Martin.Mulone
checkrole.py
---
class checkrole():
def mysession(name):
username=name
role=db.user(role,ldap=username)
return role

db.py
-
db=SQLDB('mysql://root:test...@localhost/web')
modrole=local_import('checkrole')
myrole = modrole.checkrole()
db.define_table('user',Field('ldap'),Field('role'))



my controller
---
def check():
form=FORM(INPUT(_name='ldap',_type='text'),INPUT(_type='Submit'))
if form.accepts(request.vars):
return dict(roles=myrole.mysession(request.vars.ldap))
return dict(form=form) 

[web2py] Re: SEO Tips How this can be applied in web2py apps?

2010-12-11 Thread Martin.Mulone
There are some links in menu, that point to ex: web2py.com/book, in
web2py mainsite. Perhaps we need to change to www.web2py.com.

[web2py] Web2py Application Exhibition 2.0

2010-12-08 Thread Martin.Mulone
You can start submitting your application

http://w2pexhibition.appspot.com/

You can vote many applications you want only one time (you can
unvote). The most voted application won. I made an example and there
is link with the source code in the site. I'm only made the app, Mr.
Netadmin is in charge :). All suggestion are welcome.


[web2py] Re: Manipulate Rows Object and/or SQLTABLE

2010-11-15 Thread Martin.Mulone
If it's for small things you can use:

http://groups.google.com/group/web2py/browse_thread/thread/1a1d52d29611564d/3ef8ca27ecfcea58?lnk=gstq=table+div#3ef8ca27ecfcea58



On Nov 9, 2:36 pm, villas villa...@gmail.com wrote:
 I want to customize the result of SQLTABLE so that it can make me a
 nice table without lines and lines of code in my view file.  To
 achieve that,  I need for example to:

 1) Add columns to hold icons and links and extra stuff.
 2) Customize the rows, e.g.  links which depend on content,  different
 icons etc

 After giving it some thought,  I think I should leave SQLTABLE alone
 and concentrate on 'improving' the rows object so that it contains
 everything I want before passing it to SQLTABLE.

 To do 1) I can simply add a column to the rows object. How can I best
 do that?
 To do 2) I could iterate the rows object and make changes.

 Or  maybe there is another way.
 I appreciate that if I want to style the HTML table,  I'll have to
 write my code in the form (which I am trying to avoid).

 Thanks,
 -D


[web2py] simple table div

2010-11-10 Thread Martin.Mulone
I decided to start to make my own implementation of table maker. The
diference with sqltable or TABLE(), it use div (more flexible), accept
web2py helpers as values and is very simple to use.

Example:

http://web2pytesting.appspot.com/tablediv/

Code:

table =
SIMPLE_TABLE_DIV(fixedwidth=True,maxwidth=500,name=simplet1,number_list=True)
table.add_header([{'caption':'Header 1', 'width': 200},
  {'caption':'Header 2', 'width': 100},
  {'caption':'Header 3', 'width':
100},
  ])
table.add_row(['Value 1','Value 2', 'Value 3'])
table.add_row(['Value 4','Value 5', 'Value 6'])
table.add_row(['Value 7','Value 8', 'Value 9'])

If anyone is interested in this or want to contribute, i will put in
bitbucket.


[web2py] Re: new welcome app in trunk but minor problem...

2010-11-06 Thread Martin.Mulone
I don't remember if menu always make a link, if this is not correct I
am wrong. The link I put with void, the action is to expand submenu.
Compare with an pc application, for example when you click file,
action executed is to display sub-menu: 'open','close','exit', there
are no action 'file'. The same here 'Resorces' is to display submenus
and so on

On 5 nov, 22:14, mdipierro mdipie...@cs.depaul.edu wrote:
 I understand that. But do you want dead links in the welcome menu?

 On Nov 5, 7:13 pm, Martin.Mulone mulone.mar...@gmail.com wrote:







  here i found some explanation

 http://www.webdevelopersnotes.com/tutorials/javascript/javascript_eve...

  On 5 nov, 20:57, Martin.Mulone mulone.mar...@gmail.com wrote:

   This is the correct way to make a link to do nothing, so you can click
   and going to display sub-menus without going to a link. If you put a
   normal link with # or #nolink some browser (mosts) interpreat to
   search in the page this anchor, and move the screen.

   On 5 nov, 20:44, mdipierro mdipie...@cs.depaul.edu wrote:

I applied part of the patch but I do not understand the A(...void(0)).
Why?

On Nov 5, 11:58 am, Martín Mulone mulone.mar...@gmail.com wrote:

 Massimo, reviewing the welcome in trunk, I see that i made some little
 important mistakes. Also I made a little fix to the menu, to work 
 with touch
 screens. See the attached patch.

 2010/11/4 Richard richar...@gmail.com

  Love the new welcome app design.

  Instead of developing flash further how about just using jgrowl
  instead.

   It requires downloading 3 more files and the advantages are 
   minimal.

  I think the advantages are worthwhile and the extra files do not
  matter if they are stored in sub-folders to avoid clutter.

  On Nov 4, 5:27 am, mdipierro mdipie...@cs.depaul.edu wrote:
   One thing we can do is a FLASH helper that allows:

   response.flash=flash('test',mode='warn')

   This is already in the new welcome app but we could promote flash 
   to a
   FLASH helper.  Pros? Cons?
   It would link a helper to some image static files that may not be
   there.

   We could add some JS code insider that can reposition it but I do 
   not
   think that is a good idea. The position should be fixed and 
   determined
   by the CSS.

   Massimo

   On Nov 3, 12:09 pm, rochacbruno rochacbr...@gmail.com wrote:

Would be a good idea to have more options for flash.

I.e: response.flash('hello world',position='top-right')

Enviado via iPhone

Em 03/11/2010, às 14:56, Martín Mulone mulone.mar...@gmail.com
  escreveu:

 Massimo I think welcome is broken in trunk, there no files in 
 views/
  :O

 Often the user does not notice that something has just 
 appeared in
  the flash box

 Perhaps a variation of flash 'silen', that goes like an 
 application
  statusbar, on bottom and thin.

 2010/11/3 mdipierro mdipie...@cs.depaul.edu
 I think this is fixed and layouts now work with both old 
 welcome and
 new welcome.

 Can somebody try it please?

 Just install one random layout (old welcome and new welcome) 
 and use
 firebug to make sure superfish.js is found.

 Massimo

 On Nov 3, 4:37 am, Branko Vukelic bg.bra...@gmail.com wrote:
  On Wed, Nov 3, 2010 at 6:00 AM, mdipierro 
  mdipie...@cs.depaul.edu
  wrote:
   We have two solutions:
   1) change all layouts w2p files to look for superfish in 
   static/
  or in
   static/js
   2) move all the current static files in static/ and our of
  static/css,
   static/js, static/images/.

   Probably 1) is a better option.

  If you can customize it anyway you want in a custom 
  template, I
  really
  see no problem with 1).

  --
  Branko Vukelić

  bg.bra...@gmail.com
  stu...@brankovukelic.com

  Check out my blog:http://www.brankovukelic.com/
  Check out my 
  portfolio:http://www.flickr.com/photos/foxbunny/
  Registered Linux user #438078 (http://counter.li.org/)
  I hang out on identi.ca:http://identi.ca/foxbunny

  Gimp Brushmakers Guildhttp://bit.ly/gbg-group

 --
 My blog:http://martin.tecnodoc.com.ar
 My portfolio *spanish*:http://www.tecnodoc.com.ar
 Checkout my last proyect 
 instant-press:http://www.instant2press.com

 --
 My blog:http://martin.tecnodoc.com.ar
 My portfolio *spanish*:http://www.tecnodoc.com.ar
 Checkout my last proyect instant-press:http://www.instant2press.com

  welcome_001.diff
 4KViewDownload


[web2py] Re: new welcome app in trunk but minor problem...

2010-11-05 Thread Martin.Mulone
This is the correct way to make a link to do nothing, so you can click
and going to display sub-menus without going to a link. If you put a
normal link with # or #nolink some browser (mosts) interpreat to
search in the page this anchor, and move the screen.

On 5 nov, 20:44, mdipierro mdipie...@cs.depaul.edu wrote:
 I applied part of the patch but I do not understand the A(...void(0)).
 Why?

 On Nov 5, 11:58 am, Martín Mulone mulone.mar...@gmail.com wrote:







  Massimo, reviewing the welcome in trunk, I see that i made some little
  important mistakes. Also I made a little fix to the menu, to work with touch
  screens. See the attached patch.

  2010/11/4 Richard richar...@gmail.com

   Love the new welcome app design.

   Instead of developing flash further how about just using jgrowl
   instead.

It requires downloading 3 more files and the advantages are minimal.

   I think the advantages are worthwhile and the extra files do not
   matter if they are stored in sub-folders to avoid clutter.

   On Nov 4, 5:27 am, mdipierro mdipie...@cs.depaul.edu wrote:
One thing we can do is a FLASH helper that allows:

response.flash=flash('test',mode='warn')

This is already in the new welcome app but we could promote flash to a
FLASH helper.  Pros? Cons?
It would link a helper to some image static files that may not be
there.

We could add some JS code insider that can reposition it but I do not
think that is a good idea. The position should be fixed and determined
by the CSS.

Massimo

On Nov 3, 12:09 pm, rochacbruno rochacbr...@gmail.com wrote:

 Would be a good idea to have more options for flash.

 I.e: response.flash('hello world',position='top-right')

 Enviado via iPhone

 Em 03/11/2010, às 14:56, Martín Mulone mulone.mar...@gmail.com
   escreveu:

  Massimo I think welcome is broken in trunk, there no files in views/
   :O

  Often the user does not notice that something has just appeared in
   the flash box

  Perhaps a variation of flash 'silen', that goes like an application
   statusbar, on bottom and thin.

  2010/11/3 mdipierro mdipie...@cs.depaul.edu
  I think this is fixed and layouts now work with both old welcome and
  new welcome.

  Can somebody try it please?

  Just install one random layout (old welcome and new welcome) and use
  firebug to make sure superfish.js is found.

  Massimo

  On Nov 3, 4:37 am, Branko Vukelic bg.bra...@gmail.com wrote:
   On Wed, Nov 3, 2010 at 6:00 AM, mdipierro 
   mdipie...@cs.depaul.edu
   wrote:
We have two solutions:
1) change all layouts w2p files to look for superfish in static/
   or in
static/js
2) move all the current static files in static/ and our of
   static/css,
static/js, static/images/.

Probably 1) is a better option.

   If you can customize it anyway you want in a custom template, I
   really
   see no problem with 1).

   --
   Branko Vukelić

   bg.bra...@gmail.com
   stu...@brankovukelic.com

   Check out my blog:http://www.brankovukelic.com/
   Check out my portfolio:http://www.flickr.com/photos/foxbunny/
   Registered Linux user #438078 (http://counter.li.org/)
   I hang out on identi.ca:http://identi.ca/foxbunny

   Gimp Brushmakers Guildhttp://bit.ly/gbg-group

  --
  My blog:http://martin.tecnodoc.com.ar
  My portfolio *spanish*:http://www.tecnodoc.com.ar
  Checkout my last proyect instant-press:http://www.instant2press.com

  --
  My blog:http://martin.tecnodoc.com.ar
  My portfolio *spanish*:http://www.tecnodoc.com.ar
  Checkout my last proyect instant-press:http://www.instant2press.com

   welcome_001.diff
  4KViewDownload


[web2py] Re: new welcome app in trunk but minor problem...

2010-11-05 Thread Martin.Mulone
here i found some explanation

http://www.webdevelopersnotes.com/tutorials/javascript/javascript_event_handlers_onclick_ondblclick.php3

On 5 nov, 20:57, Martin.Mulone mulone.mar...@gmail.com wrote:
 This is the correct way to make a link to do nothing, so you can click
 and going to display sub-menus without going to a link. If you put a
 normal link with # or #nolink some browser (mosts) interpreat to
 search in the page this anchor, and move the screen.

 On 5 nov, 20:44, mdipierro mdipie...@cs.depaul.edu wrote:







  I applied part of the patch but I do not understand the A(...void(0)).
  Why?

  On Nov 5, 11:58 am, Martín Mulone mulone.mar...@gmail.com wrote:

   Massimo, reviewing the welcome in trunk, I see that i made some little
   important mistakes. Also I made a little fix to the menu, to work with 
   touch
   screens. See the attached patch.

   2010/11/4 Richard richar...@gmail.com

Love the new welcome app design.

Instead of developing flash further how about just using jgrowl
instead.

 It requires downloading 3 more files and the advantages are minimal.

I think the advantages are worthwhile and the extra files do not
matter if they are stored in sub-folders to avoid clutter.

On Nov 4, 5:27 am, mdipierro mdipie...@cs.depaul.edu wrote:
 One thing we can do is a FLASH helper that allows:

 response.flash=flash('test',mode='warn')

 This is already in the new welcome app but we could promote flash to a
 FLASH helper.  Pros? Cons?
 It would link a helper to some image static files that may not be
 there.

 We could add some JS code insider that can reposition it but I do not
 think that is a good idea. The position should be fixed and determined
 by the CSS.

 Massimo

 On Nov 3, 12:09 pm, rochacbruno rochacbr...@gmail.com wrote:

  Would be a good idea to have more options for flash.

  I.e: response.flash('hello world',position='top-right')

  Enviado via iPhone

  Em 03/11/2010, às 14:56, Martín Mulone mulone.mar...@gmail.com
escreveu:

   Massimo I think welcome is broken in trunk, there no files in 
   views/
:O

   Often the user does not notice that something has just appeared in
the flash box

   Perhaps a variation of flash 'silen', that goes like an 
   application
statusbar, on bottom and thin.

   2010/11/3 mdipierro mdipie...@cs.depaul.edu
   I think this is fixed and layouts now work with both old welcome 
   and
   new welcome.

   Can somebody try it please?

   Just install one random layout (old welcome and new welcome) and 
   use
   firebug to make sure superfish.js is found.

   Massimo

   On Nov 3, 4:37 am, Branko Vukelic bg.bra...@gmail.com wrote:
On Wed, Nov 3, 2010 at 6:00 AM, mdipierro 
mdipie...@cs.depaul.edu
wrote:
 We have two solutions:
 1) change all layouts w2p files to look for superfish in 
 static/
or in
 static/js
 2) move all the current static files in static/ and our of
static/css,
 static/js, static/images/.

 Probably 1) is a better option.

If you can customize it anyway you want in a custom template, I
really
see no problem with 1).

--
Branko Vukelić

bg.bra...@gmail.com
stu...@brankovukelic.com

Check out my blog:http://www.brankovukelic.com/
Check out my portfolio:http://www.flickr.com/photos/foxbunny/
Registered Linux user #438078 (http://counter.li.org/)
I hang out on identi.ca:http://identi.ca/foxbunny

Gimp Brushmakers Guildhttp://bit.ly/gbg-group

   --
   My blog:http://martin.tecnodoc.com.ar
   My portfolio *spanish*:http://www.tecnodoc.com.ar
   Checkout my last proyect 
   instant-press:http://www.instant2press.com

   --
   My blog:http://martin.tecnodoc.com.ar
   My portfolio *spanish*:http://www.tecnodoc.com.ar
   Checkout my last proyect instant-press:http://www.instant2press.com

    welcome_001.diff
   4KViewDownload


[web2py] Re: new admin layout

2010-11-04 Thread Martin.Mulone
Thanks branko look very good.

Some little things

-less rounded in title headers?
-the orange in button edit still killing my eyes?
-submit button has no margins
-Why not by default in edit = all collapsed ?
-The font color in top menu orange with green background is not
getting well, you tried with font white ?

The appadmin is going to have the same theme no?.


On 4 nov, 02:07, Jonathan Lundell jlund...@pobox.com wrote:
 On Nov 3, 2010, at 8:21 PM, mdipierro wrote:



  Here is the latest work by Branko (with minor edits by me):

 This scales up (cmd +) rather badly under Safari, the buttons especially.









   http://web2py.com/demo_admin

  (also in trunk)

  This is the older one

   http://web2py.com/demo_admin_halloween

  My edits are:
  1) I have made all edit buttons orange
  2) links files and no longer buttons (consistently with original
  version)
  3) changed order from [file,edit,delete] to [edit,delete,file] since
  alignment is cleaner
  4) moved all green links to right

  TODO:
  - I would prefer no shadow under icons.
  - Text like No models under design does not appear aligned properly.

  I really like this new admin.


[web2py] MENU improvements

2010-11-03 Thread Martin.Mulone
I want to pass to classical menu

response.menu = [
(T('Home'), False, URL(request.application,'default','index'),'',
[])
]

something like _onclick= to make an ajax call. I implement myself my
own menu class, but broke the compatibility. There are any way to do
this?, because is very usefull to have this.


[web2py] Re: welcome app normalize hack ie and html5 ready

2010-11-02 Thread Martin.Mulone
I made a new version with new updates and fixes, now on bitbucket.

http://martin.tecnodoc.com.ar/myblog/2010/11/01/my-welcome-web2py-scaffold-application

On Sep 29, 6:48 am, Tom Atkins minkto...@gmail.com wrote:
 Brilliant - many thanks Martin - this is very helpful and great to see
 web2py looking more beautiful.

 On 28 September 2010 23:29, Martin.Mulone mulone.mar...@gmail.com wrote:



  It's cost me a lot of time really, but I think i did it, after many
  try, i think the only way we have proper columns (sidebars) is with
  fixed width, so i have to know in the moment of views if its sidebar
  right, sidebar left, both or none. This complex the view, but work out
  the box without editing css or commenting lines. The only have to do
  is to modified left_sidebar_enabled and/or right_sidebar_enabled vars.
  Now you can change footer, header, statusbar in views. Perhaps its not
  going to satistifize all, but its a model of what can we do in layout-
  view.

  Both sidebars
 http://web2pytesting.appspot.com/both/default/index

  Right Sidebar only
 http://web2pytesting.appspot.com/right/default/index

  Left Sidebar only
 http://web2pytesting.appspot.com/left/default/index

  None sidebars
 http://web2pytesting.appspot.com/

  Code and W2p
 http://web2pytesting.appspot.com/static/welcome.zip
 http://web2pytesting.appspot.com/static/welcome.w2p


[web2py] Re: welcome app normalize hack ie and html5 ready

2010-11-02 Thread Martin.Mulone
the new logo powered by is there I didn't make an example with the new
version, you have to download from repository.

On 2 nov, 19:16, Bruno Rocha rochacbr...@gmail.com wrote:
 Needs to change the 'powered by' sticker at the bottom. to the new one.

 2010/11/2 Martin.Mulone mulone.mar...@gmail.com









  I made a new version with new updates and fixes, now on bitbucket.

 http://martin.tecnodoc.com.ar/myblog/2010/11/01/my-welcome-web2py-sca...

  On Sep 29, 6:48 am, Tom Atkins minkto...@gmail.com wrote:
   Brilliant - many thanks Martin - this is very helpful and great to see
   web2py looking more beautiful.

   On 28 September 2010 23:29, Martin.Mulone mulone.mar...@gmail.com
  wrote:

It's cost me a lot of time really, but I think i did it, after many
try, i think the only way we have proper columns (sidebars) is with
fixed width, so i have to know in the moment of views if its sidebar
right, sidebar left, both or none. This complex the view, but work out
the box without editing css or commenting lines. The only have to do
is to modified left_sidebar_enabled and/or right_sidebar_enabled vars.
Now you can change footer, header, statusbar in views. Perhaps its not
going to satistifize all, but its a model of what can we do in layout-
view.

Both sidebars
   http://web2pytesting.appspot.com/both/default/index

Right Sidebar only
   http://web2pytesting.appspot.com/right/default/index

Left Sidebar only
   http://web2pytesting.appspot.com/left/default/index

None sidebars
   http://web2pytesting.appspot.com/

Code and W2p
   http://web2pytesting.appspot.com/static/welcome.zip
   http://web2pytesting.appspot.com/static/welcome.w2p

 --

 http://rochacbruno.com.br


[web2py] Re: Powered by web2py

2010-10-27 Thread Martin.Mulone
About Instant Press, instead of testing page make link to my new blog
made with instant press about instant press, python and web2py . I am
not going to maintain test page in appspot but the blog yes.

The link is http://martin.tecnodoc.com.ar/

On Oct 24, 10:44 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 If you do, I'll link it. ;-)

 On Oct 24, 8:34 pm, Anthony av201...@yahoo.com wrote:



  That was fast. Looks great.

  If you want to link it from the main site, I'll volunteer to keep it
  up to date. I think prospective users really like to see some
  examples, so we should make them easy to find.

  Anthony

  On Oct 24, 7:05 pm, mdipierro mdipie...@cs.depaul.edu wrote:

   On Oct 24, 5:26 pm, Anthony av201...@yahoo.com wrote:

A few more ideas for the Poweredby page:

- When entering the URL for a site, failure to include the http://;
results in the link simply not working. To avoid this problem, maybe
include the http://; in the URL text box by default (or automatically
prepend http://; to any URL submitted without http://;).

   done

- I think we need a little more vertical space between the name of one
site and the thumbnail of the site below it. As is, once you're in the
middle of the page and can no longer see the top or bottom row for
reference, it's difficult to tell whether the name/link is associated
with the thumbnail above it or below it.

   done

- Is there a reason the Poweredby page doesn't use the same layout as
the new web2py.com site?

   I think it looks better on black background.

- Would be great if we could have a handful of featured sites
displayed separately at the top -- there are a few real standouts that
are getting lost in the crowd.

   done. Feel free to mark some as featured

- Of course, now that we've got a great Poweredby list, we need to
link to it from somewhere -- maybe add a link in the right sidebar of
web2py.com (maybe at the top of the list of links, or even as a
separate link just below the book).

   I am very skeptical in our ability to keep it up to date.
   If we can do that, I am happy to link from the main site.

Anthony

On Oct 22, 10:58 pm, mdipierro mdipie...@cs.depaul.edu wrote:

 This was done by the wizard and it is already better than the previous
 one:

http://web2py.com/poweredby

 Has thumbnails.

 On Oct 22, 8:07 pm, mdipierro mdipie...@cs.depaul.edu wrote:

  OK. I have an account...

  On Oct 22, 6:19 pm, rochacbruno rochacbr...@gmail.com wrote:

   Thumbalizer has an API , REST and sample code for PHP but we can 
   fork to Python.

   Enviado via iPhone

   Em 22/10/2010, às 20:59, mdipierro mdipie...@cs.depaul.edu 
   escreveu:

This thread contains lots of really nice sites. Others are 
listed
here:

   http://web2py.com/poweredby

If one of you had some spare time were to send me screenshots 
scaled
200x150 nameswww.domain.com.pngetcforallweb2pypoweredsites, I
would use the template ofhttp://web2py.comandmakeaniceshowroom
with an ajax gallery.

Massimo

On Oct 22, 4:50 pm, Anthony av201...@yahoo.com wrote:
Very cool. Though it has some major display problems in IE7 
(and some
minor problems with the home page in IE8). Also, you should 
probably
change the site's favicon -- it's actually using the new web2py
favicon.

Anthony

On Oct 22, 5:24 pm, Bruno Rocha rochacbr...@gmail.com wrote:

One more Brazilian site developed with WEB2PY

   http://campus.visie.com.br/default/index

This is the site where one of the most importants creative 
design agency of
São Paulo are giving online courses, they used web2py and 
Amazon with boto
library for video streaming.

This website was develop during an event with the help of all 
developers
attending, something like a Coding Dojo

2010/10/10 Bruno Rocha rochacbr...@gmail.com

A student of one of my classes of web2py training in Brazil, 
research the
web and made a list of websites powered by web2py.

he separates in categories: Populars, Great Ones, Good ones 
and which keeps
scaffold layout.

I found good designed websites in that list.

   http://www.elizabethscanvas.org/
   http://www.qakit.com/
   http://ru.ly/( an URL shortener)

Forwarded is the entire list, do you know someone else?

---
-- Forwarded message --
From: Rene Guerrero rene...@gmail.com
Date: 2010/10/10
Subject: Sites que utilizam web2py
To: rochacbr...@gmail.com

Bruno

Participei no seu curso de web2py básico na Tempo Real 
Eventos em 28 de
agosto em São Paulo.
Desde aquela data 

[web2py] Re: Uservoice clone

2010-10-21 Thread Martin.Mulone
We need to have own application made it in web2py. This is great!.
When you have something to show, some preview, screenshot, anything
tell us.

On 21 oct, 03:51, Adi aditya.sa...@gmail.com wrote:
 Hi all,

 I'd like to introduce you all to a very simple uservoice clone app
 made in web2py:http://github.com/adsahay/web2py_feedback

 It is still work in progress. The main motivation for this app is that
 the existing feedback applications, apart from being sometimes
 ridiculously priced, force users to create multiple accounts (one for
 the app, one for passing feedback) which is a major turn-off. If I'm
 registered as a user at Radbox (http://radbox.me), I should be able to
 pass feedback/bugs/comments on the application without creating a new
 user account on uservoice or such application. This is the motivation
 behind the web2py_feedback (till I come up with a nicer name).

 I'd like help from the community on making this app plug-n-play not
 just for web2py apps, but for any web application that wants an
 accompanying feedback app. Also, this doesn't take advantage of the
 nicer layouts which are available now.

 Technical query - what's a good way to make this single-sign on
 friendly for any app to use? My own opinion is that feedback is not a
 very confidential thing, so we need not use the strictest
 authentication mechanism, but there has to be a way to transfer some
 user credentials from an application to its feedback app, without
 needing the user to create a new login. This allows the app developers
 to know which user faced a particular problem, and maybe even look up
 the user's application usage history to debug it.

 When it reaches a decent version 1.0, we can use it for web2py
 community as well (we plan to use it for Radbox soon).


[web2py] Re: web2py wizard (alpha) is here

2010-10-21 Thread Martin.Mulone
or make your own amazon, when people buy the book, it render the
online version to the book. +1 great video.

On Oct 21, 5:08 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 LOL

 Think about me. This makes the book obsolete and the publisher did not
 even send tot amazon yet. ;-(

 On Oct 21, 2:14 pm, guruyaya guruy...@gmail.com wrote:



  Everytime I say web2py will never be easier to develop with, you
  make me a liar. Amazing.
  On Oct 21, 7:43 pm, mr.freeze nat...@freezable.com wrote:

   This is very handy. I got an error on step 1 with Python 2.6.  I think
   line 62 of wizard.py should be:
   from gluon.contrib.simplejson import loads

   On Oct 21, 7:21 am, mdipierro mdipie...@cs.depaul.edu wrote:

app/wizard.metadata

it is a pickle

On Oct 21, 5:40 am, blackthorne francisco@gmail.com wrote:

 Back from Egypt and I seem to be looking at something completely
 new...
 new website, new wizard thing, great work!

 I became curious about this.
 Does this wizard keep a record in some language such as YAML?

 It would be nice so that you could share one simple text file with the
 pure application definition, useful for debugging in groups like this,
 useful to share apps or to generate other wizards by simply defining
 in YAML the fields and the prepopulated values..

 Best regards

 On Oct 21, 6:55 am, mdipierro mdipie...@cs.depaul.edu wrote:

 http://vimeo.com/16048970

  Now I am going to sleep a few ours


[web2py] Re: Instant Press in beta

2010-10-20 Thread Martin.Mulone
thanks richard, this a personal project. Google analytic in the next
beta i will add as a widget. I want to do my own implementation of
lightbox, but i have some others priorities, but you can always can
add yours javascripts, i recommend you to take a look to customization
in project page, you can add your own customization and you are not
going to have a problems with futures upgrade, CSS edit like in video
is to edit online without touching code.

The plans for a future:
* Test and fix bug a high prioritie now. I start my blog in instant
press, so i can see the problem in real life :P.
* Full text and language support, need an improvement here.
* Performance. I know there are some highload in gae.
* Markmin support.
* Comment system need two features: antispam, and mail notification. I
will work in this in a future, but now if you need this I recommend to
use disqus that come with ip already.
* More test and fixings bugs that i introduce fixing things :P


On 20 oct, 01:45, Richard richar...@gmail.com wrote:
 On Oct 19, 8:58 pm, Martin.Mulone mulone.mar...@gmail.com wrote:

   Opening and closing all those admin panels takes a lot of mouse work

  I'm going to see, I don't know anything about events keys in js

 I used this library for a previous 
 project:http://code.google.com/p/js-hotkeys/
 Very simple: $('div.foo').bind('keydown', 'Ctrl+a', fn);

  - I saw you can change the CSS. Can you also embed additional JavaScript?

  Not at this moment but its easy to implement, do you think that this is 
  usefull?

 I was thinking about migrating an existing site to Instant Press that
 has a photo gallery via the lightbox 
 library:http://leandrovieira.com/projects/jquery/lightbox/
 Also I usually embed the Google Analytics ga.js file.

 Would supporting JavaScript be the best approach to supporting this?

 BTW love your code style - lots of whitespace.

 Do you have plans for the future? Is this a personal project or for
 work?
 Regarding a better method for full text search, is this 
 useful:http://billkatz.com/2009/6/Simple-Full-Text-Search-for-App-Engine

 Richard


[web2py] Re: Instant Press in beta

2010-10-19 Thread Martin.Mulone
 Martin, a suggestion is to include the option of writing in Markmin format.

Ok I believe this not hard to implement

 Do you have a clone in BitBicket or Mercurial in Google ?

I'm planning to move to bitbucket.

 Opening and closing all those admin panels takes a lot of mouse work

I'm going to see, I don't know anything about events keys in js

- I saw you can change the CSS. Can you also embed additional
JavaScript?

Not at this moment but its easy to implement, do you think that this
is usefull?

- How would you recommend adding extensions, such as a contact form?

I dont think about that yet, but it can be future feature. It's not
hard to implement, the problem is design problem of putting another
action in article list :p.


[web2py] Re: tip of the day. The power of routes

2010-10-19 Thread Martin.Mulone
Great tip!. This is very usefull! and you make it in trunk :D

On 17 oct, 23:03, mdipierro mdipie...@cs.depaul.edu wrote:
 Replace your web2py/routes.py with this:

 - begin routes.py---
 try: config=open('routes.conf','r').read()
 except: config=''
 def auto_in(apps):
     routes=[
         ('/robots.txt','/welcome/static/robots.txt'),
         ('/favicon.ico','/welcome/static/favicon.ico'),
         ('/admin$a','/admin$a'),
         ]
     for a,b in [x.strip().split() for x in apps.split('\n') \
         if x.strip() and not x.strip().startswith('#')]:
         if not b.startswith('/'): b='/'+b
         if b.endswith('/'): b=b[:-1]
         app = b.split('/')[1]
         routes+=[
             ('.*:https?://(.*\.)?%s:$method /' % a,'%s' % b),
             ('.*:https?://(.*\.)?%s:$method /static/$a' % a,'%s/static/
 $a' % app),
             ('.*:https?://(.*\.)?%s:$method /appadmin/$a' % a,'%s/
 appadmin/$a' % app),
             ('.*:https?://(.*\.)?%s:$method /$a' % a,'%s/$a' % b),
             ]
     return routes

 def auto_out(apps):
     routes=[]
     for a,b in [x.strip().split() for x in apps.split('\n') \
         if x.strip() and not x.strip().startswith('#')]:
         if not b.startswith('/'): b='/'+b
         if b.endswith('/'): b=b[:-1]
         app = b.split('/')[1]
         routes+=[
             ('%s/static/$a' % app,'static/$a'),
             ('%s/appadmin/$a' % app, '/appadmin/$a'),
             ('%s/$a' % b, '/$a'),
             ]
     return routes

 routes_in=auto_in(config)
 routes_out=auto_out(config)
 --- END ---

 what does it do? It writes routes for you based on a simpler routing
 configuration file called routes.conf. here is an example:

 - BEGIN routes.conf---
 127.0.0.1       /examples/default
 domain1.com /app1/default
 domain2.com /app2/default
 domain3.com /app3/default
 - END --

 It maps a domain (the left had side) into an app and it shortens the
 URLs for the app, by removing the listed path prefix. That means

 http://domain1.com/indexwill be mapped into  
 /app1/default/indexhttp://domain2.com/indexwill be mapped into  
 /app2/default/index

 It is safe in that it preserves admin, appadmin, static files,
 favicon.ico and robots.txt.

 http://domain1.com/favicon.icohttp://domain1.com/robots.txthttp://domain1.com/admin/...
    /admin/...http://domain1.com/appadmin/...  
 /app1/appadmin/...http://domain1.com/static/...  /app1/static/...

 and vice-versa.

 It does assume one app per domain.

 I think something like this should be default since lots of people
 find routes.py hard to work with.
 Comments? Suggestions?

 Massimo


[web2py] Re: Problem to deploy web2py in a Shared Hosting with web2py

2010-10-18 Thread Martin.Mulone
python 2.3 is not supported: only python 2.4+

On 18 oct, 06:36, victors victor.san...@gmail.com wrote:
 OK Maximo

 here the log:

 MOD_PYTHON ERROR

 ProcessId:      15678
 Interpreter:    'www.empresasdomotica.com'

 ServerName:     'www.empresasdomotica.com'
 DocumentRoot:   '/home/sangar05/domains/empresasdomotica.com/
 public_html'

 URI:            '/'
 Location:       None
 Directory:      '/home/sangar05/domains/empresasdomotica.com/
 public_html/'
 Filename:       '/home/sangar05/domains/empresasdomotica.com/
 public_html/'
 PathInfo:       ''

 Phase:          'PythonHandler'
 Handler:        'web2py_modpython'

 Traceback (most recent call last):

   File /usr/lib/python2.3/site-packages/mod_python/importer.py, line
 1537, in HandlerDispatch
     default=default_handler, arg=req, silent=hlist.silent)

   File /usr/lib/python2.3/site-packages/mod_python/importer.py, line
 1202, in _process_target
     module = import_module(module_name, path=path)

   File /usr/lib/python2.3/site-packages/mod_python/importer.py, line
 296, in import_module
     log, import_path)

   File /usr/lib/python2.3/site-packages/mod_python/importer.py, line
 680, in import_module
     execfile(file, module.__dict__)

   File /home/sangar05/domains/empresasdomotica.com/public_html/
 web2py_modpython.py, line 2

     import modpythonhandler

     ^

 SyntaxError: invalid syntax

 MODULE CACHE DETAILS

 Accessed:       Mon Oct 18 05:29:16 2010
 Generation:     0

 _mp_63fde3c7ff02e844e766cd3a6c83184d {
   FileName:     '/home/sangar05/domains/empresasdomotica.com/
 public_html/web2py_modpython.py'
   Instance:     1 [IMPORT]
   Generation:   0 [ERROR]
   Modified:     Tue Sep 21 10:43:52 2010

 }

 I think is important for a lot of people that love web2py and need
 easy deploy.

 Other question, Is possible with mod_cgi and mod_rewrite if you have
 ssh access.

 Thank you again.

 Best regards
 Víctor

 On 25 sep, 17:08, mdipierro mdipie...@cs.depaul.edu wrote:



  I need the traceback from the apache log. It could be a path error or
  a permission error.
  I should say I have tested mod_python long ago but nobody uses it any
  more mod_python is no longer an active project.

  On Sep 25, 2:59 am, victors victor.san...@gmail.com wrote:

   Hi,
   My hosting had mod_python, and i follow this(http://web2py.com/book/
   default/chapter/11#Shared-Hosting-with-mod_python):
       
       Place contents of web2py into the htdocs folder.

       In the web2py folder, create a file web2py_modpython.py file
   with the following contents:

       from mod_python import apache
       import modpythonhandler

       def handler(req):
          req.subprocess_env['PATH_INFO'] =
   req.subprocess_env['SCRIPT_URL']
          return modpythonhandler.handler(req)

       Create/update the file .htaccess with the following contents:
       SetHandler python-program
       PythonHandler web2py_modpython
       #PythonDebug On
       

   But have a ERROR when i trywww.domain.com:
    Internal Server Error

   The server encountered an internal error or misconfiguration and was
   unable to complete your request.

   Please contact the server administrator,
   webmas...@empresasdomotica.com and inform them of the time the error
   occurred, and anything you might have done that may have caused the
   error.

   More information about this error may be available in the server error
   log.

   Additionally, a 500 Internal Server Error error was encountered while
   trying to use an ErrorDocument to handle the request.
   
   Can anybody help with this.

   thank you in advance.

   Best regards
  Victor- Ocultar texto de la cita -

  - Mostrar texto de la cita -


[web2py] Re: Vote for a new logo

2010-10-18 Thread Martin.Mulone
A new variation to favicon + current design: 
http://blouweb.com/logovote/default/index?logoid=124

On Oct 18, 11:16 am, Anthony av201...@yahoo.com wrote:
 I agree with Bruno's thoughts on the current logo (i.e., #5 and #17 on
 the logovote site). It is based on Massimo's thoughtful design concept
 -- if you missed his message about it, you can read it 
 here:http://groups.google.com/group/web2py/msg/dc9b9c33246c985b

 - It is straightforward, broadly appealing, and professional.
 - It includes some nice subtle symbolism, particularly the
 overlapping characters to represent tight integration of web2py
 components (which is a real distinctive of web2py).
 - It has already received positive public feedback.
 - It already has a range of color variations, stickers, and a favicon
 that work well (see web2py artwork at the bottom 
 ofhttp://www.web2py.com/examples/default/download).

 There are some promising concepts among the other logo entries, but I
 don't think any are as refined or production-ready as this one.

 Anthony

 On Oct 17, 10:45 pm, Bruno Rocha rochacbr...@gmail.com wrote:



  The Dealine is still 19 for send logos, and 21 for vote.

  That is the round 1, we can have round 2 with the 10 best voted, one week
  more for the second round, No uploads just votes.

  For the second round we can change rules and implement some new ideas as
  commented here.

  --

  BTW: I keep the track of web2py in twitter, identica, orkut, facebook,
  reddit, googleAlerts, etc..
  99% of the people, when talking about web2py, are talking about the new
  visual stylle.

  Everyone likes that, and that already is the new face of web2py, I think if
  we have to change, dont have to change too much ( I like this 
  ideahttp://blouweb.com/logovote/default/index?logoid=17)  It keeps the 
  actual
  style and gives us an Icon (that could be improved). I think it is clean,
  beauty, soothing enought and enterprise as well.

  There are other important things about this logo (17 or 5), it is nice with
  any background, the main idea came from Massimo, it differs web2py from
  web.py, It is easy to draw, easy to print, easy to remember.

  The upper case in that is more closer to WEB2PY (because we have DAL, DIV,
  FORM..)

  In the beggining it is strange to switch from web2py to WEB2PY, but IMO
  UPPER case fits better in for logo, and everyone will differ web.py form
  WEB2PY.

  2010/10/17 Anthony av201...@yahoo.com

   So, what's happening with the voting method? As already discussed at
   length, the one-vote-per-person method isn't a good idea with so many
   entries (particularly with sets of similar logos). For example, #5 and
   #17 are probably splitting votes.

   We really should implement one of the other suggested methods:
   * Approval Voting (vote for as many logos as you want): Probably the
   easiest to implement, and should handle the clone problem. (Still
   need the ability to change one's vote(s)).
   * Ratings: Though for this to work, either everyone has to rate every
   logo, or for each voter, each un-rated logo has to be assigned the
   lowest possible value (e.g., 1 star).
   * Ranking: Preferably using the Schulze method for tallying. Probably
   the most complex to implement.

   If we're not going to do any of the above, then at the very least, we
   should go back to showing the _number_ of votes for each logo (no need
   to show the names -- they should remain anonymous). That way, at least
   we could see if we are splitting (and possibly wasting) our votes and
   then shift our support to a logo we like that has a chance of winning.

   If we stick with the current voting method, with 50+ logos, we could
   easily end up with a winner that gets the support of only a small
   percentage of the voters.

   Also, is the voting deadline still Oct. 19?

   Thanks.

   Anthony

   On Oct 13, 5:17 pm, Bruno Rocha rochacbr...@gmail.com wrote:
Martin Mulone made the logovote application.

I am hosting at my server

You can post logo ideas, and vote for you prefered logo.

Better if you made an transparent canvas .gif or .png maximum 250x70

Maximum of 10 uploads per user, Just one vote per user.

Take a look:http://blouweb.com/logovote/

  --

 http://rochacbruno.com.br-Hide quoted text -

  - Show quoted text -


[web2py] Instant Press in beta

2010-10-18 Thread Martin.Mulone
After almost 3 month of heavy development, i think its mature enough
to move to beta phase. Well for me was a proof of concept, of what can
i do in web2py, i have to thank to massimo and the community to
answered my littles questions. What's new in beta, well i suggest to
see the page and watch new tour in instant press video, because I made
a lot of changes, and i test it a lot. What you can do for instant
press? Test. I know there some little issues, and some others I don't
know. I made the code clear enough for who's like to read source code,
and want to start medium size project in web2py.

new video in:
http://www.youtube.com/watch?v=gtdJ5JCxiJQ

http://code.google.com/p/instant-press/

Instant Press is an open source CMS developed in Web2py Framework.
Instant Press is simple, easy to use and attractive. Upload to your
web2py framework or to Google Application Engine and you are ready to
start!

thanks,

Martin.


[web2py] Re: Instant Press in beta

2010-10-18 Thread Martin.Mulone
I already have the domain instant2press.com

On Oct 18, 1:36 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 press2py, word2py, py2press, press4web, word4web, etc.

 On Oct 18, 11:05 am, Jonathan Lundell jlund...@pobox.com wrote:



  Here's an idea, free for nothing, for this or some other application: name 
  it Web Press. (I haven't checked for conflicts.)

  The reason I especially like it is that a web press has an old meaning: 
  the large, high-volume roll-fed presses used by newspapers and the like. 
  You've probably seen them in the movies.


[web2py] Re: compiling app manually?

2010-10-18 Thread Martin.Mulone
http://groups.google.com/group/web2py/browse_thread/thread/4abaf58c38f31ae5/5a3b1f19ce4dbab0?lnk=gstq=compile+application+#5a3b1f19ce4dbab0

from mdipierro
yes, make a script compile.py
from gluon.admin import app_compile
app_compile(request.application, request)
and run it with
python web2py.py -S yourappname -R compile.py
I have not tried it but should work. Everything that can be done via
admin interface has an API in the gluon.admin module.
Let us know if it works.
Massimo


On 18 oct, 19:52, mr.freeze nat...@freezable.com wrote:
 from gluon.admin import app_compile
 errs = app_compile('myapp',request)
 if errs:
     response.flash = 'There were errors'
 else:
     response.flash = 'Application compiled'

 On Oct 18, 3:58 pm, VP vtp2...@gmail.com wrote:



  Is there a way to compile apps manually (instead of through the admin
  interface)?

  Thanks.


[web2py] Re: Instant Press in beta

2010-10-18 Thread Martin.Mulone
ckeditor

On 18 oct, 19:11, Stef Mientki stef.mien...@gmail.com wrote:
  looks fantastic !!!
 which html editor did you include ( can't remember having a so extended 
 editor in a web2py
 application) ?
 thanks,
 Stef

 On 18-10-2010 17:09, Martin.Mulone wrote:



  After almost 3 month of heavy development, i think its mature enough
  to move to beta phase. Well for me was a proof of concept, of what can
  i do in web2py, i have to thank to massimo and the community to
  answered my littles questions. What's new in beta, well i suggest to
  see the page and watch new tour in instant press video, because I made
  a lot of changes, and i test it a lot. What you can do for instant
  press? Test. I know there some little issues, and some others I don't
  know. I made the code clear enough for who's like to read source code,
  and want to start medium size project in web2py.

  new video in:
 http://www.youtube.com/watch?v=gtdJ5JCxiJQ

 http://code.google.com/p/instant-press/

  Instant Press is an open source CMS developed in Web2py Framework.
  Instant Press is simple, easy to use and attractive. Upload to your
  web2py framework or to Google Application Engine and you are ready to
  start!

  thanks,

  Martin.


[web2py] Re: Default Authentication has problem

2010-10-17 Thread Martin.Mulone
auth.settings.login_next = URL('index')

http://web2py.com/book/default/chapter/08?search=login_next

On 17 oct, 09:03, Amit Ambardekar amit...@gmail.com wrote:
 I am some public page. Not [app]/default/index

 And when I log in. I am supposed to be redirected to that page not
 home page. It always redirects to home page. How to set the referrer?

 Amit


[web2py] Re: Vote for a new logo

2010-10-17 Thread Martin.Mulone
I think Approval Voting is better way than the current, easy to
implement and I ready to do so what the others think?. Random is very
annoying, and i dont believe that change anything in matter of votes.
How about that after deadline for sending ideas (1 day after or two)
have the 5 or 6 most votes logos, delete (hide) the others and reset
votes.

On 17 oct, 21:08, Anthony av201...@yahoo.com wrote:
 Ordering by most recent comments would be great too.

 On Oct 17, 6:29 pm, Anthony av201...@yahoo.com wrote:



  Also, although ordering the logos randomly by default is a good idea,
  it would also be helpful to allow the user to select ordering by most
  recently submitted (and possibly by number of votes). At this point, I
  have seen all the logos submitted so far, so when I check the site, I
  just want to see the most recent submissions, which is difficult with
  the logos ordered randomly (the random ordering is also a hassle when
  returning from viewing/submitting comments because it re-randomizes
  the list on each re-load).

  Thanks.

  Anthony

  On Oct 17, 5:40 pm, Anthony av201...@yahoo.com wrote:

   So, what's happening with the voting method? As already discussed at
   length, the one-vote-per-person method isn't a good idea with so many
   entries (particularly with sets of similar logos). For example, #5 and
   #17 are probably splitting votes.

   We really should implement one of the other suggested methods:
   * Approval Voting (vote for as many logos as you want): Probably the
   easiest to implement, and should handle the clone problem. (Still
   need the ability to change one's vote(s)).
   * Ratings: Though for this to work, either everyone has to rate every
   logo, or for each voter, each un-rated logo has to be assigned the
   lowest possible value (e.g., 1 star).
   * Ranking: Preferably using the Schulze method for tallying. Probably
   the most complex to implement.

   If we're not going to do any of the above, then at the very least, we
   should go back to showing the _number_ of votes for each logo (no need
   to show the names -- they should remain anonymous). That way, at least
   we could see if we are splitting (and possibly wasting) our votes and
   then shift our support to a logo we like that has a chance of winning.

   If we stick with the current voting method, with 50+ logos, we could
   easily end up with a winner that gets the support of only a small
   percentage of the voters.

   Also, is the voting deadline still Oct. 19?

   Thanks.

   Anthony

   On Oct 13, 5:17 pm, Bruno Rocha rochacbr...@gmail.com wrote:

Martin Mulone made the logovote application.

I am hosting at my server

You can post logo ideas, and vote for you prefered logo.

Better if you made an transparent canvas .gif or .png maximum 250x70

Maximum of 10 uploads per user, Just one vote per user.

Take a look:http://blouweb.com/logovote/-Hidequoted text -

   - Show quoted text -- Hide quoted text -

  - Show quoted text -


[web2py] Re: Vote for a new logo

2010-10-16 Thread Martin.Mulone
Do you get a web2py error or a page telling that this png is not
supported?. Because I think is the last one. The pil is installed not
support interlaced png.

On 15 oct, 22:20, weheh richard_gor...@verizon.net wrote:
 logovote uploading capability is broken.


[web2py] Re: Vote for a new logo

2010-10-15 Thread Martin.Mulone
Great work bruno. The comments are working!. Yes I think we have to
show comment counter and make the vote as a rating system.

On 15 oct, 03:30, Bruno Rocha rochacbr...@gmail.com wrote:
 I added your comment and some more important info 
 tohttp://www.blouweb.com/logovote/default/upload

 2010/10/15 mdipierro mdipie...@cs.depaul.edu





  I will add some comments here.

  1) It is important to avoid brand confusion with web.py (the two has
  to be visible)
  2) It is not a good idea to have a logo that looks like it is falling
  apart
  3) As much as I may like snakes, I am not convinced reptiles convey a
  professional image.

  Even if a logo may not be appropriate for the official site... many of
  these logos are really good and should be put to use. We have web2py-
  utils, web2pyslices, etc. and we will have more sites to come. We can
  keep a common page layout and use different logos.

  Massimo

  On Oct 15, 1:03 am, Bruno Rocha rochacbr...@gmail.com wrote:
   Comments are working now, lets test and comment on some logos!

  http://www.blouweb.com/logovote

   2010/10/15 mdipierro mdipie...@cs.depaul.edu

I agree. The one Martin made is good but ...

1) should made to run on GAE
2) should use RPX for login
3) should provide multiple lists of logos for multiple companies
4) should sort logos and vote with rating [*] (plugin rating?)
5) allow visitor to comment on logos
{{=plugin_wiki.widget('comment','logo',id)}}

 --

 http://rochacbruno.com.br


[web2py] Re: Vote for a new logo

2010-10-15 Thread Martin.Mulone
It came to my mind, with a little modification, we can have our
uservoice and stackoverflow. And if you want to contribute to another
project logo put in description: web2pyslice, etc. this is easy to
implement.

On Oct 15, 7:32 am, Martin.Mulone mulone.mar...@gmail.com wrote:
 Great work bruno. The comments are working!. Yes I think we have to
 show comment counter and make the vote as a rating system.

 On 15 oct, 03:30, Bruno Rocha rochacbr...@gmail.com wrote:



  I added your comment and some more important info 
  tohttp://www.blouweb.com/logovote/default/upload

  2010/10/15 mdipierro mdipie...@cs.depaul.edu

   I will add some comments here.

   1) It is important to avoid brand confusion with web.py (the two has
   to be visible)
   2) It is not a good idea to have a logo that looks like it is falling
   apart
   3) As much as I may like snakes, I am not convinced reptiles convey a
   professional image.

   Even if a logo may not be appropriate for the official site... many of
   these logos are really good and should be put to use. We have web2py-
   utils, web2pyslices, etc. and we will have more sites to come. We can
   keep a common page layout and use different logos.

   Massimo

   On Oct 15, 1:03 am, Bruno Rocha rochacbr...@gmail.com wrote:
Comments are working now, lets test and comment on some logos!

   http://www.blouweb.com/logovote

2010/10/15 mdipierro mdipie...@cs.depaul.edu

 I agree. The one Martin made is good but ...

 1) should made to run on GAE
 2) should use RPX for login
 3) should provide multiple lists of logos for multiple companies
 4) should sort logos and vote with rating [*] (plugin rating?)
 5) allow visitor to comment on logos
 {{=plugin_wiki.widget('comment','logo',id)}}

  --

 http://rochacbruno.com.br


[web2py] Re: Vote for a new logo

2010-10-14 Thread Martin.Mulone
I like your concept weheh

On Oct 14, 12:18 am, weheh richard_gor...@verizon.net wrote:
 If anyone can delete 22, 23, and 24, please, you have my permission to
 do so.


[web2py] Re: 'IS_NOT_EMPTY' is not defined

2010-10-14 Thread Martin.Mulone
Strange I think:

 from gluon.validators import *

but this is imported by default app or are you using modules?

On Oct 14, 8:16 am, Francisco Costa m...@franciscocosta.com wrote:
 I'm getting this:

 NameError: global name 'IS_NOT_EMPTY' is not defined

 What should i import?


[web2py] Re: Vote for a new logo

2010-10-14 Thread Martin.Mulone
Ok i made some changes:

* Now the voter are hide only admin can view the votes.
* Now you can delete your logo. An the admin can delete all the logos.
* Now is listing randomly
* TODO: comments.

Bruno has to test it and deploy.

On Oct 14, 7:05 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 select(orderby='random')

 On Oct 14, 4:06 pm, Bruno Rocha rochacbr...@gmail.com wrote:



  Martin is working to change that to random

  2010/10/14 Thadeus Burgess thade...@thadeusb.com

   Not to mention its not fair to new logos that get posted that they are at
   the bottom.

   --
   Thadeus

   On Thu, Oct 14, 2010 at 3:18 PM, Bruno Rocha rochacbr...@gmail.comwrote:

   The font used in LOGO #31 is really cool, that would be good with a
   bigger 2 insted a heart.

   @DenesL what font is that?

   2010/10/14 Bruno Rocha rochacbr...@gmail.com

   AFter registering you have to click on VOTE THIS

   there are some people registering and forgot to vote.

   2010/10/14 Mengu whalb...@gmail.com

   i think #7 is more serious and good. i'll vote for it.

   On 14 Ekim, 00:17, Bruno Rocha rochacbr...@gmail.com wrote:
Martin Mulone made the logovote application.

I am hosting at my server

You can post logo ideas, and vote for you prefered logo.

Better if you made an transparent canvas .gif or .png maximum 250x70

Maximum of 10 uploads per user, Just one vote per user.

Take a look:http://blouweb.com/logovote/

   --

  http://rochacbruno.com.br

   --

  http://rochacbruno.com.br

  --

 http://rochacbruno.com.br


[web2py] Re: Vote for a new logo

2010-10-14 Thread Martin.Mulone
how about having 5 votes?. and you can add or delete your vote, but
only you have in total 5 votes. 5 votes or 3,6,9,etc.

On 14 oct, 20:28, Bruno Rocha rochacbr...@gmail.com wrote:
 Updated:http://www.blouweb.com/logovote

 Martin did lot of changes!

 Comments are in todo list

 Remember: users can change the choice any time they want.

 2010/10/14 Martin.Mulone mulone.mar...@gmail.com





  Ok i made some changes:

  * Now the voter are hide only admin can view the votes.
  * Now you can delete your logo. An the admin can delete all the logos.
  * Now is listing randomly
  * TODO: comments.

  Bruno has to test it and deploy.

  On Oct 14, 7:05 pm, mdipierro mdipie...@cs.depaul.edu wrote:
   select(orderby='random')

   On Oct 14, 4:06 pm, Bruno Rocha rochacbr...@gmail.com wrote:

Martin is working to change that to random

2010/10/14 Thadeus Burgess thade...@thadeusb.com

 Not to mention its not fair to new logos that get posted that they
  are at
 the bottom.

 --
 Thadeus

 On Thu, Oct 14, 2010 at 3:18 PM, Bruno Rocha rochacbr...@gmail.com
  wrote:

 The font used in LOGO #31 is really cool, that would be good with a
 bigger 2 insted a heart.

 @DenesL what font is that?

 2010/10/14 Bruno Rocha rochacbr...@gmail.com

 AFter registering you have to click on VOTE THIS

 there are some people registering and forgot to vote.

 2010/10/14 Mengu whalb...@gmail.com

 i think #7 is more serious and good. i'll vote for it.

 On 14 Ekim, 00:17, Bruno Rocha rochacbr...@gmail.com wrote:
  Martin Mulone made the logovote application.

  I am hosting at my server

  You can post logo ideas, and vote for you prefered logo.

  Better if you made an transparent canvas .gif or .png maximum
  250x70

  Maximum of 10 uploads per user, Just one vote per user.

  Take a look:http://blouweb.com/logovote/

 --

http://rochacbruno.com.br

 --

http://rochacbruno.com.br

--

   http://rochacbruno.com.br

 --

 http://rochacbruno.com.br


[web2py] Re: Vote for a new logo

2010-10-13 Thread Martin.Mulone
Bruno you made the banner tricky!!! ;)

On Oct 13, 6:42 pm, Bruno Rocha rochacbr...@gmail.com wrote:
 Martin Mulone is the creator of the app!

 After uploading your ideas, dont forget to vote!

 or just vote for which one you think is better.

 2010/10/13 Thadeus Burgess thade...@thadeusb.com





  That is awesome Buno! Kudos!

  --
  Thadeus

  On Wed, Oct 13, 2010 at 4:33 PM, Bruno Rocha rochacbr...@gmail.comwrote:

  No need for posting background, just logo.

  Background will be added automatically.

  2010/10/13 Bruno Rocha rochacbr...@gmail.com

  Martin Mulone made the logovote application.

  I am hosting at my server

  You can post logo ideas, and vote for you prefered logo.

  Better if you made an transparent canvas .gif or .png maximum 250x70

  Maximum of 10 uploads per user, Just one vote per user.

  Take a look:http://blouweb.com/logovote/

  --

 http://rochacbruno.com.br

 --

 http://rochacbruno.com.br


[web2py] Re: Packaging web2py for Debian

2010-10-13 Thread Martin.Mulone
On 13 oct, 18:17, Richard richar...@gmail.com wrote:
 I remember talk about ability to upgrade through admin - is that
 practical?


In production with wsgi-apache2 is not practical.

A dream if I can do in the server: sudo apt-get update, sudo apt-get
upgrade.
The process of debian is very slow, perhaps a ppa. And I think this is
important for new users.


[web2py] Re: please help us test new web site

2010-10-12 Thread Martin.Mulone
Now are looking great, also i like the others logos.

On Oct 12, 6:54 pm, Bruno Rocha rochacbr...@gmail.com wrote:
 Or we can just take examples app and switch the logo by given args

 something like:http://web2pylogocontest.appspot.com/examples/index?logo=1

 we need to create a page for uploading logos to GAE.

 All artists just need to create an 220x45 .png (transparent) image, and
 uploads that to the app.

 2010/10/12 Thadeus Burgess thade...@thadeusb.com





  With a little bit of PIL we can make the app automatically add the logo to
  this image!

  --
  Thadeus

  On Tue, Oct 12, 2010 at 4:36 PM, Bruno Rocha rochacbr...@gmail.comwrote:

  Attached is a .png file to be used as base for new logo ideas.

  Just to know if it could blend with the new visual style and color scheme.

  2010/10/12 Thadeus Burgess thade...@thadeusb.com

  A survey with attached images of logo designs as the question text? Select
  your fav

  We just need to gather all of the logos in one place. but I think first
  we need to come to a consensus of what we want the logo to be styled like,
  then we can make logos, and submit  them to a small web2py app... then 
  when
  ready this same web2py app you just hit start poll and it can display 
  all
  uploaded logos with a form to select your favorite. Based on the results 
  of
  this poll we go with that logo using the new green color scheme. If there 
  is
  a tie, Massimo can be tie breaker.

  Also its a nice showcase for a web2py app =)

  --
  Thadeus

  On Tue, Oct 12, 2010 at 3:39 PM, mdipierro mdipie...@cs.depaul.eduwrote:

  Do we really need more options? I do not think so. The problem is that
  we have some great options and no process in place for deciding which
  ones we like best. I like A and C.

  Moreover I'd rather have the logo developed by a member of this
  community since we will need adaptations.

  Massimo

  On Oct 12, 2:21 pm, rochacbruno rochacbr...@gmail.com wrote:
   I will make a try with some logo ideas posted here, and sent to me by
  mail.

   I think worth a try with more creative professionals. People are
  saying web2py deserves a professional logo.

   So we can try a $200 award logo inhttp://www.crowdspring.com/

   We have to pay only if chose to use.

   Almost 110 designers will send a logo idea, we just have to say the
  guidelines for the new logo.

   1. Only letters
   2. Blend with the color scheme of the new site
   3. Being lower case (i like UPPER, because it differs from web.py, and
  is closer to helpers style i.e DIV, DAL, FORM, SQLFORM, WEB2PY), but most
  people here prefers in lower.
   4.do not depends on background
   5.

   But, if we chose a logo made byhttp://www.crowdspring.com/wegonna
  have to pay at least $200

   Enviado via iPhone

   Em 12/10/2010, às 13:41, Thadeus Burgess thade...@thadeusb.com
  escreveu:

That is why I like logo B. It puts emphasis on the 2. Logo B with
  the new color scheme. Though I do like the orange in small quantities!

--
Thadeus

On Tue, Oct 12, 2010 at 11:26 AM, mdipierro 
  mdipie...@cs.depaul.edu wrote:
The problem is we already have lots of unintentional brand confusion
with web.py

On Oct 12, 10:50 am, weheh richard_gor...@verizon.net wrote:
 I'm pleased with this latest doodle. Font, color, background, drop
 shadow can be changed easily. Can be shrunk and embossed into a
 powered by lozenge sticker.

 https://docs.google.com/leaf?id=0BzPqKovYWlw-ODY2Nzk0OWMtODU5Zi00YmI1.
  ..

  --

 http://rochacbruno.com.br

 --

 http://rochacbruno.com.br


[web2py] Re: how to create the left sidebar menu, like in web2py plugins ?

2010-10-12 Thread Martin.Mulone
You can also use the html5 normalize welcome
http://web2pytesting.appspot.com/static/welcome.zip

You only have to edit view/default/index.html

and change:

left_sidebar_enabled = True
right_sidebar_enabled = False

and here put some content:

{{block left_sidebar}}
div id=left_sidebar {{=XML(left_sidebar_style)}} 
div style=padding: 4px;
here content of sidebar left
/div
/div!-- left_sidebar --
{{end}}

Examples:

Both sidebars
http://web2pytesting.appspot.com/both/default/index
Right Sidebar only
http://web2pytesting.appspot.com/right/default/index
Left Sidebar only
http://web2pytesting.appspot.com/left/default/index

On Oct 12, 6:07 pm, Mr. Electronic r...@rc-consulting.dk wrote:
 Hi

 Hi

 It looks like a ul list with some CSS to create the vertical menu
 ul class=web2py-menu web2py-menu-vertical
 lia href=/plugins/default/utilsUtils/a/li
 lia href=/plugins/default/datatableSortable Table/a/li
 ...
 /ul

 Try look athttp://web2py.com/plugins/static/base.css
 for the CSS

 Br.
 Rune

 On 12 Okt., 22:51, Stef Mientki stef.mien...@gmail.com wrote:



   hello,

  I wonder how to create the left sidebar menu, as shown in web2py plugins
  (http://web2py.com/plugins/default/sortable) ?

  I couldn't find anything direct related in the web2py and google gave me a 
  lot irrelevant links.

  thanks,
  Stef Mientki


[web2py] Re: pygooglevoice

2010-10-08 Thread Martin.Mulone
http://blogs.sitepoint.com/2010/10/08/the-w3c-and-the-html5-isnt-ready-backlash/

On Oct 6, 4:04 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 BTW... what do you think about this?

 http://www.infoworld.com/d/developer-world/w3c-hold-html5-in-websites...

 On Oct 6, 1:46 pm, mart msenecal...@gmail.com wrote:



  which one... googleVoice + + +? , or HTML 5 ? or both?

  Mart :)

  On Oct 6, 12:23 pm, mdipierro mdipie...@cs.depaul.edu wrote:

   I like this idea... where do we start?

   On Oct 6, 9:42 am, mart msenecal...@gmail.com wrote:

I think someone mentioned something about that openSource Natural
Language Toolkit (http://www.nltk.org/) last month, which is I think
is a most worthy effort. My employer is a leader in this field, and
unfortunately no API is available to the openSource community (not
even a dummied down version version of their sdk - and probably
never will be). Which is too bad, some would probably do a lot of good
for lots of good people out there were these fine tools available...

Web2py with a bang? I have often read in postings in the group over
the the last few months about the wish for getting exposure for web2py
(as I do as well). I think this is another one of those occasions...
Can we imagine an open source project, obviously built on web2py! ;),
who's purpose is bettering the lives of those needing it?

Why and why not? because sooner or later someone will do it and it may
as well be built on the the most intuitive framework out there!

can anyone else see it?
- voiceCmd login
- open email.app
- web2Py.text2Voice(open  read)
- web2py.phone(friend.id,blablabla)
-
voiceCmd(login.Massimos_LearningManagementSystem.createCourse(myFavoriteSub
 ject))

RingRingRing  - voiceCmd(setAutoResponse(answerAndReplyNow(), will
call back later, too busy to answer!))

Ok, last early-morning-not-caffeinated-enough thought... (then back to
reality/work :( )
    The kids - the kids need to be on web2py for learning about the
technologies they will be inheriting @ a early enough age, and to
enable them as well (specially when dealing with challenges!) - i.e.
my daughter @ 7 new enough about basic programming (with python) to do
a few little things. Benefit: raised confidence 1000 fold - now trying
to learn about that world on the web (but cautiously and safely! ;))
via web2py, which keeps daddy on his toes, (or at least trying)...

so, googleVoice + nltk (+ web2py learning about web2py app
development for kids) = win/win  win

The moral: web2py can be made to enable.. as well :)

thanks,
Mart :)

On Oct 6, 12:10 am, mdipierro mdipie...@cs.depaul.edu wrote:

http://code.google.com/p/pygooglevoice/


[web2py] Re: dynamic notifications

2010-10-07 Thread Martin.Mulone
great!. Multiple notification are awesome.

On 6 oct, 23:18, mdipierro mdipie...@cs.depaul.edu wrote:
 You may want to change web2py_ajax.html and replace

 if(jQuery('.flash').html()!='') jQuery('.flash').slideDown('slow');
 ...
 if(flash) jQuery('.flash').html(flash).slideDown();

 with

 if(jQuery('.flash').html()!='')
 jQuery.jGrowl(jQuery('.flash').html());
 ...
 if(flash) jQuery.jGrowl(flash);

 so this will by-pass normal flash and use jGrowl everywhere.
 response.flash would still wotk even with .load content.

 On Oct 6, 9:11 pm, Richard richar...@gmail.com wrote:



   Can you write a recipe?

  Probably not necessary because it's just $.jGrowl(Hello world!)


[web2py] Re: My web2py project GeBi (ita only)

2010-10-06 Thread Martin.Mulone
Look great!. do you plan in future to make english language? are you
using T()?.

Un saluti de martín.

On Oct 6, 11:31 am, ceriox cer...@gmail.com wrote:
 Hi all,
 i'm sorry but my project is only for italy, so the rest of the message
 is in italian language.

 Ciao a tutti gli utenti italiani di questo gruppo.
 vorrei segnalarvi il sito del mio progetto

 www.gebix.tk

 è un gestionale per biblioteche di nuova generazione, con funzioni di
 condivisione con una sorta di comunity

 il progetto è ancora all'inizio, nel sito trovate la versione demo e
 tutti i dettagli

 ogni idea, commento o critica è ben accetta.

 saluti alberto


[web2py] Re: pygooglevoice

2010-10-06 Thread Martin.Mulone
i think the future is html5, html5 is getting webcam and voice
support. As google said the future of applications are web
applications.

On Oct 6, 11:42 am, mart msenecal...@gmail.com wrote:
 I think someone mentioned something about that openSource Natural
 Language Toolkit (http://www.nltk.org/) last month, which is I think
 is a most worthy effort. My employer is a leader in this field, and
 unfortunately no API is available to the openSource community (not
 even a dummied down version version of their sdk - and probably
 never will be). Which is too bad, some would probably do a lot of good
 for lots of good people out there were these fine tools available...

 Web2py with a bang? I have often read in postings in the group over
 the the last few months about the wish for getting exposure for web2py
 (as I do as well). I think this is another one of those occasions...
 Can we imagine an open source project, obviously built on web2py! ;),
 who's purpose is bettering the lives of those needing it?

 Why and why not? because sooner or later someone will do it and it may
 as well be built on the the most intuitive framework out there!

 can anyone else see it?
 - voiceCmd login
 - open email.app
 - web2Py.text2Voice(open  read)
 - web2py.phone(friend.id,blablabla)
 -
 voiceCmd(login.Massimos_LearningManagementSystem.createCourse(myFavoriteSub 
 ject))

 RingRingRing  - voiceCmd(setAutoResponse(answerAndReplyNow(), will
 call back later, too busy to answer!))

 Ok, last early-morning-not-caffeinated-enough thought... (then back to
 reality/work :( )
     The kids - the kids need to be on web2py for learning about the
 technologies they will be inheriting @ a early enough age, and to
 enable them as well (specially when dealing with challenges!) - i.e.
 my daughter @ 7 new enough about basic programming (with python) to do
 a few little things. Benefit: raised confidence 1000 fold - now trying
 to learn about that world on the web (but cautiously and safely! ;))
 via web2py, which keeps daddy on his toes, (or at least trying)...

 so, googleVoice + nltk (+ web2py learning about web2py app
 development for kids) = win/win  win

 The moral: web2py can be made to enable.. as well :)

 thanks,
 Mart :)

 On Oct 6, 12:10 am, mdipierro mdipie...@cs.depaul.edu wrote:



 http://code.google.com/p/pygooglevoice/


[web2py] a simple question about cache

2010-10-06 Thread Martin.Mulone
a simple question about cache

if i have this in controller:

@cache(request.env.path_info, time_expire=CACHE_TIME_EXPIRE_PAGES,
cache_model=cache.ram)
def index():
try:
page = int(request.args[0])
except:
page = 1

d = dict(page=page)
return response.render(d)

but i have auth.navbar setting in view, this will be render
differently in each users?. I have this doubt.


[web2py] Re: a simple question about cache

2010-10-06 Thread Martin.Mulone
i see, well this caching method is more dangerous what i think, i
have to validate all the external vars, but this is my issue because
always have to do that :P.

Last question:

How do i do to cache render view of simple json return?.

Sample:

@cache(request.env.path_info, time_expire=CACHE_TIME_EXPIRE_JSON,
cache_model=cache.ram)
def json_get_sidebar_last_posts():
session.forget()
info={}
info['html']=i2p.widgets.load_last_posts()
import gluon.contrib.simplejson as sj
return sj.dumps(info)


but response.render are going to fail.

On Oct 6, 3:54 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 No. This will render the page the same to all users including the
 welcome message. Moreover the
 @cache(request.env.path_info)

 will cause a vulnerability 
 becausehttp://.../indexhttp://.../index/1http://.../index/2
 ...http://.../index/999

 will all be cached separately and cause a memory leak.

 On Oct 6, 1:43 pm, Martin.Mulone mulone.mar...@gmail.com wrote:



  a simple question about cache

  if i have this in controller:

  @cache(request.env.path_info, time_expire=CACHE_TIME_EXPIRE_PAGES,
  cache_model=cache.ram)
  def index():
      try:
          page = int(request.args[0])
      except:
          page = 1

      d = dict(page=page)
      return response.render(d)

  but i have auth.navbar setting in view, this will be render
  differently in each users?. I have this doubt.


[web2py] Re: a simple question about cache

2010-10-06 Thread Martin.Mulone
Sorry not failing working ok this code. I have to think more about the
problem, my problem is that i want to get the response render, but my
return have to be:

d = dict(html=someinfo)
return sj.dumps(response.render(d))

this is different to:

info={}
info['html']=someinfo
return sj.dumps(info)


On Oct 6, 6:59 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 Perhaps I do not understand but I do not see any problem with your
 example code below.

 On Oct 6, 4:44 pm, Martin.Mulone mulone.mar...@gmail.com wrote:



  i see, well this caching method is more dangerous what i think, i
  have to validate all the external vars, but this is my issue because
  always have to do that :P.

  Last question:

  How do i do to cache render view of simple json return?.

  Sample:

  @cache(request.env.path_info, time_expire=CACHE_TIME_EXPIRE_JSON,
  cache_model=cache.ram)
  def json_get_sidebar_last_posts():
      session.forget()
      info={}
      info['html']=i2p.widgets.load_last_posts()
      import gluon.contrib.simplejson as sj
      return sj.dumps(info)

  but response.render are going to fail.

  On Oct 6, 3:54 pm, mdipierro mdipie...@cs.depaul.edu wrote:

   No. This will render the page the same to all users including the
   welcome message. Moreover the
   @cache(request.env.path_info)

   will cause a vulnerability 
   becausehttp://.../indexhttp://.../index/1http://.../index/2
   ...http://.../index/999

   will all be cached separately and cause a memory leak.

   On Oct 6, 1:43 pm, Martin.Mulone mulone.mar...@gmail.com wrote:

a simple question about cache

if i have this in controller:

@cache(request.env.path_info, time_expire=CACHE_TIME_EXPIRE_PAGES,
cache_model=cache.ram)
def index():
    try:
        page = int(request.args[0])
    except:
        page = 1

    d = dict(page=page)
    return response.render(d)

but i have auth.navbar setting in view, this will be render
differently in each users?. I have this doubt.


[web2py] Re: Javascript Template Engine for Cleaner Coding

2010-10-02 Thread Martin.Mulone
in my opinion we have already a template system, another one or mix
with web2py is to complicate things. Perhaps not, but sure we are
going to have people writing python code in javascript block, and
javascript in python block.

On 2 oct, 02:10, yamandu yamandu.co...@gmail.com wrote:
 Hi, I found thishttp://www.embeddedjs.com/

 Haven´t teste yet, but looks interesting.
 The goal is help by letting code html/javascript code cleanner by
 using templates
 similar to web2py templates.

 I always almost get crazy when writing html/javascript code.
 It always get confusing and this might help.

 Anyone knows it?
 I think I can imagine some cons, do you too?


[web2py] Re: Image gallery on GAE

2010-09-30 Thread Martin.Mulone
i try some time ago, caching download with this parameters and didn't
work.

perhaps you have to take a look to this
http://groups.google.com/group/web2py/browse_thread/thread/c10235cb16c476f/d72d988abe41a3c1?lnk=gstq=cache+download#d72d988abe41a3c1

On Sep 30, 11:14 am, mdipierro mdipie...@cs.depaul.edu wrote:
 Mind that

 @cache(request.env.path_info+request.env.query_string,
 time_expire=3600, cache_model=cache.ram)

 my end up caching a lot of stuff and cause out of memory problems.

 Is there a way on GAE to have a normal form that includes a file
 upload for the blobstore? I mean a form that includes other fields
 that go in db normally?

 Some people have reported problems when videos where stored in
 blobstore. Do you have any experience with it?

 On Sep 15, 5:59 pm, howesc how...@umich.edu wrote:



  I have just such a setup - i'd give you the URL to the site, but it's
  not public yetremind me in a week or two.

  The link Martin gives is the best bit of blobstore info that i have
  found for web2py yet.  i (cfhowes) wrote the 2 comments, so please let
  me know if they don't work - i may have made fixes and not updated the
  post.

  also, i created a method that does image resizing and caches the image
  in memory for the gallery page, so yes the first load of the page may
  be slow (this also depends on frequency of use of the app on GAE), but
  subsequent visits are pretty quick.

  here's the caching image resizing download method:

  @cache(request.env.path_info+request.env.query_string,
  time_expire=3600, cache_model=cache.ram)
  def download():

      #handle non-gae download
      if not request.env.web2py_runtime_gae or not request.args[0]:
          return response.download(request,db)

      #handle gae download
      my_uploads=db(db.artwork.image==request.args[0]).select()[0]
      if not my_uploads.blob_key:
          return None
      blob_info = blobstore.get(my_uploads.blob_key)

      response.headers['Content-Type'] = blob_info.content_type;
      response.headers['Content-Disposition'] = attachment; filename=
  %s % blob_info.filename
      #response.headers['Cache-Control'] = max-age=3600, must-
  revalidate

      if (len(request.args)  1 and request.args[1]) or
  request.vars.width:
          if (len(request.args)  1 and request.args[1]):
              request.vars.width = request.args[1]
          from google.appengine.api import images
          img = images.Image(blob_key=my_uploads.blob_key)
          if not request.vars.height:
              img.resize(int(request.vars.width))
          else:
              logging.info(resize width and height)
              img.resize(int(request.vars.width),
  int(request.vars.height))
          return img.execute_transforms(images.JPEG)
      else:
          response.headers['X-AppEngine-BlobKey'] = my_uploads.blob_key;
          return response.body.getvalue()

  enjoy!

  On Sep 15, 3:23 am, Martin.Mulone mulone.mar...@gmail.com wrote:

   First to use blobstore you have to enabled billing. Yes for your
   approach i think the best is to use blobstore in gae.

   Take a look to this:http://www.web2pyslices.com/main/slices/take_slice/63

   And to display images use the new introduce function get_serving_url
   is really fast and doesnt consume much resources
   you have to store blob_key)

   def _response_image(table_name='images',image_size=64):
       if request.env.web2py_runtime_gae:
           from google.appengine.ext import blobstore
           from google.appengine.api import images

           if not request.args:
               raise HTTP(404)
           myimages=db(db[table_name].image==request.args[0]).select()
           if myimages:
               myimage = myimages[0]
               if myimage.blob_key:
                   if GAE_SERVING_IMAGE:
                       image_serving =
   images.get_serving_url(myimage.blob_key,image_size)
                       return image_serving

   On 15 sep, 07:08, István Gazsi theag...@gmail.com wrote:

Hi everybody!

As part of a website I try to make an image gallery in web2py. The
database model is simple: there is a 100x100 thumbnail, the whole
picture, and (optionally) the image's title.

The website runs on Google App Engine and web2py v1.83.2 for now.
There are multiple problems with it. First, I can only upload images
under 1MB. Second, the gallery page loads very slowly (I make a select
for only 25 records in web2py), and in the GAE logs there is always
warnings about memory usage.

For the first problem the solution would be using the GAE blobstore,
but I don't really know how to do that. Is it implemented in web2py?
For the second problem I don't know the solution.

If you would do an image gallery like mine from the ground up, how
would you do that? And do you have any advices about my problems?

Thanks in advance!


[web2py] seo starter guide

2010-09-30 Thread Martin.Mulone
for all interested in seo, google update his SEO guide.

http://googlewebmastercentral.blogspot.com/2010/09/seo-starter-guide-updated.html


[web2py] Re: bug when using include 'controller_name/nav.html' in view

2010-09-28 Thread Martin.Mulone
A line break in code not make anything visually, this is another
thing, perhaps ie margin bug.

jaja stephen has many other things better to do than web2py :P

On 27 sep, 23:12, mdipierro mdipie...@cs.depaul.edu wrote:
 I read you but I do not understand how this is possible.
 Is your name really Steven Hawking?

 On Sep 27, 8:21 pm, Steven Hawking knot1...@gmail.com wrote:



  create a default controller called 'default'
  in default create a function called index
  in index view include two file called nav.html ( include 'default/
  nav.html') and navi.html( or a arbitrary filename)  ( include 'default/
  navi.html')  with some arbitrary content or keep it empty

  then checkout the difference between the two in your html output in
  browser

  it will produce a strange symbol (something like a line break)

  here is some screen shot

  test in google 
  chromehttps://sites.google.com/site/jamalmvc/images/g0.jpghttps://sites.goo...

  test in iehttps://sites.google.com/site/jamalmvc/images/i0.jpg

  test in 
  firefoxhttps://sites.google.com/site/jamalmvc/images/f0.jpghttps://sites.goo...


[web2py] Re: welcome app normalize hack ie and html5 ready

2010-09-28 Thread Martin.Mulone
yes didn't come to my mind the blocks. Massimo I like and i could do
that, but you think i have to move footer, header all to each view,
because headers and footer generally is the same for all the pages. Or
for now only the sidebars?.

On Sep 27, 9:56 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 Since we now have blocks how about using {{block left_sidebar}}...
 {{block right)sidebar}} {{block header}} {{block footer}} {{block
 under_page}} (position: absolute; top:0) {{block over_page}}
 (position: absolute; bottom:0) so pages can turn on and off what they
 need?

 Ideally the more  people can do just with css, the better.

 On Sep 27, 3:08 pm, Martin.Mulone mulone.mar...@gmail.com wrote:



  Because we don't need it. I dont delete ez-css from base.css so you
  can use it if you want.

  This is the old code utilizing ez-css:

  div class=ez-wr
            div class=ez-fl ez-negmx
              div class=ez-box id=left_sidebar{{#-- unused
  space}}/div
            /div
            div class=ez-fl ez-negmr
              div class=ez-box id=content{{include}}/div
            /div
            div class=ez-last ez-oh
              div class=ez-box id=right_sidebar{{#-- unused
  space}}/div
            /div
  /div

  This is what i do in less code, its more readable: not clases just
  left_sidebar, right, and content.

  !--div id=left_sidebarhere content of sidebar left/div--
  div id=content{{include}}/div
  !--div id=right_sidebarhere content of sidebar right/div --
  div style=clear: both;/div!-- Clear the divs --

  Yes its commented, but if you plan to used for example in book said
  that wiki.sidebar you have to edit layout is the same, you have to
  edit layout and one line commented in base.css, so its not problem to
  uncomment and put meta.sidebar.

  I believe cleaner code is better. Perhaps i don't see it right and i
  am wrong.

  On Sep 27, 4:40 pm, mdipierro mdipie...@cs.depaul.edu wrote:

   I really like the look. You are still not using ez.css andy reason for
   not to?
   what is DC.?

           meta name=DC.title content= /!-- Project Name --
           meta name=DC.subject content= /!-- What you're about. --
           meta name=DC.creator content= / !-- Who made this site. --

   Massimo

   On Sep 27, 2:36 pm, Martin.Mulone mulone.mar...@gmail.com wrote:

fixed.

you can test in css_test at the bottom i put multiple. You have to
reload the page to see the changes because of caching.

   http://web2pytesting.appspot.com/welcome/default/test_css

On Sep 25, 1:41 am, Luis Díaz diazluis2...@gmail.com wrote:

 Greetings,
 there is an option select multiple problems.

 should have at least 5 lines minimum
 to select various options to see

 --
 Díaz Luis
 TSU Analisis de Sistemas
 Universidad de Carabobo


[web2py] Re: welcome app normalize hack ie and html5 ready

2010-09-28 Thread Martin.Mulone
It's cost me a lot of time really, but I think i did it, after many
try, i think the only way we have proper columns (sidebars) is with
fixed width, so i have to know in the moment of views if its sidebar
right, sidebar left, both or none. This complex the view, but work out
the box without editing css or commenting lines. The only have to do
is to modified left_sidebar_enabled and/or right_sidebar_enabled vars.
Now you can change footer, header, statusbar in views. Perhaps its not
going to satistifize all, but its a model of what can we do in layout-
view.

Both sidebars
http://web2pytesting.appspot.com/both/default/index

Right Sidebar only
http://web2pytesting.appspot.com/right/default/index

Left Sidebar only
http://web2pytesting.appspot.com/left/default/index

None sidebars
http://web2pytesting.appspot.com/

Code and W2p
http://web2pytesting.appspot.com/static/welcome.zip
http://web2pytesting.appspot.com/static/welcome.w2p

On Sep 28, 9:46 am, mdipierro mdipie...@cs.depaul.edu wrote:
 for example I am using a wiki app right now every page can have a
 different title, subtitle and header background.
 also some pages may have some custom style in the head that come
 from the auth_user table.

 On Sep 28, 6:49 am, Martin.Mulone mulone.mar...@gmail.com wrote:



  yes didn't come to my mind the blocks. Massimo I like and i could do
  that, but you think i have to move footer, header all to each view,
  because headers and footer generally is the same for all the pages. Or
  for now only the sidebars?.

  On Sep 27, 9:56 pm, mdipierro mdipie...@cs.depaul.edu wrote:

   Since we now have blocks how about using {{block left_sidebar}}...
   {{block right)sidebar}} {{block header}} {{block footer}} {{block
   under_page}} (position: absolute; top:0) {{block over_page}}
   (position: absolute; bottom:0) so pages can turn on and off what they
   need?

   Ideally the more  people can do just with css, the better.

   On Sep 27, 3:08 pm, Martin.Mulone mulone.mar...@gmail.com wrote:

Because we don't need it. I dont delete ez-css from base.css so you
can use it if you want.

This is the old code utilizing ez-css:

div class=ez-wr
          div class=ez-fl ez-negmx
            div class=ez-box id=left_sidebar{{#-- unused
space}}/div
          /div
          div class=ez-fl ez-negmr
            div class=ez-box id=content{{include}}/div
          /div
          div class=ez-last ez-oh
            div class=ez-box id=right_sidebar{{#-- unused
space}}/div
          /div
/div

This is what i do in less code, its more readable: not clases just
left_sidebar, right, and content.

!--div id=left_sidebarhere content of sidebar left/div--
div id=content{{include}}/div
!--div id=right_sidebarhere content of sidebar right/div --
div style=clear: both;/div!-- Clear the divs --

Yes its commented, but if you plan to used for example in book said
that wiki.sidebar you have to edit layout is the same, you have to
edit layout and one line commented in base.css, so its not problem to
uncomment and put meta.sidebar.

I believe cleaner code is better. Perhaps i don't see it right and i
am wrong.

On Sep 27, 4:40 pm, mdipierro mdipie...@cs.depaul.edu wrote:

 I really like the look. You are still not using ez.css andy reason for
 not to?
 what is DC.?

         meta name=DC.title content= /!-- Project Name --
         meta name=DC.subject content= /!-- What you're about. 
 --
         meta name=DC.creator content= / !-- Who made this 
 site. --

 Massimo

 On Sep 27, 2:36 pm, Martin.Mulone mulone.mar...@gmail.com wrote:

  fixed.

  you can test in css_test at the bottom i put multiple. You have to
  reload the page to see the changes because of caching.

 http://web2pytesting.appspot.com/welcome/default/test_css

  On Sep 25, 1:41 am, Luis Díaz diazluis2...@gmail.com wrote:

   Greetings,
   there is an option select multiple problems.

   should have at least 5 lines minimum
   to select various options to see

   --
   Díaz Luis
   TSU Analisis de Sistemas
   Universidad de Carabobo


[web2py] Re: Deploying web2py on linux (Redhat or others) on cpanel or other ways

2010-09-27 Thread Martin.Mulone
I don't recommend to use ports 9090, you have to use port 80 in
production. If you are testing it's ok

On 27 sep, 01:39, Rahul rahul.dhak...@gmail.com wrote:
 By the way, Just curious if anyone was able to access the site and the
 application contained using this 
 url.http://www.flockbird.com:9090/web2py/Flockbird

 Please let me know your opinions..
 BugBuster is an application and technology demo of web2py I made. This
 is free for personal use -

 Login Details for Full Featured Demo:
 Workspace: demo
 User: demo
 Password: demo123

 It works in two levels of hierarchy one is system level and other is
 normal user.
 system level user - can add/delete all parameters for software and
 create users etc ( a lot of features)
 normal user -  the users who just use the system with some less powers
 though.
 Also it has the concept for workspaces , which are independant
 functional units..

 Ex: Workspace A
               |-user A
               |-user B etc
     Workspace B
               |- user A, B C etc

 Each workspace and users are seperate entities. For more details you
 can log into Bugbuster and grab the PDF user guide.

 You can check out the feature list 
 here:http://www.flockbird.com:9090/web2py/Flockbird/default/products

 Please remeber this is a temporary site url and it could change... I
 am working on a permanent solution... and will keep you posted
 More professional stuff to come in ...

 Thanks Rahul
 -
 Massimo rocks!! Thanks for this superb framework. I just love it :-)
 ---


[web2py] Re: welcome app normalize hack ie and html5 ready

2010-09-27 Thread Martin.Mulone
fixed.

you can test in css_test at the bottom i put multiple. You have to
reload the page to see the changes because of caching.

http://web2pytesting.appspot.com/welcome/default/test_css

On Sep 25, 1:41 am, Luis Díaz diazluis2...@gmail.com wrote:
 Greetings,
 there is an option select multiple problems.

 should have at least 5 lines minimum
 to select various options to see

 --
 Díaz Luis
 TSU Analisis de Sistemas
 Universidad de Carabobo


[web2py] Re: welcome app normalize hack ie and html5 ready

2010-09-27 Thread Martin.Mulone
Some seo things, but i am not sure about this. Probably i delete them.

http://www.seoconsultants.com/meta-tags/dublin/


On Sep 27, 4:40 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 I really like the look. You are still not using ez.css andy reason for
 not to?
 what is DC.?

         meta name=DC.title content= /!-- Project Name --
         meta name=DC.subject content= /!-- What you're about. --
         meta name=DC.creator content= / !-- Who made this site. --

 Massimo

 On Sep 27, 2:36 pm, Martin.Mulone mulone.mar...@gmail.com wrote:



  fixed.

  you can test in css_test at the bottom i put multiple. You have to
  reload the page to see the changes because of caching.

 http://web2pytesting.appspot.com/welcome/default/test_css

  On Sep 25, 1:41 am, Luis Díaz diazluis2...@gmail.com wrote:

   Greetings,
   there is an option select multiple problems.

   should have at least 5 lines minimum
   to select various options to see

   --
   Díaz Luis
   TSU Analisis de Sistemas
   Universidad de Carabobo


[web2py] Re: welcome app normalize hack ie and html5 ready

2010-09-27 Thread Martin.Mulone
Because we don't need it. I dont delete ez-css from base.css so you
can use it if you want.

This is the old code utilizing ez-css:

div class=ez-wr
  div class=ez-fl ez-negmx
div class=ez-box id=left_sidebar{{#-- unused
space}}/div
  /div
  div class=ez-fl ez-negmr
div class=ez-box id=content{{include}}/div
  /div
  div class=ez-last ez-oh
div class=ez-box id=right_sidebar{{#-- unused
space}}/div
  /div
/div

This is what i do in less code, its more readable: not clases just
left_sidebar, right, and content.

!--div id=left_sidebarhere content of sidebar left/div--
div id=content{{include}}/div
!--div id=right_sidebarhere content of sidebar right/div --
div style=clear: both;/div!-- Clear the divs --

Yes its commented, but if you plan to used for example in book said
that wiki.sidebar you have to edit layout is the same, you have to
edit layout and one line commented in base.css, so its not problem to
uncomment and put meta.sidebar.

I believe cleaner code is better. Perhaps i don't see it right and i
am wrong.


On Sep 27, 4:40 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 I really like the look. You are still not using ez.css andy reason for
 not to?
 what is DC.?

         meta name=DC.title content= /!-- Project Name --
         meta name=DC.subject content= /!-- What you're about. --
         meta name=DC.creator content= / !-- Who made this site. --

 Massimo

 On Sep 27, 2:36 pm, Martin.Mulone mulone.mar...@gmail.com wrote:



  fixed.

  you can test in css_test at the bottom i put multiple. You have to
  reload the page to see the changes because of caching.

 http://web2pytesting.appspot.com/welcome/default/test_css

  On Sep 25, 1:41 am, Luis Díaz diazluis2...@gmail.com wrote:

   Greetings,
   there is an option select multiple problems.

   should have at least 5 lines minimum
   to select various options to see

   --
   Díaz Luis
   TSU Analisis de Sistemas
   Universidad de Carabobo


[web2py] Re: Problem with rss feed from wiki application in book

2010-09-26 Thread Martin.Mulone
better way:

link = 'http://' + str(request.env.http_host) + URL('show',
args=row.id)

On 26 sep, 06:30, Tom Atkins minkto...@gmail.com wrote:
 Thanks for the replies. I worked out what the problem is.  The code in the
 book is incorrect.  The line:

 link = URL('show', args=row.id)

 does not produce a full URL.  The RSS service does not like this and fails.

 If I replace it with:

 link = http://127.0.0.1:8000; + URL('show', args=row.id)

 then it all works fine.  I'm sure there is a more elegant way to fix this!

 Please update the example code in the book.

 Thanks!

 On 25 September 2010 19:08, mdipierro mdipie...@cs.depaul.edu wrote:



  it depends on the model. You must have wiki fields and your action
  must return record in the format described by the book in chapter 3.

  Massimo

  On Sep 25, 12:34 pm, Tom Atkins minkto...@gmail.com wrote:
   I've just copied and pasted from the online book the wiki application in
   chapter 3.  It all works great.

   I've added the function for the rss feed to controller/default.py and if
  I
   go to:

  http://127.0.0.1:8000/mywiki/default/news

   I get a nice page showing the wiki entries.

   However if I go to:

  http://127.0.0.1:8000/mywiki/default/news.rss

   I just get a message saying 'no rss'...

   Am I doing something stupid or is the code in the book wrong /
  incomplete.

   Thanks for any help.


[web2py] Re: welcome app normalize hack ie and html5 ready

2010-09-24 Thread Martin.Mulone
 1) it no longer uses ez.css for layout (id had the options for left
and right sidebars for example)

now fixed. see http://web2pytesting.appspot.com/sidebars/default/index

The lines are commented in layout, to get working have to uncomment
sidebar-right and sidebar-left

 !--div id=left_sidebarhere content of sidebar left/div--
 div id=content{{include}}/div
 !--div id=right_sidebarhere content of sidebar left/div --

and in base.css have to uncomment in content

#left_sidebar { width: 130px; float:left; }
#content { /*width: 640px; float:left;*/ } /* uncomment this if you
are going to use sidebars */
#right_sidebar { width: 130px; float:left; text-align:right; }

 2) there is extra space between header-manu, menu-content, content-
footer. If a user were to replace the header background with an
image,
there would a separation with the menu bar for example...

now fixed. see: http://web2pytesting.appspot.com/background/default/index

 3) I would still like the flash to be black because works ...

fixed.

this is the welcome:
http://web2pytesting.appspot.com/welcome/

this is the source:
http://web2pytesting.appspot.com/welcome/static/welcome.zip
http://web2pytesting.appspot.com/welcome/static/welcome.w2p

On Sep 23, 6:46 pm, Martin.Mulone mulone.mar...@gmail.com wrote:
 Ok this is what i want to know, i'll going to fix tomorrow.

 On Sep 23, 6:13 pm, rochacbruno rochacbr...@gmail.com wrote:



  Sidebars are there to be used with plugin_wiki that has meta-sidebar

  Enviado via iPhone

  Em 23/09/2010, às 18:09, Martin.Mulone mulone.mar...@gmail.com escreveu:

   last thing you have to reaload F5 because of cache browser or use
  http://web2pytesting.appspot.com/welcome2/

   On Sep 23, 6:06 pm, Martin.Mulone mulone.mar...@gmail.com wrote:
   Version 2.0

   * About validation, this almost validate in html5 but one thing that
   is important, that force to last ie 
   renderhttp://validator.w3.org/check?uri=web2pytesting.appspot.comcharset=(...

   * About validation in css, well i prefer that show correct and good in
   all browser, than to validate correct. This is because of the hacks.
   Believe me is good to close to almost validate but not a must.
   Validate is: hey your are a good guy, but in real life you have the
   ie things, -moz and -wkit.

   I am ready to discuss, the things i changes. Some perhaps breaks
   compatibility with old welcome, but this is not important because
   scattfold app are for new ones.

   The main changes comes in layout.html, web2py_ajax.html, and base.css.
   You have to read this files, some are well documented in comments.
   Some explained 
   here:http://www.1stwebdesigner.com/development/snippets-html5-boilerplate/

   well the evil one, i make order in static/ so i put css in static/
   css/, js in static/js/ and images in static/images/. Its good to have
   in order this things.

   this is static now:

   css/ (css dir)
   favicon.ico (this display icon in browser, i add transparency)
   favicon.png (this display icon in browser, iphone)
   images/ (images)
   js/ (javascripts)
   robots.txt (to control robots)

   css/
     base.css (the main base style)
     calendar.css
     handheld.css (this is for mobile style)
     superfish.css (this is menu style)
     superfish-navbar.css
     superfish-vertical.css

   images/
     arrows-ff.png (menu need this)
     mylogo.png (this is app logo)
     noti_error.png (notification icon)
     noti_ok.png (notification icon)
     noti_warn.png (notification icon)
     shadow.png (menu need this)
     warning.png (pretty exception need this)
     web2py_icon.png (I add transparency to web2py icon)

   js/
     calendar.js
     dd_belatedpng.js (this fix issue:png tranparency in ie)
     jquery.js
     modernizr-1.5.min.js (this enabled html5)
     plugins.js (here perhaps the app plugins)
     script.js (here perhaps the app scripts)
     superfish.js

   * As suggest massimo i put black back in notifications.
   * I re enabled ez-css things to compatibility. But i dont understand
   why are sidebar-left and sidebar-right are if they not are used. Width
   0 not means hide div, so i do not recommend this, this need to be as
   display: none; if not used. If this break things, ok i understand.
   * I re download superfish.js from site i dont have missings images
   thats this need. Now there are superfish.css for this things.
   * Added pretty_exceptions function in models/utils.py, when you raise
   http show a better exception page see in action 
   here:http://web2pytesting.appspot.com/welcome/default/test_exception, 
   this
   is an example perhaps need to be commented in controller.
   * in ajax_web2py i change that jquery download from online site
   prepared to serve this much faster anywhere, but if fails load the
   local version.
   * Some SEO things in layout, like analytics, meta tags specifics,
   robots etc.
   * Believe me this little things are need it, and perhaps a lot of
   more. Tomorrow i am

[web2py] Re: welcome app normalize hack ie and html5 ready

2010-09-24 Thread Martin.Mulone
I already fix this issue, and put the notification more centre. You
can see the changes in:

Html5 test font and edit content
http://web2pytesting.appspot.com/html5

And the notification example
http://web2pytesting.appspot.com/notification/

On Sep 24, 2:34 pm, dustin.b dustin.bens...@googlemouail.com
wrote:
 hi, i followed your topic and your work is pleasing to the eye :)
 thx for that!

 but i also agree with the others about that menu gray visited links
 thing.


[web2py] Re: welcome app normalize hack ie and html5 ready

2010-09-23 Thread Martin.Mulone
Version 2.0

* About validation, this almost validate in html5 but one thing that
is important, that force to last ie render
http://validator.w3.org/check?uri=web2pytesting.appspot.comcharset=(detect+automatically)doctype=Inlinegroup=0

* About validation in css, well i prefer that show correct and good in
all browser, than to validate correct. This is because of the hacks.
Believe me is good to close to almost validate but not a must.
Validate is: hey your are a good guy, but in real life you have the
ie things, -moz and -wkit.

I am ready to discuss, the things i changes. Some perhaps breaks
compatibility with old welcome, but this is not important because
scattfold app are for new ones.

The main changes comes in layout.html, web2py_ajax.html, and base.css.
You have to read this files, some are well documented in comments.
Some explained here: 
http://www.1stwebdesigner.com/development/snippets-html5-boilerplate/

well the evil one, i make order in static/ so i put css in static/
css/, js in static/js/ and images in static/images/. Its good to have
in order this things.

this is static now:

css/ (css dir)
favicon.ico (this display icon in browser, i add transparency)
favicon.png (this display icon in browser, iphone)
images/ (images)
js/ (javascripts)
robots.txt (to control robots)


css/
  base.css (the main base style)
  calendar.css
  handheld.css (this is for mobile style)
  superfish.css (this is menu style)
  superfish-navbar.css
  superfish-vertical.css

images/
  arrows-ff.png (menu need this)
  mylogo.png (this is app logo)
  noti_error.png (notification icon)
  noti_ok.png (notification icon)
  noti_warn.png (notification icon)
  shadow.png (menu need this)
  warning.png (pretty exception need this)
  web2py_icon.png (I add transparency to web2py icon)

js/
  calendar.js
  dd_belatedpng.js (this fix issue:png tranparency in ie)
  jquery.js
  modernizr-1.5.min.js (this enabled html5)
  plugins.js (here perhaps the app plugins)
  script.js (here perhaps the app scripts)
  superfish.js

* As suggest massimo i put black back in notifications.
* I re enabled ez-css things to compatibility. But i dont understand
why are sidebar-left and sidebar-right are if they not are used. Width
0 not means hide div, so i do not recommend this, this need to be as
display: none; if not used. If this break things, ok i understand.
* I re download superfish.js from site i dont have missings images
thats this need. Now there are superfish.css for this things.
* Added pretty_exceptions function in models/utils.py, when you raise
http show a better exception page see in action here:
http://web2pytesting.appspot.com/welcome/default/test_exception, this
is an example perhaps need to be commented in controller.
* in ajax_web2py i change that jquery download from online site
prepared to serve this much faster anywhere, but if fails load the
local version.
* Some SEO things in layout, like analytics, meta tags specifics,
robots etc.
* Believe me this little things are need it, and perhaps a lot of
more. Tomorrow i am going to check in different browsers.

this is the welcome:
http://web2pytesting.appspot.com/welcome/

this is the source:
http://web2pytesting.appspot.com/welcome/static/welcome.zip
http://web2pytesting.appspot.com/welcome/static/welcome.w2p

And test this, the classical database example with new layout:
http://web2pytesting.appspot.com/database_example/default/register_dog



On Sep 22, 6:12 pm, Jonathan Lundell jlund...@pobox.com wrote:
 On Sep 22, 2010, at 1:47 PM, Martin.Mulone wrote:



  i know this need testing, i made this in hours so i think there are
  many errors, and i am going to fix. I am going to test in all
  browsers, ie, chrome. I think this is never going to validate because
  of the hacks, but the hacks allow that its show likely the same in all
  browser.

 Agreed. I like that you've made some attempt to document the hacks, and it'd 
 be nice if the validators allowed you to provide a list of expected 
 deviations.


[web2py] Re: welcome app normalize hack ie and html5 ready

2010-09-23 Thread Martin.Mulone
last thing you have to reaload F5 because of cache browser or use
http://web2pytesting.appspot.com/welcome2/

On Sep 23, 6:06 pm, Martin.Mulone mulone.mar...@gmail.com wrote:
 Version 2.0

 * About validation, this almost validate in html5 but one thing that
 is important, that force to last ie 
 renderhttp://validator.w3.org/check?uri=web2pytesting.appspot.comcharset=(...

 * About validation in css, well i prefer that show correct and good in
 all browser, than to validate correct. This is because of the hacks.
 Believe me is good to close to almost validate but not a must.
 Validate is: hey your are a good guy, but in real life you have the
 ie things, -moz and -wkit.

 I am ready to discuss, the things i changes. Some perhaps breaks
 compatibility with old welcome, but this is not important because
 scattfold app are for new ones.

 The main changes comes in layout.html, web2py_ajax.html, and base.css.
 You have to read this files, some are well documented in comments.
 Some explained 
 here:http://www.1stwebdesigner.com/development/snippets-html5-boilerplate/

 well the evil one, i make order in static/ so i put css in static/
 css/, js in static/js/ and images in static/images/. Its good to have
 in order this things.

 this is static now:

 css/ (css dir)
 favicon.ico (this display icon in browser, i add transparency)
 favicon.png (this display icon in browser, iphone)
 images/ (images)
 js/ (javascripts)
 robots.txt (to control robots)

 css/
   base.css (the main base style)
   calendar.css
   handheld.css (this is for mobile style)
   superfish.css (this is menu style)
   superfish-navbar.css
   superfish-vertical.css

 images/
   arrows-ff.png (menu need this)
   mylogo.png (this is app logo)
   noti_error.png (notification icon)
   noti_ok.png (notification icon)
   noti_warn.png (notification icon)
   shadow.png (menu need this)
   warning.png (pretty exception need this)
   web2py_icon.png (I add transparency to web2py icon)

 js/
   calendar.js
   dd_belatedpng.js (this fix issue:png tranparency in ie)
   jquery.js
   modernizr-1.5.min.js (this enabled html5)
   plugins.js (here perhaps the app plugins)
   script.js (here perhaps the app scripts)
   superfish.js

 * As suggest massimo i put black back in notifications.
 * I re enabled ez-css things to compatibility. But i dont understand
 why are sidebar-left and sidebar-right are if they not are used. Width
 0 not means hide div, so i do not recommend this, this need to be as
 display: none; if not used. If this break things, ok i understand.
 * I re download superfish.js from site i dont have missings images
 thats this need. Now there are superfish.css for this things.
 * Added pretty_exceptions function in models/utils.py, when you raise
 http show a better exception page see in action 
 here:http://web2pytesting.appspot.com/welcome/default/test_exception, this
 is an example perhaps need to be commented in controller.
 * in ajax_web2py i change that jquery download from online site
 prepared to serve this much faster anywhere, but if fails load the
 local version.
 * Some SEO things in layout, like analytics, meta tags specifics,
 robots etc.
 * Believe me this little things are need it, and perhaps a lot of
 more. Tomorrow i am going to check in different browsers.

 this is the welcome:http://web2pytesting.appspot.com/welcome/

 this is the 
 source:http://web2pytesting.appspot.com/welcome/static/welcome.ziphttp://web2pytesting.appspot.com/welcome/static/welcome.w2p

 And test this, the classical database example with new 
 layout:http://web2pytesting.appspot.com/database_example/default/register_dog

 On Sep 22, 6:12 pm, Jonathan Lundell jlund...@pobox.com wrote:



  On Sep 22, 2010, at 1:47 PM, Martin.Mulone wrote:

   i know this need testing, i made this in hours so i think there are
   many errors, and i am going to fix. I am going to test in all
   browsers, ie, chrome. I think this is never going to validate because
   of the hacks, but the hacks allow that its show likely the same in all
   browser.

  Agreed. I like that you've made some attempt to document the hacks, and 
  it'd be nice if the validators allowed you to provide a list of expected 
  deviations.


[web2py] Re: welcome app normalize hack ie and html5 ready

2010-09-23 Thread Martin.Mulone
Ok this is what i want to know, i'll going to fix tomorrow.

On Sep 23, 6:13 pm, rochacbruno rochacbr...@gmail.com wrote:
 Sidebars are there to be used with plugin_wiki that has meta-sidebar

 Enviado via iPhone

 Em 23/09/2010, às 18:09, Martin.Mulone mulone.mar...@gmail.com escreveu:



  last thing you have to reaload F5 because of cache browser or use
 http://web2pytesting.appspot.com/welcome2/

  On Sep 23, 6:06 pm, Martin.Mulone mulone.mar...@gmail.com wrote:
  Version 2.0

  * About validation, this almost validate in html5 but one thing that
  is important, that force to last ie 
  renderhttp://validator.w3.org/check?uri=web2pytesting.appspot.comcharset=(...

  * About validation in css, well i prefer that show correct and good in
  all browser, than to validate correct. This is because of the hacks.
  Believe me is good to close to almost validate but not a must.
  Validate is: hey your are a good guy, but in real life you have the
  ie things, -moz and -wkit.

  I am ready to discuss, the things i changes. Some perhaps breaks
  compatibility with old welcome, but this is not important because
  scattfold app are for new ones.

  The main changes comes in layout.html, web2py_ajax.html, and base.css.
  You have to read this files, some are well documented in comments.
  Some explained 
  here:http://www.1stwebdesigner.com/development/snippets-html5-boilerplate/

  well the evil one, i make order in static/ so i put css in static/
  css/, js in static/js/ and images in static/images/. Its good to have
  in order this things.

  this is static now:

  css/ (css dir)
  favicon.ico (this display icon in browser, i add transparency)
  favicon.png (this display icon in browser, iphone)
  images/ (images)
  js/ (javascripts)
  robots.txt (to control robots)

  css/
    base.css (the main base style)
    calendar.css
    handheld.css (this is for mobile style)
    superfish.css (this is menu style)
    superfish-navbar.css
    superfish-vertical.css

  images/
    arrows-ff.png (menu need this)
    mylogo.png (this is app logo)
    noti_error.png (notification icon)
    noti_ok.png (notification icon)
    noti_warn.png (notification icon)
    shadow.png (menu need this)
    warning.png (pretty exception need this)
    web2py_icon.png (I add transparency to web2py icon)

  js/
    calendar.js
    dd_belatedpng.js (this fix issue:png tranparency in ie)
    jquery.js
    modernizr-1.5.min.js (this enabled html5)
    plugins.js (here perhaps the app plugins)
    script.js (here perhaps the app scripts)
    superfish.js

  * As suggest massimo i put black back in notifications.
  * I re enabled ez-css things to compatibility. But i dont understand
  why are sidebar-left and sidebar-right are if they not are used. Width
  0 not means hide div, so i do not recommend this, this need to be as
  display: none; if not used. If this break things, ok i understand.
  * I re download superfish.js from site i dont have missings images
  thats this need. Now there are superfish.css for this things.
  * Added pretty_exceptions function in models/utils.py, when you raise
  http show a better exception page see in action 
  here:http://web2pytesting.appspot.com/welcome/default/test_exception, this
  is an example perhaps need to be commented in controller.
  * in ajax_web2py i change that jquery download from online site
  prepared to serve this much faster anywhere, but if fails load the
  local version.
  * Some SEO things in layout, like analytics, meta tags specifics,
  robots etc.
  * Believe me this little things are need it, and perhaps a lot of
  more. Tomorrow i am going to check in different browsers.

  this is the welcome:http://web2pytesting.appspot.com/welcome/

  this is the 
  source:http://web2pytesting.appspot.com/welcome/static/welcome.ziphttp://web...

  And test this, the classical database example with new 
  layout:http://web2pytesting.appspot.com/database_example/default/register_dog

  On Sep 22, 6:12 pm, Jonathan Lundell jlund...@pobox.com wrote:

  On Sep 22, 2010, at 1:47 PM, Martin.Mulone wrote:

  i know this need testing, i made this in hours so i think there are
  many errors, and i am going to fix. I am going to test in all
  browsers, ie, chrome. I think this is never going to validate because
  of the hacks, but the hacks allow that its show likely the same in all
  browser.

  Agreed. I like that you've made some attempt to document the hacks, and 
  it'd be nice if the validators allowed you to provide a list of expected 
  deviations.


[web2py] welcome app normalize hack ie and html5 ready

2010-09-22 Thread Martin.Mulone
welcome app normalize hack ie and html5 ready

I made some changes to welcome app, based on this http://html5boilerplate.com/
and other stuff.

* Added support ie 6.0 png transparency (hack)
* Normalize all tags
* Support for html 5 (future), using http://www.modernizr.com/, that
detect if your browser can handle it
* Different hack for different browser problems

* I neutralize the style of layout, center to the browser, etc.
* I remove all nonesense divs (ez-css), html is also a language code
so header, footer, page, sidebar names make sense to me.
* Added test css, to test ul li ol code, etc in the page.
* Added link to documentation and resources
* Added javascript show_notification, is the same that flash but with
and icon that show is ok, warning or error.

See in action http://web2pytesting.appspot.com/welcome/

Source: http://web2pytesting.appspot.com/welcome/static/welcome.zip

Tellme what you think


[web2py] Re: welcome app normalize hack ie and html5 ready

2010-09-22 Thread Martin.Mulone
i know this need testing, i made this in hours so i think there are
many errors, and i am going to fix. I am going to test in all
browsers, ie, chrome. I think this is never going to validate because
of the hacks, but the hacks allow that its show likely the same in all
browser.

 I think the resources menu should go in admin, not welcome and the

But the programmer have the option to make your own menu, i am going
to make some examples of using menus.

On Sep 22, 2:33 pm, Martin.Mulone mulone.mar...@gmail.com wrote:
 welcome app normalize hack ie and html5 ready

 I made some changes to welcome app, based on thishttp://html5boilerplate.com/
 and other stuff.

 * Added support ie 6.0 png transparency (hack)
 * Normalize all tags
 * Support for html 5 (future), usinghttp://www.modernizr.com/, that
 detect if your browser can handle it
 * Different hack for different browser problems

 * I neutralize the style of layout, center to the browser, etc.
 * I remove all nonesense divs (ez-css), html is also a language code
 so header, footer, page, sidebar names make sense to me.
 * Added test css, to test ul li ol code, etc in the page.
 * Added link to documentation and resources
 * Added javascript show_notification, is the same that flash but with
 and icon that show is ok, warning or error.

 See in actionhttp://web2pytesting.appspot.com/welcome/

 Source:http://web2pytesting.appspot.com/welcome/static/welcome.zip

 Tellme what you think


[web2py] Re: AJAX issue with '#' in URL

2010-09-21 Thread Martin.Mulone
I think to deal with your problems is what KMax says

On Sep 21, 1:02 am, KMax mkostri...@gmail.com wrote:
 Did you check errors in admin page?
  Ajax errors not easy to catch due their hideness.
  Try FireBug or other simular tools (Google chrome  IE8 has own build-
 in)

 On 13 сен, 10:40, weheh richard_gor...@verizon.net wrote:



  Sorry, I don't think I was very clear in my last message. I tried
  Massimo's suggestion but did the AJAX call still fails. I don't
  understand the new failure, yet, or whether it is the same as the old
  failure. I am investigating.


[web2py] Re: Yet an improved conference management system

2010-09-18 Thread Martin.Mulone
Great!

On Sep 18, 3:12 am, mdipierro mdipie...@cs.depaul.edu wrote:
 http://code.google.com/p/conf2py/

 can you try run it and check if you run into any setup/intallation
 issues?


[web2py] Re: Forms with hidden fields

2010-09-17 Thread Martin.Mulone
To hide a field:
Field('out','boolean',writable=False,readable=False)

And computed fields in book:
http://web2py.com/book/default/chapter/06#Computed-Fields


On 17 sep, 05:58, Fabio Alessandro Locati floc...@grimp.eu wrote:
 Hi,
 I'm trying to make a form with a hidden field, but I haven't found the way
 to do it :(.

 I have a table:
 db.define_table('partners',
     Field('name','string'),
     Field('out','boolean'))

 I want to ask to the user the name of the partner and, based on the name of
 the page, the value of 'out'. I was thinking into making two different pages
 one that has - at code level - out=1 and the other one that had out=0. How
 can I do this, without showing to the user the existence of the 'out' field?

 Thanks :)


[web2py] Re: Getting Data of uploaded File from DB downloading text as file?

2010-09-17 Thread Martin.Mulone
I think you also need:

response.headers['Content-Type']='text/plain'

On Sep 17, 10:21 am, mdipierro mdipie...@cs.depaul.edu wrote:
 sorry I forgot.

 Imagine you have:

 db.define_table('mytable',Field('somedata','text'))

 you can define an action:

 def gimmefile():
     #http:///gimmefile/id
     myrecord=db.mytable(request.args(0))
     filename = %s.txt % myrecord.id
     response.headers['Content-Dispotion']=attachment;filename=%s %
 filename
     return myrecord.text

 On Sep 17, 3:18 am, till till.salzge...@gmail.com wrote:



  cheers!

  do you have yet another solution for the string to file dl idea?

  thanks :-)

  On Sep 16, 5:51 pm, mdipierro mdipie...@cs.depaul.edu wrote:

   filename,stream=db.dogs.image.retrieve(doggies[0].image)
   data=stream.read()

   On Sep 16, 10:11 am, till till.salzge...@gmail.com wrote:

hi all,

wondering how I can get the raw data of files uploaded into a db field
to work with it.
such as:
doggies = db().select(db.dogs.ALL)
doggies[0].image - how can I access the raw data of the img?

also, if I have a text in the db, how can I allow the user to download
a file with just the content of this one field, with a given filename
it will use in the save as?

thanks in advance


[web2py] Re: web2py 1.85.1 is OUT

2010-09-16 Thread Martin.Mulone
thanks mariano.

On 16 sep, 01:16, Mariano Reingart reing...@gmail.com wrote:
 Bruno, I'm glad you liked PyFPDF, and thanks Massimo for this great
 framework and his openess to accept contributions :-)

 In short, you can convert HTML to PDF (ie. reports and listing using
 tables, images, lists), and you can use a template engine to make
 document like invoices, labels, id cards, badges, certficates, etc.

 Of course, using web2py helpers and DAL makes things easier.

 There is a mini-tutorial for web2py and pyfpdf showing how to create
 PDF reports, listings and templates (ie. a invoice):

 http://code.google.com/p/pyfpdf/wiki/Web2Py

 There is a example application with all the samples ready to use too:

 http://code.google.com/p/pyfpdf/downloads/detail?name=web2py.app.fpdf...

 If anyone need something else, just let me know

 Best regards,

 Mariano 
 Reingarthttp://www.web2py.com.arhttp://www.sistemasagiles.com.arhttp://reingart.blogspot.com



 On Wed, Sep 15, 2010 at 8:47 PM, Bruno Rocha rochacbr...@gmail.com wrote:
  Cool! Thank you!
  I just implemented that in one app to generate a schedule.pdf and did the
  job very well, paginated and with page numbers.. so cool!
  Thank you Massimo and Mariano.
  Tomorrow I will document what I did, may be it can be added to the book or
  some other place as a tutorial.

  2010/9/15 mdipierro mdipie...@cs.depaul.edu

  My mistake. 1.85.2 now has it.

  On Sep 15, 1:59 pm, Bruno Rocha rochacbr...@gmail.com wrote:
   Downloades 1.85.1 , pyfpdf is not there in contrib!

   2010/9/15 mdipierro mdipie...@cs.depaul.edu

Should be in contrib. Is it not?

On Sep 15, 1:23 pm, Bruno Rocha rochacbr...@gmail.com wrote:
 Thank you,

 BTW, where is pyfpdf?

 I made a search in trunk and I did't find pdf or fdpf references,
 is that in /contrib ?

 2010/9/15 mdipierro mdipie...@cs.depaul.edu

 http://web2py.com/examples/static/version/web2py_src.zip

  On Sep 15, 11:00 am, Bruno Rocha rochacbr...@gmail.com wrote:
   Is there a place to download older versions?

   2010/9/15 mdipierro mdipie...@cs.depaul.edu

it had to be because of

- a couple of importent bug fixes
- new feature: pyfpdf has been included (Mariano can explain
it)

Massimo

   --

  http://rochacbruno.com.br

 --

http://rochacbruno.com.br

   --

  http://rochacbruno.com.br

  --

 http://rochacbruno.com.br


[web2py] great tool wdt for linux users

2010-09-16 Thread Martin.Mulone
WDT - Web Developer Tools

http://gnome-look.org/content/show.php/WDT+-+Web+Developer+Tools?content=129726


[web2py] Re: Image gallery on GAE

2010-09-15 Thread Martin.Mulone
First to use blobstore you have to enabled billing. Yes for your
approach i think the best is to use blobstore in gae.

Take a look to this:
http://www.web2pyslices.com/main/slices/take_slice/63

And to display images use the new introduce function get_serving_url
is really fast and doesnt consume much resources
you have to store blob_key)

def _response_image(table_name='images',image_size=64):
if request.env.web2py_runtime_gae:
from google.appengine.ext import blobstore
from google.appengine.api import images

if not request.args:
raise HTTP(404)
myimages=db(db[table_name].image==request.args[0]).select()
if myimages:
myimage = myimages[0]
if myimage.blob_key:
if GAE_SERVING_IMAGE:
image_serving =
images.get_serving_url(myimage.blob_key,image_size)
return image_serving




On 15 sep, 07:08, István Gazsi theag...@gmail.com wrote:
 Hi everybody!

 As part of a website I try to make an image gallery in web2py. The
 database model is simple: there is a 100x100 thumbnail, the whole
 picture, and (optionally) the image's title.

 The website runs on Google App Engine and web2py v1.83.2 for now.
 There are multiple problems with it. First, I can only upload images
 under 1MB. Second, the gallery page loads very slowly (I make a select
 for only 25 records in web2py), and in the GAE logs there is always
 warnings about memory usage.

 For the first problem the solution would be using the GAE blobstore,
 but I don't really know how to do that. Is it implemented in web2py?
 For the second problem I don't know the solution.

 If you would do an image gallery like mine from the ground up, how
 would you do that? And do you have any advices about my problems?

 Thanks in advance!


[web2py] Re: HTML5 Boilerplate

2010-09-15 Thread Martin.Mulone
Very interesting, +1.

On Sep 15, 4:03 pm, Michael Ellis michael.f.el...@gmail.com wrote:
 Just came across this while searching for something else.  Haven't
 played with it at all yet.  Looks as though the authors have packaged
 together a fairly comprehensive set of html/css/js  techniques for
 cross-browser compatibility and good performance.

 Some of the techniques might be worth incorporating into layout.html.

 Good video here

 http://net.tutsplus.com/tutorials/html-css-techniques/the-official-gu...

 Main site is

 http://html5boilerplate.com/

 The video is also at the bottom of the page at the main site.

 Cheers,
 Mike


[web2py] Re: happy programmer's day everybody

2010-09-13 Thread Martin.Mulone
happy programmer's day to all

On Sep 13, 9:15 am, mdipierro mdipie...@cs.depaul.edu wrote:
 http://en.wikipedia.org/wiki/Programmers%27_Day


[web2py] contains, string:list solution

2010-09-10 Thread Martin.Mulone
I report  a bug with 'contains' in gae in list:string but in trunk is
not fixed. I want to know if this is going to be fixed and when
because is important.

this simple make in gql.py do the job

in gluon/contrib/gql.py
-
def contains(self, value):
if self.type.startswith('list:'):
if isinstance(value, (unicode, str) ):
value = [value]
return Query(self, 'IN', value)
else:
raise RuntimeError, Not supported



PROBLEM TEST:
=
In gae doesn't show any record with keywords 'planet' and 'moon'

You can verified here: http://web2pytesting.appspot.com/ultimatelist/

-
in db.py


db.define_table('tags',
Field('id', 'id'),
Field('name'),format='%(name)s')

db.define_table('testing',
  Field('id', 'id'),
  Field('keywords', 'list:string'),
  Field('numbers', 'list:integer'),
  Field('tags', 'list:reference
tags'),
  migrate=True)

testing = db(db.testing.id0).select()
if not testing:
tag1 = db.tags.insert(name=TAG1)
tag2 = db.tags.insert(name=TAG2)
tag3 = db.tags.insert(name=TAG3)
tag4 = db.tags.insert(name=TAG4)
tag5 = db.tags.insert(name=TAG5)
tag6 = db.tags.insert(name=TAG6)
id1 = db.testing.insert(keywords=['planets', 'moon',
'space'],numbers=[1, 11, 111, 0],tags=[tag1, tag2, tag3])
id2 = db.testing.insert(keywords=['planets', 'mars',
'space'],numbers=[2, 22, 222, 0],tags=[tag1, tag4, tag5])
id2 = db.testing.insert(keywords=['planets', 'mercury',
'space'],numbers=[3, 33, 333, 0],tags=[tag1, tag2, tag6])

-
controller/default.py


def index():
keys_planets =
db(db.testing.keywords.contains('planets')).select()
keys_moon = db(db.testing.keywords.contains('moon')).select()
number_0 = db(db.testing.numbers.contains('0')).select()
number_1 = db(db.testing.numbers.contains('1')).select()
return dict(keys_planets=keys_planets, keys_moon=keys_moon,
number_0=number_0, number_1=number_1)



[web2py] Re: contains, string:list solution

2010-09-10 Thread Martin.Mulone
We were unable to post your message


On Sep 10, 12:14 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 can you help me debug this? Why is the code below wrong?

 On Sep 10, 9:40 am, Martin.Mulone mulone.mar...@gmail.com wrote:



  I report  a bug with 'contains' in gae in list:string but in trunk is
  not fixed. I want to know if this is going to be fixed and when
  because is important.

  this simple make in gql.py do the job

  in gluon/contrib/gql.py
  -
      def contains(self, value):
          if self.type.startswith('list:'):
              if isinstance(value, (unicode, str) ):
                  value = [value]
              return Query(self, 'IN', value)
          else:
              raise RuntimeError, Not supported

  PROBLEM TEST:
  =
  In gae doesn't show any record with keywords 'planet' and 'moon'

  You can verified here:http://web2pytesting.appspot.com/ultimatelist/

  -
  in db.py
  

  db.define_table('tags',
                  Field('id', 'id'),
                  Field('name'),format='%(name)s')

  db.define_table('testing',
                    Field('id', 'id'),
                    Field('keywords', 'list:string'),
                    Field('numbers', 'list:integer'),
                    Field('tags', 'list:reference
  tags'),
                    migrate=True)

  testing = db(db.testing.id0).select()
  if not testing:
      tag1 = db.tags.insert(name=TAG1)
      tag2 = db.tags.insert(name=TAG2)
      tag3 = db.tags.insert(name=TAG3)
      tag4 = db.tags.insert(name=TAG4)
      tag5 = db.tags.insert(name=TAG5)
      tag6 = db.tags.insert(name=TAG6)
      id1 = db.testing.insert(keywords=['planets', 'moon',
  'space'],numbers=[1, 11, 111, 0],tags=[tag1, tag2, tag3])
      id2 = db.testing.insert(keywords=['planets', 'mars',
  'space'],numbers=[2, 22, 222, 0],tags=[tag1, tag4, tag5])
      id2 = db.testing.insert(keywords=['planets', 'mercury',
  'space'],numbers=[3, 33, 333, 0],tags=[tag1, tag2, tag6])

  -
  controller/default.py
  

  def index():
      keys_planets =
  db(db.testing.keywords.contains('planets')).select()
      keys_moon = db(db.testing.keywords.contains('moon')).select()
      number_0 = db(db.testing.numbers.contains('0')).select()
      number_1 = db(db.testing.numbers.contains('1')).select()
      return dict(keys_planets=keys_planets, keys_moon=keys_moon,
  number_0=number_0, number_1=number_1)


[web2py] Re: contains, string:list solution

2010-09-10 Thread Martin.Mulone
I continue here because google dont like my reply

http://code.google.com/p/web2py/issues/detail?id=108

On Sep 10, 12:14 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 can you help me debug this? Why is the code below wrong?

 On Sep 10, 9:40 am, Martin.Mulone mulone.mar...@gmail.com wrote:



  I report  a bug with 'contains' in gae in list:string but in trunk is
  not fixed. I want to know if this is going to be fixed and when
  because is important.

  this simple make in gql.py do the job

  in gluon/contrib/gql.py
  -
      def contains(self, value):
          if self.type.startswith('list:'):
              if isinstance(value, (unicode, str) ):
                  value = [value]
              return Query(self, 'IN', value)
          else:
              raise RuntimeError, Not supported

  PROBLEM TEST:
  =
  In gae doesn't show any record with keywords 'planet' and 'moon'

  You can verified here:http://web2pytesting.appspot.com/ultimatelist/

  -
  in db.py
  

  db.define_table('tags',
                  Field('id', 'id'),
                  Field('name'),format='%(name)s')

  db.define_table('testing',
                    Field('id', 'id'),
                    Field('keywords', 'list:string'),
                    Field('numbers', 'list:integer'),
                    Field('tags', 'list:reference
  tags'),
                    migrate=True)

  testing = db(db.testing.id0).select()
  if not testing:
      tag1 = db.tags.insert(name=TAG1)
      tag2 = db.tags.insert(name=TAG2)
      tag3 = db.tags.insert(name=TAG3)
      tag4 = db.tags.insert(name=TAG4)
      tag5 = db.tags.insert(name=TAG5)
      tag6 = db.tags.insert(name=TAG6)
      id1 = db.testing.insert(keywords=['planets', 'moon',
  'space'],numbers=[1, 11, 111, 0],tags=[tag1, tag2, tag3])
      id2 = db.testing.insert(keywords=['planets', 'mars',
  'space'],numbers=[2, 22, 222, 0],tags=[tag1, tag4, tag5])
      id2 = db.testing.insert(keywords=['planets', 'mercury',
  'space'],numbers=[3, 33, 333, 0],tags=[tag1, tag2, tag6])

  -
  controller/default.py
  

  def index():
      keys_planets =
  db(db.testing.keywords.contains('planets')).select()
      keys_moon = db(db.testing.keywords.contains('moon')).select()
      number_0 = db(db.testing.numbers.contains('0')).select()
      number_1 = db(db.testing.numbers.contains('1')).select()
      return dict(keys_planets=keys_planets, keys_moon=keys_moon,
  number_0=number_0, number_1=number_1)


[web2py] Re: contains, string:list solution

2010-09-10 Thread Martin.Mulone
thanks, is fixed now

On Sep 10, 1:55 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 I think it is fixed now.
 very strange. I remember having this that already this week. Perhaps a
 de ja vu.

 Massimo

 On Sep 10, 11:32 am, Martin.Mulone mulone.mar...@gmail.com wrote:



  I continue here because google dont like my reply

 http://code.google.com/p/web2py/issues/detail?id=108

  On Sep 10, 12:14 pm, mdipierro mdipie...@cs.depaul.edu wrote:

   can you help me debug this? Why is the code below wrong?

   On Sep 10, 9:40 am, Martin.Mulone mulone.mar...@gmail.com wrote:

I report  a bug with 'contains' in gae in list:string but in trunk is
not fixed. I want to know if this is going to be fixed and when
because is important.

this simple make in gql.py do the job

in gluon/contrib/gql.py
-
    def contains(self, value):
        if self.type.startswith('list:'):
            if isinstance(value, (unicode, str) ):
                value = [value]
            return Query(self, 'IN', value)
        else:
            raise RuntimeError, Not supported

PROBLEM TEST:
=
In gae doesn't show any record with keywords 'planet' and 'moon'

You can verified here:http://web2pytesting.appspot.com/ultimatelist/

-
in db.py


db.define_table('tags',
                Field('id', 'id'),
                Field('name'),format='%(name)s')

db.define_table('testing',
                  Field('id', 'id'),
                  Field('keywords', 'list:string'),
                  Field('numbers', 'list:integer'),
                  Field('tags', 'list:reference
tags'),
                  migrate=True)

testing = db(db.testing.id0).select()
if not testing:
    tag1 = db.tags.insert(name=TAG1)
    tag2 = db.tags.insert(name=TAG2)
    tag3 = db.tags.insert(name=TAG3)
    tag4 = db.tags.insert(name=TAG4)
    tag5 = db.tags.insert(name=TAG5)
    tag6 = db.tags.insert(name=TAG6)
    id1 = db.testing.insert(keywords=['planets', 'moon',
'space'],numbers=[1, 11, 111, 0],tags=[tag1, tag2, tag3])
    id2 = db.testing.insert(keywords=['planets', 'mars',
'space'],numbers=[2, 22, 222, 0],tags=[tag1, tag4, tag5])
    id2 = db.testing.insert(keywords=['planets', 'mercury',
'space'],numbers=[3, 33, 333, 0],tags=[tag1, tag2, tag6])

-
controller/default.py


def index():
    keys_planets =
db(db.testing.keywords.contains('planets')).select()
    keys_moon = db(db.testing.keywords.contains('moon')).select()
    number_0 = db(db.testing.numbers.contains('0')).select()
    number_1 = db(db.testing.numbers.contains('1')).select()
    return dict(keys_planets=keys_planets, keys_moon=keys_moon,
number_0=number_0, number_1=number_1)


[web2py] Re: Reverse table look up in GAE

2010-09-09 Thread Martin.Mulone
Yes but i think this is gae thing. You try? with max(id) or add some
datetime field and order by this field like Field('created_on',
'datetime',
default=datetime.datetime.today(),writable=False,readable=False)

On 9 sep, 03:06, b vivek bvivek1...@gmail.com wrote:
 Ok so if i have a table in my db named homepage as below:-
 --
 id  | data |
 ---
 1   | vivek|
 --
 2  | andrew|
 ---

 Now if I want to retrieve only the last row .. i can do this
 homepage=db().select(db.homepage.ALL,orderby=~db.homepage.id,limitby=(0,1))

 Now let me point out that this works prefectly on localhost using the normal
 rdbms like mysql or sqlite. However when I use the local development GAE
 environ or even when I upload it to GAE,it just returns the first row. Seems
 like it totally ignores the tilde.

 The same command when used on GAE gives me the first row,rather than the
 last one.

 Thanks
 Vivek

 On Thu, Sep 9, 2010 at 11:27 AM, Andrew Thompson andre...@aktzero.comwrote:



   On 9/9/2010 12:24 AM, b vivek wrote:

  Hi I wanted to retrieve the latest data entered in a table and thus used
  the below syntax for data look up

  homepage=db().select(db.homepage.ALL,orderby=~db.homepage.id
  ,limitby=(0,1))

   This is expected to retrieve the last row entered in the table homepage .
  While this works perfectly, it does not work on GAE. It would be really
  helpful, if someone could please help me with this..

  While I'm not familiar with GAE, I can say for sure that you've not
  provided enough information.

  How does it not work?

  For example, can you make any .select() work? If you remove the orderby or
  the limitby does it change how it doesn't work?

  --
  Andrew Thompsonhttp://aktzero.com/


[web2py] Re: Web2py Full Text Search Options

2010-09-06 Thread Martin.Mulone
This is not a proper full text but i want to make a better search
cause in gae don't have like operator, so i use new introduce
list:string that is supported in both gae and sqlite. So in the search
I use contains in that field, but at the moment there are a bug in
web2py http://code.google.com/p/web2py/issues/detail?id=105

For example i have:

db.define_table('posts',
  db.Field('id', 'id'),

  db.Field('keywords', 'list:string'),
#tags
  db.Field('fulltext',
'list:string'),
  migrate=True)

http://code.google.com/p/instant-press/source/browse/trunk/models/fulltext.py




On 5 sep, 13:53, John dr.schmu...@gmail.com wrote:
 Hi all.
 I'm newby in web2py.
  How to  implement full text search in my web2py web application?
   I am a big fan of the Xapian search engine library. Any plugin,
 recipes  suggestion ?
  Thanks ,
   John


[web2py] Re: Web2py Full Text Search Options

2010-09-06 Thread Martin.Mulone
DONT PAY ATTENTION TO THE EARLY POST WAS MISTAKEN SUBMMITED

This is not a proper full text but i want to make a better search
cause in gae don't have like operator, so i use new introduce
list:string that is supported in both gae and sqlite. So in the
search
I use contains in that field, but at the moment there are a bug in
web2py http://code.google.com/p/web2py/issues/detail?id=105

For example i have:
db.define_table('posts',
  db.Field('id', 'id'),
  db.Field('content', 'text'),
  db.Field('keywords', 'list:string'), #tags
  db.Field('fulltext', 'list:string'),
  migrate=True)

When i want to process content of text

I use

clean_words = get_clean_words(searchable)
post.update_record(content= value, fulltext = clean_words)

To search i Use contains().

This remove the stop words of the text and save in a list string.

http://code.google.com/p/instant-press/source/browse/trunk/models/fulltext.py

If you have a better ideas i am listening :)

On 6 sep, 07:45, Martin.Mulone mulone.mar...@gmail.com wrote:
 This is not a proper full text but i want to make a better search
 cause in gae don't have like operator, so i use new introduce
 list:string that is supported in both gae and sqlite. So in the search
 I use contains in that field, but at the moment there are a bug in
 web2pyhttp://code.google.com/p/web2py/issues/detail?id=105

 For example i have:

 db.define_table('posts',
                   db.Field('id', 'id'),

                   db.Field('keywords', 'list:string'),
 #tags
                   db.Field('fulltext',
 'list:string'),
                   migrate=True)

 http://code.google.com/p/instant-press/source/browse/trunk/models/ful...

 On 5 sep, 13:53, John dr.schmu...@gmail.com wrote:



  Hi all.
  I'm newby in web2py.
   How to  implement full text search in my web2py web application?
    I am a big fan of the Xapian search engine library. Any plugin,
  recipes  suggestion ?
   Thanks ,
    John


  1   2   >