Re: [web2py] typo in the book

2012-01-25 Thread Johann Spies
Another one: In the "Views" chapter {{=DIV(B(I("hello ", ""))), _class="myclass")}} should be {{=DIV(B(I("hello ", "")), _class="myclass")}} Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3)

Re: [web2py] Re: High memory usage in webfaction

2012-01-25 Thread Roberto De Ioris
> can I rotate log (uwsgi.log) with this command? I don't want the log file > to go on increasing in size log-maxsize = n where n is the maximum size in bytes -- Roberto De Ioris http://unbit.it

[web2py] Re: email_auth works on web2py server, but not GAE - ANSWER: No sockets in the sandbox, no smtp connections! That's all. No email_auth on GAE

2012-01-25 Thread pattu
I didn't get much success in getting logging to work with the GAE - there is a slice for it, but it all is pretty complicated. BUT... I tried the following code in the interactive console on the dev engine: import smtplib host = 'gmail.com' port = 587 server = smtplib.SMTP(host, port) server.h

Re: [web2py] Change the case in auth.navbar?

2012-01-25 Thread Anthony
On Wednesday, January 25, 2012 9:50:14 PM UTC-5, pbreit wrote: > > Instead of making it configurable, is there a way to make it over-rideable? > > I don't know Python that well but doesn't it support object orientation > such that functionality can be over-ridden by sib-classing or whatever? > Yo

Re: [web2py] Re: High memory usage in webfaction

2012-01-25 Thread Joseph Jude
can I rotate log (uwsgi.log) with this command? I don't want the log file to go on increasing in size

Re: [web2py] Change the case in auth.navbar?

2012-01-25 Thread pbreit
Instead of making it configurable, is there a way to make it over-rideable? I don't know Python that well but doesn't it support object orientation such that functionality can be over-ridden by sib-classing or whatever?

Re: [web2py] Change the case in auth.navbar?

2012-01-25 Thread Jonathan Lundell
On Jan 25, 2012, at 6:54 PM, Anthony wrote: > Yeah, that's why we should probably just make it configurable. :-) I was distracted, I think, by the different verbs and didn't notice the different objects, perhaps itself a reason to use the same verb both places. I don't think it matters too much

Re: [web2py] Change the case in auth.navbar?

2012-01-25 Thread Naveed Ahmed
I agree. From: Anthony Sent: Wednesday, January 25, 2012 18.54 To: web2py@googlegroups.com Subject: Re: [web2py] Change the case in auth.navbar? Yeah, that's why we should probably just make it configurable. :-) On Wednesday, January 25, 2012 7:46:39 PM UTC-5, ニコノコ wrote: Hmm ... if one is

Re: [web2py] Change the case in auth.navbar?

2012-01-25 Thread Anthony
Yeah, that's why we should probably just make it configurable. :-) On Wednesday, January 25, 2012 7:46:39 PM UTC-5, ニコノコ wrote: > > Hmm ... if one is gonna be anal about this, I think "lost" should be used > instead. Some users never really know their passwords or usernames, they > are either re

Re: [web2py] Change the case in auth.navbar?

2012-01-25 Thread Nik Go
Hmm ... if one is gonna be anal about this, I think "lost" should be used instead. Some users never really know their passwords or usernames, they are either recorded somewhere or recorded automatically (autofill?), and in case they loose this, then they never really forgot since they never remembe

Re: [web2py] Re: Change the case in auth.navbar?

2012-01-25 Thread Anthony
I thought his point was why use "forgot" for one and "lost" for the other? Why not "forgot" in both cases? On Wednesday, January 25, 2012 7:03:18 PM UTC-5, naveed wrote: > > It's "forgot USERNAME" vs "forgot PASSWORD". >

Re: [web2py] Re: Change the case in auth.navbar?

2012-01-25 Thread Jonathan Lundell
On Jan 25, 2012, at 6:03 PM, naveed wrote: > It's "forgot USERNAME" vs "forgot PASSWORD". Thanks. I should learn to read first.

Re: [web2py] Re: Change the case in auth.navbar?

2012-01-25 Thread Anthony
On Wednesday, January 25, 2012 7:00:53 PM UTC-5, Jonathan Lundell wrote: > > On Jan 25, 2012, at 5:54 PM, Anthony wrote: > > We should fix that -- submit an issue: > http://code.google.com/p/web2py/issues/list > > > Just curious (and too lazy/unconnected to read the source): what's the > differen

