[web2py] Re: Storing the Original Filename in the official web2py book

2011-01-13 Thread cjrh
On Jan 12, 5:57 pm, carlo  wrote:
> if request.vars.image!=None ## always True
>
> should be
>
> if request.vars.image

I changed the book recently, on the basis of this issue on the web2py
Google Code site:

http://code.google.com/p/web2py/issues/detail?id=110&can=1&q=image

If you have further information, I would be glad to hear it.


[web2py] About bugreports

2011-01-13 Thread Kenneth Lundström

Hello everybody,

for the past month I have sent maybe 3-4 bugreports to this list, but so 
far only 1 of them have been answered. It feels a litte bit stupid to 
send those reports without getting any responce. Am I sending them to 
the wrong place or are they so simple that I should be able to solve 
them myself?


Maybe a bug?

Should the underlying database and web2pys database model files be in 
sync? In one applications I have a table defined to have 14 fields. But 
if I look at att the table on database level it has 15 fields?


A question. What is the correct way to remove a foreign key 
relationsship between two tables? If I in a model file define a field 
like Field('group', db.group, required=true) and then remove it I get a 
error telling that mysql could not remove the foreign key. So far I have 
deleted the whole database and deleted all files in /databases/ so 
web2py has created all tables again. It´s not a problem on my 
development system, but might become a problem on the production server.



Kenneth



[web2py] Re: Trunk hangs at startup

2011-01-13 Thread ron_m
It is only the welcome application that stalls loading the default index 
page, opening a different application works fine.

applications/welcome/controller/default function index() has this new debug 
code between def and return

m = 'You are successfully running web2py.'
import gluon.debug; 
gluon.debug.set_trace()
response.flash = T(m)
gluon.debug.stop_trace()

comment out the debug code and the welcome initial page loads

m = 'You are successfully running web2py.'
#import gluon.debug; 
#gluon.debug.set_trace()
response.flash = T(m)
#gluon.debug.stop_trace()

Ron



[web2py] Re: Trunk hangs at startup

2011-01-13 Thread ron_m
Additional info - to stop the python web2py process I had to use a kill -9 
pid. Once the welcome default controller code was changed then the next time 
the server stopped properly using the Tcl control Server->Quit menu item.


Re: [web2py] About bugreports

2011-01-13 Thread Vasile Ermicioi
db.define_table('table1', Field('field1'))

table1 will have 2 fields: field1 and id

if it is so then nothing strange, it is the way web2py's dal works
it always adds the field 'id' as primary key


Re: [web2py] About bugreports

2011-01-13 Thread Kenneth Lundström
But if you let the wizard create your tables you have the ID field in 
your models file. Like I have