Re: [web2py] Re: Change the case in auth.navbar?

2012-01-25 Thread naveed
It's "forgot USERNAME" vs "forgot PASSWORD".

[web2py] Re: Change the case in auth.navbar?

2012-01-25 Thread naveed
Thanks, I just submitted it.

Re: [web2py] Re: Change the case in auth.navbar?

2012-01-25 Thread Jonathan Lundell
On Jan 25, 2012, at 5:54 PM, Anthony wrote: > We should fix that -- submit an issue: > http://code.google.com/p/web2py/issues/list Just curious (and too lazy/unconnected to read the source): what's the difference between forgot & lost (and are the question marks really needed?)? > > On Wednes

[web2py] Re: Change the case in auth.navbar?

2012-01-25 Thread Anthony
We should fix that -- submit an issue: http://code.google.com/p/web2py/issues/list On Wednesday, January 25, 2012 6:48:49 PM UTC-5, naveed wrote: > > The navbar for me shows like this: > > Login | Register | forgot username? | Lost password? > > The "forgot username?" is in all lowercase, while t

[web2py] Change the case in auth.navbar?

2012-01-25 Thread naveed
The navbar for me shows like this: Login | Register | forgot username? | Lost password? The "forgot username?" is in all lowercase, while the others are in sentence case. What is the cleanest way of making them consistent? Thanks!

Re: [web2py] Setting mysql collation in web2py?

2012-01-25 Thread Bruno Rocha
Maybe it should be a parameter with defaults to utf8 On Wed, Jan 25, 2012 at 8:03 PM, mdorval wrote: > I've tracked down this problem to this code in DAL create_table: > > if self.dbengine == 'mysql': > if not hasattr(table, "_primarykey"): > fields.append('PR

Re: [web2py] Re: Sending email from form with multiple documents

2012-01-25 Thread Bruno Rocha
Nice! thanks for sharing! On Wed, Jan 25, 2012 at 6:13 PM, Omi Chiba wrote: > Solved ! > > Please refer the slice if you're interested. > http://www.web2pyslices.com/slices/take_slice/150 > > > > On Jan 25, 9:21 am, Omi Chiba wrote: > > I was creating a simple app which will send email with a s

Re: [web2py] Setting mysql collation in web2py?

2012-01-25 Thread mdorval
I've tracked down this problem to this code in DAL create_table: if self.dbengine == 'mysql': if not hasattr(table, "_primarykey"): fields.append('PRIMARY KEY(%s)' % table._id.name) other = ' ENGINE=InnoDB CHARACTER SET utf8;' hard coding the charac

[web2py] Re: Error with ignore_common_filters when using a select string (instead of a DAL query)

2012-01-25 Thread pbreit
Seems like a good feature. I don't know how I would use Postgres text search without it. It's still throwing an error on line 1194: File "/Users/pbreit/web2py/gluon/dal.py", line 1194, in _select if query and not query.ignore_common_filters: AttributeError: 'str' object has no attribute 'i

[web2py] Re: Problem with legacy tables

2012-01-25 Thread Omi Chiba
Sound like it's related to the issue I posted before. http://code.google.com/p/web2py/issues/detail?id=547 The bottom line is you cannot use SQLFORM.grid/SQLTABLE if you don't have "id" field.I have also legacy table which doesn't have field called "id". I gave using SQLFORM.grid and create the li

[web2py] Re: Sending email from form with multiple documents

2012-01-25 Thread Omi Chiba
Solved ! Please refer the slice if you're interested. http://www.web2pyslices.com/slices/take_slice/150 On Jan 25, 9:21 am, Omi Chiba wrote: > I was creating a simple app which will send email with a single document > and it works fine. I found Paolo's post to handle multiple documents and > t

Re: [web2py] Re: High memory usage in webfaction

2012-01-25 Thread Vasile Ermicioi
> > I'm assuming there is no need to restart uwsgi; it automatically does I > suppose? it is started with this command uwsgi --http 127.0.0.1:your_custom_port --pythonpath /home/your_user /web2py --module wsgihandler -d /home/your_user/tmp/uwsgi.log -t 20 -r --no-orphans -M -p 2 --touch-reload /

[web2py] Re: Nobs questions about install web2py on webfaction and others...