db.define_table('t_payment_receiver',
Field('id','id', represent=lambda id:SPAN(id,' 
',A('view',_href=URL('payment_receiver_read',args=id,

Field('f_name', type='string', label=T('Name')),

Kenneth


On 13.1.2011 11:44, Vasile Ermicioi wrote:

db.define_table('table1', Field('field1'))

table1 will have 2 fields: field1 and id

if it is so then nothing strange, it is the way web2py's dal works
it always adds the field 'id' as primary key




[web2py] what will happen if mysql server close all connection every 5 minutes?

2011-01-13 Thread hywang
Connections may be lost during query, and DAL will not reconnect to
server , isn't it ?


thank you !


[web2py] query for an empty field

2011-01-13 Thread dederocks
How do you search for records where a field is empty? I can't find the
operator for this.


Re: [web2py] query for an empty field

2011-01-13 Thread Kenneth Lundström

== None
== ''

If I understood your question.


Kenneth


How do you search for records where a field is empty? I can't find the
operator for this.




[web2py] Re: query for an empty field

2011-01-13 Thread dederocks
Indeed! Thanks for filling my brain holes.

On 13 jan, 12:21, Kenneth Lundström 
wrote:
> == None
> == ''
>
> If I understood your question.
>
> Kenneth
>
> > How do you search for records where a field is empty? I can't find the
> > operator for this.
>
>


[web2py] Re: OT working with semaphores

2011-01-13 Thread cjrh
On Jan 13, 8:49 am, ron_m  wrote:
> Talk and free book by Prof Allen Downey on semaphores.

Cool, thx.


Re: [web2py] [OT](urvey) web2py web browser

2011-01-13 Thread Luis Díaz
Results for 13/01/2011

Chrome
1648%Firefox
1339%Explorer
13%Safari
13%Otros
13%opera
13%-
total   33100%


graphic:
https://spreadsheets.google.com/gform?key=0AmLSamhVd-XldEZVOU16eE80VWdPQ0lMVWlTWl82Y2c&hl=es&pli=1&gridId=0#chart



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

http://web2pyfacil.blogspot.com/
Facultad de 
Odontología


[web2py] Re: experts

2011-01-13 Thread debebe asefa
Massimo : what is needed is a sort of union with a leader, the leader
takes the project and determine the people to work on the project with
the cost.DA

On Jan 12, 5:57 pm, Massimo Di Pierro 
wrote:
> I agree. We created a google group for members. You should have
> received an invite. This discussions should move there and be
> privately. If you did not get an invite I will make sure you get
> another email.
>
> Massimo
>
> On Jan 12, 4:27 pm, Alexandre Andrade 
> wrote:
>
> > I think we have to emphasize the organizational aspect of
> > experts4solutions.
>
> > Otherwise, it will be just another portfolio website.
>
> > I understand it is begining, but I think it will not be relevant without a
> > organizational aspect.
>
> > Things to think:
>
> > 1. Who will receive demand, collect proposals and select the team/developer
> > 2. What garanties the organization will give to contractor about time and
> > costs
> > 3. What percentage of project will be retained to maintain the organization?
> > 4. How the organization will follow the project to make it a sucess
> > everytime?
>
> > Atenciosamente
>
> > Alexandre Andrade
> > Hipercenter.com Classificados Gratuitos e Inteligentes
>
> > 2011/1/12 Michael McGinnis 
>
> > > But the home page also says, "...or contact us and we will assemble
> > > for you a well-balanced and cost-effective international team to work
> > > on your project." Should we use the
> > >http://experts4solutions.com/e4s/default/contact
> > > to start that process, or should the home page be changed to de-
> > > emphasize that option?
>
> > > I could use help with the procedure anyway. I did use the contact page
> > > in an attempt to reach anexpert, but I don't know if I asked the
> > > right questions or gave the right information.
>
> > > Michael
>
> > > On Jan 12, 7:09 am, Kenneth Lundström 
> > > wrote:
> > > > Look at the list onwww.experts4solutions.com), select anexpertand
> > > > contact directly.
>
> > > > Kenneth
>
> > > > > To Massimo:
>
> > > > > what is the procedure to utilise the experts, please layout the
> > > > > procedure. I will have a task in shortly.Debebe
>
> > --
>
>


Re: [web2py] what will happen if mysql server close all connection every 5 minutes?

2011-01-13 Thread Vasile Ermicioi
if the connection is lost web2py tries to reconnect (5 times  )


[web2py] Re: SCRIPT tag

2011-01-13 Thread Francisco Costa
SCRIPT() works just like Massimo told...
I just realized that I was coppying the resulting div that contained
the javascript through an document.getElementById(id).innerHTML; to
another div, and the  tags arrent supported!
Thank you for your help, and sorry for the confusion I've made.

On Jan 12, 2:38 am, Jonathan Lundell  wrote:
> On Jan 11, 2011, at 5:04 PM, Martin.Mulone wrote:
>
> > Perhaps I miss something but did you render in a view with 
> > {{=XML(SCRIPT(alert("hi");))}} , and if you want to execute when the page 
> > is loaded you have to put the code in
>
> No need for XML(SCRIPT(xxx)), I don't think.
>
> Either XML
>
> ('