2012-01-25 Thread Joseph Jude
use uwsgi. Ref: https://groups.google.com/d/msg/web2py/LOdYk1C7B0I/JiMA_HzNqBQJ

[web2py] Re: High memory usage in webfaction

2012-01-25 Thread Joseph Jude
sorry it is midnight here and i am too relieved that it is solved and too excited that now i can get back to 'real' development. dropped to 71 mb from 120 mb

[web2py] Re: Initial db setup using csv import for relational tables?

2012-01-25 Thread vtgorilla
Thanks nils, I will give that a try when I get home from work. I had another idea that I will try out as well...leaving it here for my reference later. create the players.team field, but also leave in the players.teamname (string) add a false id value for all players (0 in this case will probably

[web2py] Re: High memory usage in webfaction

2012-01-25 Thread Massimo Di Pierro
"dropped from 71 mb from 120 mb" which of the two numbers has a typo? :-) On Jan 25, 12:34 pm, Joseph Jude wrote: > oh my god.  The memory usage dropped from 71 mb from 120 mb. webfaction > should use this as their default for installing web2py. > > I can't thank you enough. > > Just one more qu

Re: [web2py] High memory usage in webfaction

2012-01-25 Thread Joseph Jude
oh my god. The memory usage dropped from 71 mb from 120 mb. webfaction should use this as their default for installing web2py. I can't thank you enough. Just one more question: 1. I'm assuming there is no need to restart uwsgi; it automatically does I suppose? Thank you, Joseph

[web2py] Nobs questions about install web2py on webfaction and others...

2012-01-25 Thread Ivan Vilches Basaul
Hello guys i am new in python and programming web, i am studing web2py , i pay for a hosting on webfaction anyone have a guide for install it on ? my other question is about i am a little confused i was read about nginx and his amazing perforamance what i should use nginx or apache? are equivale

[web2py] raise RuntimeError in new set-up of Eclipse project

2012-01-25 Thread Carl
I've set-up a new workspace and project in Eclipse but when I run a session off web2py.py the standard apps fail to load throwing an exception in dal.py class SQLiteAdapter(BaseAdapter): ... def __init__(self, db, uri, pool_size=0, folder=None, db_codec ='UTF-8', credential_decod

Re: [web2py] Initial db setup using csv import for relational tables?

2012-01-25 Thread nils
Hi, I had a similar problem, my solution was somthing like this: import csv dr = csv.DictReader(open('csvfile.csv'), delimiter=',') for data in dr: if data['team'] =='text': team = 1 or (the team id in your table) elif data['team'] =='more text': team = 2 or (the team

[web2py] Initial db setup using csv import for relational tables?

2012-01-25 Thread vtgorilla
Hi, first post so go easy on me! I have two tables setup as shown below. I have a lot of data (thousands of lines) that I'd like to import, but I can't seem to figure out an easy way to relate the players.team field back to a team in the teams table without modifying thousands of lines in excel, o

[web2py] Re: Chunked downloads and corrupt files with Internet Explorer 8 (IE8)

2012-01-25 Thread nick name
I posted https://github.com/explorigin/Rocket/issues/1#issuecomment-3648126 - I suspect it is an interplay between timeouts and sendall(), though I can't really prove it (and I can't reliably reproduce this either right now). Also some characterization about when this happens to me (slow links,

Re: [web2py] Re: Web2py auth and Qooxdoo

2012-01-25 Thread Phyo Arkar
And Bruno please keep Movca Rolling ! this have potential to become a Killer Web2py and Python APP. On Wed, Jan 25, 2012 at 10:51 PM, Phyo Arkar wrote: > Thank you very very very much Bruno! that works! > > web2py have the best online community! > > > On Sun, Jan 22, 2012 at 11:23 AM, Bruno Rocha

Re: [web2py] Re: Web2py auth and Qooxdoo

2012-01-25 Thread Phyo Arkar
Thank you very very very much Bruno! that works! web2py have the best online community! On Sun, Jan 22, 2012 at 11:23 AM, Bruno Rocha wrote: > > Thats what I have in http://movu.ca > > def loginbare(self): > username = self.request.vars.email > password = self.request.vars.p

[web2py] Sending email from form with multiple documents

2012-01-25 Thread Omi Chiba
I was creating a simple app which will send email with a single document and it works fine. I found Paolo's post to handle multiple documents and tried. It worked great but I have two problems. Paolo's post https://groups.google.com/group/web2py/browse_thread/thread/5e99d46f6fcc6917/47e772339664

[web2py] typo in the book

2012-01-25 Thread guruyaya
in chapter 6, at the section talking about "Copy data from one db into another" db = DAL('postgresql://username:password@hocalhost/mydb') Probably meant db = DAL('postgres://username:password@localhost/mydb')

[web2py] Re: Problem with legacy tables

2012-01-25 Thread brushek
I'm using vim, editing files directly on server. On 25 Sty, 15:47, Marin Pranjić wrote: > What do you use for development? If you use an IDE with debugging > step-by-step featues, you can find out where does "id" come from > > > > > > > > On Wed, Jan 25, 2012 at 3:35 PM, brushek wrote: > > > On

[web2py] Re: menu.py loop

2012-01-25 Thread Web2Py Freak
oh Dam , i didnt see that , Thank you anthony :) its working well now

Re: [web2py] Re: Problem with legacy tables

2012-01-25 Thread Marin Pranjić
What do you use for development? If you use an IDE with debugging step-by-step featues, you can find out where does "id" come from On Wed, Jan 25, 2012 at 3:35 PM, brushek wrote: > > > On 25 Sty, 15:17, Anthony wrote: > > I left the following comment with the issue: > > > > shop=SQLFORM.grid(db

[web2py] Re: menu.py loop

2012-01-25 Thread Anthony
On Wednesday, January 25, 2012 9:23:51 AM UTC-5, Web2Py Freak wrote: > > it keep giving me en error in the response.menu failed to compile file > because: > SyntaxError at line 30 at char 7 > invalid syntax (C:/web2py/applications/a3zif/models/menu.py, line > 30) , this is my code : > > > ins

[web2py] Re: Problem with legacy tables

2012-01-25 Thread brushek
On 25 Sty, 15:17, Anthony wrote: > I left the following comment with the issue: > > shop=SQLFORM.grid(db.gk_shop,fields=[db.gk_shop.id,db.gk_shop.nazwa_modulu],user_signature=False,deletable=False) > > Note, your refer to db.gk_shop.id, but there is no "id" field in that table. > The name of th

[web2py] Re: Question About Streaming

2012-01-25 Thread Web2Py Freak
ohh that is great Thank you Massimo .. Best Regards Hassan alnator

[web2py] Re: Question About Streaming

2012-01-25 Thread Massimo Di Pierro
There is nothing you need to do. web2py uses http streaming for all files. It also does partial content if requested by the client. So, for example if you have a flash player which links a web2py movie (via the download function or in the static folder) it will be streamed to it. On Jan 25, 8:25 

[web2py] Re: Question About Streaming

2012-01-25 Thread Web2Py Freak
how would i use this , can you show me a little example please ?

[web2py] DO OT USE GITHUB ISSUES

2012-01-25 Thread Massimo Di Pierro
We use googlecode issues. The Github issues page is open by mistake and I will close it until there is consent among development that we should move issues on github. So far googlecode issues have served us well. If you opened an issue on guthub and want it resolved, move it to googlecode. massim

[web2py] Re: menu.py loop

2012-01-25 Thread Web2Py Freak
it keep giving me en error in the response.menu failed to compile file because: SyntaxError at line 30 at char 7 invalid syntax (C:/web2py/applications/a3zif/models/menu.py, line 30) , this is my code : instruments = db().select(db.Instruments.ALL) myins = [] for ins in instruments: myins.appe

[web2py] Re: Problem with legacy tables

2012-01-25 Thread Anthony
I left the following comment with the issue: shop=SQLFORM.grid(db.gk_shop,fields=[db.gk_shop.id,db.gk_shop.nazwa_modulu],user_signature=False,deletable=False) Note, your refer to db.gk_shop.id, but there is no "id" field in that table. The name of the id field is actually db.gk_shop.id_modulo (t

[web2py] Re: Question About Streaming

2012-01-25 Thread Anthony
I believe web2py will stream any files downloaded through web2py (i.e., from static or via response.download or response.stream). Anthony On Wednesday, January 25, 2012 5:20:37 AM UTC-5, Web2Py Freak wrote: > > Dear ALL, > > I am building an online video training center , i really don't > unde

[web2py] Problem with legacy tables

2012-01-25 Thread brushek
Hello, Because I need to have legacy tables in one of my project, I would like to please You to see what could be wrong in my model/controller: http://code.google.com/p/web2py/issues/detail?id=613 Massimo reflects if it is bug or not. Could You help ? regards brushek

[web2py] Re: menu.py loop

2012-01-25 Thread Anthony
> > response.menu = [ > (T('Home'), False, URL('default','index'), []) > (T('Instruments'), False, URL('default','Instruments'), [myins])] You have put myins inside a list, but it is already a list. Instead: response.menu = [ (T('Home'), False, URL('default','index'), []) (

[web2py] Re: view txt,pdf etc

2012-01-25 Thread Anthony
On Wednesday, January 25, 2012 5:41:43 AM UTC-5, davidjensen wrote: > > trivial mistake. It works in the static folder and probably many other > non web2py system folders. library/static/book.pdf > Should work from any web2py application folder where you store uploaded files, though the "static"

Re: [web2py] Re: menu.py loop

2012-01-25 Thread Johann Spies
On 25 January 2012 12:04, Web2Py Freak wrote: > i Fixed a bug its now > > instruments = db().select(db.Instruments.ALL) > myins = [] > for ins in instruments: > myins.append((T(ins.Instrument_name), False, > URL('default','Instruments',args=ins.Instrument_name),) > response.menu = [ >(T('

[web2py] Re: view txt,pdf etc

2012-01-25 Thread davidjensen
trivial mistake. It works in the static folder and probably many other non web2py system folders. library/static/book.pdf Hetland's "Beginning Python ..." sticks to the basics and web2py documentation should not be skipping them. Also, a complete summary of all features should be included as is fo

[web2py] Question About Streaming

2012-01-25 Thread Web2Py Freak
Dear ALL, I am building an online video training center , i really don't understand what streaming is and why use it , and do i need to use it considering that my website is built for videos .. and How can i use streaming if i need to ? Best Regards

[web2py] Re: menu.py loop

2012-01-25 Thread Web2Py Freak
i Fixed a bug its now instruments = db().select(db.Instruments.ALL) myins = [] for ins in instruments: myins.append((T(ins.Instrument_name), False, URL('default','Instruments',args=ins.Instrument_name),) response.menu = [ (T('Home'), False, URL('default','index'), []) (T('Instruments')

[web2py] menu.py loop

2012-01-25 Thread Web2Py Freak
Dear All , i want to get some stuff from the database and add to the menu , like i have music instruments am trying to get the instruments from the database and add to the menu , but its not working : menu.py : instruments = db().select(db.Instruments.ALL) myins = [] for ins in instruments:

[web2py] How to access actual Rows object for SQLFORM.grid?

2012-01-25 Thread Bruno Rocha
Having a grid = SQLFORM.grid(somequery) I think usefull to access grid.actual_rows After a search, I want to calculate and display a subtotal for some value row, also I want to know how many records there are in grid. I can see in source that 'grid' is a @staticmethod so it cannot inject 'actu

Re: [web2py] addtoany problem

2012-01-25 Thread Bruno Rocha
You can try the LazyLoader http://www.itthinx.com/plugins/lazy-widget-loader/ -- Forwarded message -- From: Manuele Pesenti Date: Wed, Jan 25, 2012 at 7:27 AM Subject: [web2py] addtoany problem To: web2py-users hi! It seams that if the site www.addtoany.com is unreachable like

[web2py] addtoany problem

2012-01-25 Thread Manuele Pesenti
hi! It seams that if the site www.addtoany.com is unreachable like today web2py stops to load their interface at the menu level. It's enough to disable my network to turn my local app to work fine again. I think it could be a problem when you have a public application (I guess) with a default

Re: [web2py] High memory usage in webfaction

2012-01-25 Thread Vasile Ermicioi
hi, Currently it is running on apache. How do I make the switch to uwsgi and > disable apache? go to webfaction panel and do 2 things: - remove app that is running on top of apache - create a custom app listening on a port then connect via ssh to your webfaction account and do that [install

Re: [web2py] Re: Mixing/supporting CMS with Web2py

2012-01-25 Thread Bruno Rocha
For those who are looking for inspiration on how to develop a good traditional-cms with web2py, take a look in to http://www.fork-cms.com/before starting your code! -- Bruno Rocha [http://rochacbruno.com.br]