[web2py:31985] Re: app engine data model best practices

2009-09-30 Thread AndrewLoot
wow this is all great stuff, it sounds like my concerns are overblown. Honestly after reviewing all the features of the GAE api i was deeply concerned about any DAL that supports SQL being of use on GAE but your insistence and knowledge of the subject reassures me that I'm not barking up the wrong

[web2py:31984] Re: Using error_message in the Controller for field data validation

2009-09-30 Thread ed
Hi Massimo, I hope this helps. Example 1 : form = SQLFORM.factory( Field('fromyr', requires=[IS_INT_IN_RANGE (1950,2000,error_message='Allowed Years, 1950-2000')],label='* Enrolled - From Year'), Field('toyr', requires=[IS_INT_IN_RANGE (1950,2000,error_message='Allowed Years, 1950-2000')],l

[web2py:31983] Download a file like object.

2009-09-30 Thread encompass
I am creating a file (pdf actually) that is being generating in memory. I could save it and then grab it, but we all know there has to be a better way. How do I make a file like object downloadable with web2py? Regards, Jason --~--~-~--~~~---~--~~ You received this

[web2py:31982] Re: app engine data model best practices

2009-09-30 Thread dlypka
I believe there is no overhead issue. I have been able to move all of the SQL tables into a module so that they persist across requests. And in the module, I wrapped the table creates in an if() statement which checks to see if the table already exists. I changed db.py to just have wrapper methods

[web2py:31981] Re: Using error_message in the Controller for field data validation

2009-09-30 Thread mdipierro
sorry. I do not understand. Can you provide an example? On Sep 30, 10:44 pm, ed wrote: > Sorry Massimo for mixing up my question. What I mean is, when there is > an error in validating a variable and response.flash is used it > returns an empty form with the error message. If possible I would li

[web2py:31980] Re: error when the text is long

2009-09-30 Thread mdipierro
OK. check trunk. On Sep 30, 10:33 pm, mdipierro wrote: > None I can think of. Let me look into this. > > On Sep 30, 10:16 pm, Jose wrote: > > > On 30 sep, 21:28, mdipierro wrote: > > > > db.table.myField.requires=IS_LENGTH(20) > > > to have it validated. > > > if I have the following: > > > db

[web2py:31979] Re: Using error_message in the Controller for field data validation

2009-09-30 Thread ed
Sorry Massimo for mixing up my question. What I mean is, when there is an error in validating a variable and response.flash is used it returns an empty form with the error message. If possible I would like to return the error message with a filled form like in validators IS_IN_DB, etc.. Thanks aga

[web2py:31978] Re: error when the text is long

2009-09-30 Thread mdipierro
None I can think of. Let me look into this. On Sep 30, 10:16 pm, Jose wrote: > On 30 sep, 21:28, mdipierro wrote: > > > db.table.myField.requires=IS_LENGTH(20) > > to have it validated. > > if I have the following: > > db.define_table('mytable', >     Field('myfield', length=10), > ) > > and I

[web2py:31977] Re: error when the text is long

2009-09-30 Thread Jose
On 30 sep, 21:28, mdipierro wrote: > db.table.myField.requires=IS_LENGTH(20) > to have it validated. > if I have the following: db.define_table('mytable', Field('myfield', length=10), ) and I introduce a string of length greater than 10 the validator is enabled. But on the following: d

[web2py:31976] Re: determine if session is new

2009-09-30 Thread mr.freeze
Great. Do you think this is worth creating a Session.is_new function from? On Sep 30, 9:40 pm, mdipierro wrote: > correction. Try this instead: > > response.cookies.get(response.session_id_name,None) != > response.session_id > > is True if the session is new, False otherwise > > On Sep 30, 9:37

[web2py:31975] Re: determine if session is new

2009-09-30 Thread mdipierro
correction. Try this instead: response.cookies.get(response.session_id_name,None) != response.session_id is True if the session is new, False otherwise On Sep 30, 9:37 pm, mdipierro wrote: > No but you can use: > > request.cookies.has_key(response.session_id_name) > > On Sep 30, 8:47 pm, "mr.f

[web2py:31974] Re: determine if session is new

2009-09-30 Thread mdipierro
No but you can use: request.cookies.has_key(response.session_id_name) On Sep 30, 8:47 pm, "mr.freeze" wrote: > Asp.net and java have convenience functions for this.  Does web2py? I > can't find it. > > Thanks! > Nathan --~--~-~--~~~---~--~~ You received this mess

[web2py:31973] determine if session is new

2009-09-30 Thread mr.freeze
Asp.net and java have convenience functions for this. Does web2py? I can't find it. Thanks! Nathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@go

[web2py:31972] Re: video on wiki in 3 minutes

2009-09-30 Thread mdipierro
http://www.web2py.com/appliances/default/show/55 On Sep 30, 7:27 pm, mdipierro wrote: > I will post it asap. > > On Sep 30, 5:42 pm, Tim Michelsen wrote: > > > Hi, > > please see my comment here:http://vimeo.com/6782736 > > > Please create a page (sub-pag of documentation on main web2py) and po

[web2py:31971] Re: error when the text is long

2009-09-30 Thread mdipierro
db.table.myField.requires=IS_LENGTH(20) to have it validated. On Sep 30, 7:11 pm, Jose wrote: > Hi, > > I have a field such as: Field ( 'myField', length = 20). > > Hopefully, when someone completes the form, whether to enter text when > you save the framework truncated after 20 characters and n

[web2py:31970] Re: video on wiki in 3 minutes

2009-09-30 Thread mdipierro
I will post it asap. On Sep 30, 5:42 pm, Tim Michelsen wrote: > Hi, > please see my comment here:http://vimeo.com/6782736 > > Please create a page (sub-pag of documentation on main web2py) and post > all appliances that you use in the videos. > This could help learning along these videos a lot.

[web2py:31969] Re: app engine data model best practices

2009-09-30 Thread Robin B
> One entity group per web2py object, lack of list property support, > etc. dooms the current implementation to "small" web sites. If db.py > has no tables, will the "Web2py also re-evaluates your model > definition" overhead vanish? Yes, and to be practical, there is not much overhead. I was t

[web2py:31968] error when the text is long

2009-09-30 Thread Jose
Hi, I have a field such as: Field ( 'myField', length = 20). Hopefully, when someone completes the form, whether to enter text when you save the framework truncated after 20 characters and not a failure. It's a bug? Jose --~--~-~--~~~---~--~~ You received this m

[web2py:31967] Re: app engine data model best practices

2009-09-30 Thread Richard
> to this point i don't think there are many people sweating bullets over the > portability of their app engine apps I'm not sweating over it, but this is still important for me because my client may later want their GAE app migrated to a personal server. Also I don't want to be locked into GAE

[web2py:31966] Re: Multiple file upload

2009-09-30 Thread MikeEllis
I've also got a need to support uploading multiple files (perhaps hundreds at a time) and arranging for each of them to result in a new database record. What's the recommended way to do this? Thanks, Mike On Sep 13, 11:35 am, ab wrote: > This will require changes in this jquery plugin. > > Prob

[web2py:31965] Re: app engine data model best practices

2009-09-30 Thread AndrewLoot
Developers in the two different paradigms SQL vs GAE have different concerns. I have no knowledge of all the things that the web2py DAL does but it seems to me it has a few purposes that are great in the world of SQL databses but either moot or a hinderence in terms of App Engine. they are : 1:

[web2py:31964] Re: MSSQL connection string port and driver workaround

2009-09-30 Thread Dmitri Zagidulin
Sure, will do! On Wed, Sep 30, 2009 at 5:51 PM, mdipierro wrote: > > Yes. If you send me a patch to do this I will take it. > Thank you for reporting the issue. > > On Sep 30, 2:38 pm, Dmitri Zagidulin wrote: >> I have a web2py app (running on Ubuntu Linux) that has to connect to a >> MS SQL Se

[web2py:31963] Re: video on wiki in 3 minutes

2009-09-30 Thread Tim Michelsen
Hi, please see my comment here: http://vimeo.com/6782736 Please create a page (sub-pag of documentation on main web2py) and post all appliances that you use in the videos. This could help learning along these videos a lot. Thanks, Timmie --~--~-~--~~~---~--~~ Y

[web2py:31962] Re: Multiple fields in a constraint

2009-09-30 Thread mdipierro
This is ok but you should change one thing: if rows: form.errors = "Ja existe um preco com essa categoria de cliente e este produto !" should be if rows: form.errors.produto = "Ja existe um preco com essa categoria de cliente e este produto !" fo

[web2py:31961] Re: Multiple fields in a constraint

2009-09-30 Thread ProfessionalIT
Friends, I don't know if it's the best way, but this solved my problem: In controller: def create_tabela_preco(): form = crud.create(db.pampa_tabelapreco, next=URL(r = request,f = 'tabelas_preco'), onvalidation=valida_tabela_preco, message=T("Record Created !")) return dict(f

[web2py:31960] Re: java to web2py

2009-09-30 Thread Yarko Tymciurak
And I think this has more to do with "concept" of what constitutes a layer than anything else; If you think about network boundaries, then the three layers can be referred to as: - presentation; - business logic; - persistence layer; So - with web apps / thin client (ignoring Flex as a rich clie

[web2py:31959] Re: java to web2py

2009-09-30 Thread mdipierro
I used google translate and I am not sure I understand everything. Normally you have the 3 layers: mode+view+controller but they do not have to map 1-1-1. You can have 10-1-1, 1-10-10,1-10-1 etc. For exanple you can have one controller action display results from different tables depending on a

[web2py:31958] Re: app engine data model best practices

2009-09-30 Thread notcourage
One entity group per web2py object, lack of list property support, etc. dooms the current implementation to "small" web sites. If db.py has no tables, will the "Web2py also re-evaluates your model definition" overhead vanish? --~--~-~--~~~---~--~~ You received this

[web2py:31956] Re: MSSQL connection string port and driver workaround

2009-09-30 Thread mdipierro
Yes. If you send me a patch to do this I will take it. Thank you for reporting the issue. On Sep 30, 2:38 pm, Dmitri Zagidulin wrote: > I have a web2py app (running on Ubuntu Linux) that has to connect to a > MS SQL Server. > I installed pyodbc, and the FreeTDS ODBC driver. > I defined a driver

[web2py:31957] Re: Functions decorated with auth.requires_login seem to lose vars

2009-09-30 Thread mdipierro
Sorry, I did not mean to say I do not believe you. I meant to say that either I do not understand the question or something else is going on in your code. I just did the following test: a new app def test1: return repr(dict(request.vars)) @auth.requires_login() def test2: return repr(dict(requ

[web2py:31955] Re: FORM example with populating reference fields

2009-09-30 Thread MichaelT
Thanks very much - this exactly answers my question. On Sep 30, 2:49 pm, Jose wrote: > On 30 sep, 17:41, MichaelT wrote: > > > > > Hi, > > > ** I think I made a mistake and first created a topic instead of a > > post. Rookie mistake, Sorry for dupe. *** > > > I'm trying to understand what I hav

[web2py:31954] Re: FORM example with populating reference fields

2009-09-30 Thread MichaelT
I did - nothing shows what I am looking for. On Sep 30, 1:46 pm, Yarko Tymciurak wrote: > For starters, have a look at the opening page of the FORMS AND VALIDATORS > section of the manual (P.181 onhttp://www.web2py.com/examples/default/docs) > > On Wed, Sep 30, 2009 at 12:34 PM, MichaelT wrote:

[web2py:31953] Re: Functions decorated with auth.requires_login seem to lose vars

2009-09-30 Thread Dmitri Zagidulin
Then how do I account for the fact that (while being logged in) if I remove the requires_login() decorator, I can access the vars inside the function, but if I put back the decorator, I cannot see the vars? And, similarly - if I don't have requires_login, args get loaded into the args dictionary,

[web2py:31952] Re: java to web2py

2009-09-30 Thread Sophie
No te preocupes yo hablo español (idioma natal seguro mi inglés también es malo XD), lo que me preocupa al hacer esto es no obedecer las 3 capas. Según lo que siempre he visto es que la vista le pasa datos al controlador y de ahi la pasas al modelo. Lo que he visto en web2py es que el controlador

[web2py:31951] Re: Functions decorated with auth.requires_login seem to lose vars

2009-09-30 Thread mdipierro
I am sure that is not the case. If you submit vars to a function that requires login and you are not login you are redirected to login (in this case vars are lost, args are not), but if you are logged in the function works normally and the vars are in request.vars. On Sep 30, 2:28 pm, Dmitri Zagi

[web2py:31949] MSSQL connection string port and driver workaround

2009-09-30 Thread Dmitri Zagidulin
I have a web2py app (running on Ubuntu Linux) that has to connect to a MS SQL Server. I installed pyodbc, and the FreeTDS ODBC driver. I defined a driver in odbcinst.ini, etc, etc. And could now connect from the command line, via isql, to the remote database. In web2py, the following connection s

[web2py:31950] Functions decorated with auth.requires_login seem to lose vars

2009-09-30 Thread Dmitri Zagidulin
It looks like functions that are decorated with auth.requires_login() are not receiving their request.vars dictionary from the url. For example, say I have an auth-protected function in a controller: @auth.requires_login() def index(): """ Login-protected index page """ response.

[web2py:31948] Re: admin throws a ticket from eclipse run where command line run does not

2009-09-30 Thread AndrewLoot
ahh i finally understand the difference between svn and git/mercurial now :-) I'll try it out On Sep 30, 2:24 pm, Yarko Tymciurak wrote: > On Wed, Sep 30, 2009 at 2:04 PM, AndrewLoot wrote: > > > > > ok can you explain that setup a bit more for me maybe im confused on > > it but i want to mainta

[web2py:31947] Re: Proposal for plugin system in web2py - RFC

2009-09-30 Thread mdipierro
BTW, this should work great with JPolite without need to modify existing jPolite code. Massimo On Sep 30, 2:12 pm, Massimo Di Pierro wrote: > Here is the code: > > web2py.app.a0.w2p > 89KViewDownload > > --~--~-~--~~~---~--~~ You received this message because yo

[web2py:31946] Re: admin throws a ticket from eclipse run where command line run does not

2009-09-30 Thread Yarko Tymciurak
On Wed, Sep 30, 2009 at 2:04 PM, AndrewLoot wrote: > > ok can you explain that setup a bit more for me maybe im confused on > it but i want to maintain my code in my own svn and pull in web2py but > maintain my own mods to web2py. what you have sounds like you're just > never committing to a repos

[web2py:31945] Re: Watch this Youtube video!

2009-09-30 Thread Pynthon
No problem, if I find more videos about web2py that are interesting enough to show here I will post them. Regards, Pynthon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group,

[web2py:31944] Re: app engine data model best practices

2009-09-30 Thread Robin B
Bytecode caching helps, but the GAE Model (_tableobj) is reconstructed on every request for every table. The GAE Model __metaclass__ works by scanning the Model for properties, and these scans happen on every request. GAE Model was designed to be scanned once, and then module cached, and reused

[web2py:31943] Re: Watch this Youtube video!

2009-09-30 Thread mdipierro
You did not. You have nothing to apologize for. It is good you mentioned that video to us. On Sep 30, 2:15 pm, Pynthon wrote: > You mean the video? No, I did not create it. I'm just someone who is > looking at the web2py mailing list sometimes because I can't choose > beside web2py and ASP.NET b

[web2py:31942] Re: Watch this Youtube video!

2009-09-30 Thread Pynthon
You mean the video? No, I did not create it. I'm just someone who is looking at the web2py mailing list sometimes because I can't choose beside web2py and ASP.NET but that is another story. A few days ago I started with creating a Dutch web2py tutorial but when I see some examples of the new book

[web2py:31938] Re: admin throws a ticket from eclipse run where command line run does not

2009-09-30 Thread AndrewLoot
ok can you explain that setup a bit more for me maybe im confused on it but i want to maintain my code in my own svn and pull in web2py but maintain my own mods to web2py. what you have sounds like you're just never committing to a repository. On Sep 30, 12:40 pm, "mr.freeze" wrote: > I use Subc

[web2py:31939] Re: admin throws a ticket from eclipse run where command line run does not

2009-09-30 Thread AndrewLoot
fact of the matter is tho that the app does run properly from command line which would imply there is nothing wrong with the files or my build process. I guess ill just live with manually running form the command line if i want to access the admin section which i dont' really use that much anyway.

[web2py:31937] Re: Multiple fields in a constraint

2009-09-30 Thread ProfessionalIT
> The easiest way is: > > db.table.produto_id.requires=IS_NOT_IN_DB(db > (db.table.categoria_id==request.vars.categoria_id),'table.produto_id') My table: db.define_table('pampa_tabelapreco', Field('categoria',db.pampa_categoriacliente), Field('produto',db.pampa_produto),

[web2py:31936] Re: auth allow same user at the same time with different pc with different ip

2009-09-30 Thread mdipierro
You need to add two field to db.auth_user Field ('last_login','datetime',default=request.now,writable=False,readable=False) Field ('last_ip',default=request.env.remote_addr,writable=False,readable=False) that stores the time of last login, update it at every request in model if auth.user and re

[web2py:31935] Re: Retrieve password function disabled

2009-09-30 Thread Kenneth Lundström
Those settings are correct, I can send mail from my application, but when I try to go to page /init/default/user/retrieve_password I get the flash message Function disabled. Kenneth On Wed, Sep 30, 2009 at 4:35 PM, mdipierro wrote: > > you have to configure your email smtp server > > mail=Mai

[web2py:31934] auth allow same user at the same time with different pc with different ip

2009-09-30 Thread drayco
I have many users with differents roles. Those users gave their passwords and username to others. I use auth and it allows to the people login in to the application with the same user at the same time with different pc with different ip. And I don't want that happen. Please, Can anybody help me?

[web2py:31933] Re: FORM example with populating reference fields

2009-09-30 Thread Jose
On 30 sep, 17:41, MichaelT wrote: > Hi, > > ** I think I made a mistake and first created a topic instead of a > post. Rookie mistake, Sorry for dupe. *** > > I'm trying to understand what I have to do and what can be done > automatically with FORM (not SQLFORM). > > I want to create a form tha

[web2py:31929] Re: app engine data model best practices

2009-09-30 Thread Robin B
> so i guess the next question is, do i have anything to worry about > when using web2py on app engine per data model efficiency? I am not sure what you are asking exactly. If you use several tables and references, without list properties and batch get, you would see the N+1 query problem de-re

[web2py:31932] Re: Multiple fields in a constraint

2009-09-30 Thread mr.freeze
Just to verify, this is enforced at the application level and is not a true composite primary key at the database level, correct? On Sep 30, 1:04 pm, mdipierro wrote: > The easiest way is: > > db.table.produto_id.requires=IS_NOT_IN_DB(db > (db.table.categoria_id==request.vars.categoria_id),'tab

[web2py:31931] Re: app engine data model best practices

2009-09-30 Thread mdipierro
On Sep 30, 1:01 pm, Robin B wrote: > > so i guess the next question is, do i have anything to worry about > > when using web2py on app engine per data model efficiency? > > I am not sure what you are asking exactly. > > If you use several tables and references, without list properties and > batch

[web2py:31930] Re: Multiple fields in a constraint

2009-09-30 Thread mdipierro
The easiest way is: db.table.produto_id.requires=IS_NOT_IN_DB(db (db.table.categoria_id==request.vars.categoria_id),'table.produto_id') Massimo On Sep 30, 11:38 am, Leandro - ProfessionalIT wrote: > Hi, > > I have a table with this fields: > >id >categoria_cliente_id >produto_id

[web2py:31928] Re: FORM example with populating reference fields

2009-09-30 Thread Yarko Tymciurak
For starters, have a look at the opening page of the FORMS AND VALIDATORS section of the manual (P.181 on http://www.web2py.com/examples/default/docs) On Wed, Sep 30, 2009 at 12:34 PM, MichaelT wrote: > > Hi, > I'm trying to understand what I have to do and what can be done > automatically with

[web2py:31927] FORM example with populating reference fields

2009-09-30 Thread MichaelT
Hi, ** I think I made a mistake and first created a topic instead of a post. Rookie mistake, Sorry for dupe. *** I'm trying to understand what I have to do and what can be done automatically with FORM (not SQLFORM). I want to create a form that is the same functionally as SQLFORM, meaning the f

[web2py:31926] FORM example with populating reference fields

2009-09-30 Thread MichaelT
Hi, I'm trying to understand what I have to do and what can be done automatically with FORM (not SQLFORM). I want to create a form that is the same functionally as SQLFORM, meaning the fields from related tables are populated as drop down buttons, etc. But I don't want to use SQLFORM. Can FORM p

[web2py:31925] Re: admin throws a ticket from eclipse run where command line run does not

2009-09-30 Thread mr.freeze
I use Subclipse. If you modify a module, it won't get overwritten when updating. On Sep 30, 12:15 pm, AndrewLoot wrote: > but how do you keep the web2py code base up to date, o don't want ot > manually copy files over... what if the code-base losses some old > files then i have them laying arou

[web2py:31924] Re: admin throws a ticket from eclipse run where command line run does not

2009-09-30 Thread Yarko Tymciurak
if you use bzr, then "bzr merge" will do this for you; in svn, I think "svn merge" does the same. On Wed, Sep 30, 2009 at 12:15 PM, AndrewLoot wrote: > > but how do you keep the web2py code base up to date, o don't want ot > manually copy files over... what if the code-base losses some old > file

[web2py:31923] Re: java to web2py

2009-09-30 Thread Yarko Tymciurak
Sophie - It may help to think about the dataflow in web2py (you can follow the diagram on P. 6 of the manual found at http://www.web2py.com/examples/default/docs): [] A request comes into the server, and gets passed to web2py:main(); [] main validates the path/url, and then selects the applicat

[web2py:31922] Re: app engine data model best practices

2009-09-30 Thread AndrewLoot
so i guess the next question is, do i have anything to worry about when using web2py on app engine per data model efficiency? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this grou

[web2py:31921] Re: admin throws a ticket from eclipse run where command line run does not

2009-09-30 Thread AndrewLoot
but how do you keep the web2py code base up to date, o don't want ot manually copy files over... what if the code-base losses some old files then i have them laying around. Im thinking of another approach but a build process that combines separate projects of web2py and my code for web2py seems to

[web2py:31920] Re: Security advice

2009-09-30 Thread Thadeus Burgess
I actually use that implementation right now that Mr. Freeze suggests. Works great :) -Thadeus On Tue, Sep 29, 2009 at 10:16 PM, mr.freeze wrote: > > hmac with MD5 digest is the default but choosing a different one is > recommended as it has known weaknesses. > > On Sep 29, 9:05 pm, mengu

[web2py:31919] Re: java to web2py

2009-09-30 Thread ProfessionalIT
Sophie, I'm a Java programmer too, then I can help you !. First, In the file db.py you map your table, in this case the table that the class StoreBean map. In this class(StoreBean) you have the fields(properties) and the getters and setters to this fields. In Web2Py you don't

[web2py:31918] Re: admin throws a ticket from eclipse run where command line run does not

2009-09-30 Thread mr.freeze
I run Eclipse/PyDev with the svn trunk with no problems. Perhaps your build process is breaking it somehow? On Sep 30, 11:52 am, AndrewLoot wrote: > > I would check your debug configuration in Eclipse and make sure you > > are passing the same arguments as the command line. > > yes it is and I'

[web2py:31917] Re: admin throws a ticket from eclipse run where command line run does not

2009-09-30 Thread AndrewLoot
> I would check your debug configuration in Eclipse and make sure you > are passing the same arguments as the command line. yes it is and I've tried with no parameters and with -a '' -p The only difference i can imagine is that eclipse is using a different python environment that is not con

[web2py:31916] Multiple fields in a constraint

2009-09-30 Thread Leandro - ProfessionalIT
Hi, I have a table with this fields: id categoria_cliente_id produto_id preco Well, I need to implement a constraint where the fields categoria_cliente_id + produto_id are unique. for example: id - categoria_cliente_id - produto_id - preco 01 01

[web2py:31915] Re: java to web2py

2009-09-30 Thread mdipierro
II can help you translate this example but can you explain in words what id does? I am not 100% sure. > > public void processRequest(HttpServletRequest request, > HttpServletResponse response) throws IOException, > ServletException > { > String resource= ""

[web2py:31914] Re: Watch this Youtube video!

2009-09-30 Thread mdipierro
No shame. Did you make it? I think you are explaining something important. web2py is was originally designed to be a tool for teaching and I am happy you are using it this way. On Sep 30, 9:21 am, Pynthon Pynthon wrote: > Ah, sorry guys *shame*. My fault... Thanks for making this clear guys! > >

[web2py:31913] java to web2py

2009-09-30 Thread Sophie
Hi i am new is web2py, and im very confused. this is what i do in java but i dont know how to do this in web2py. For example, here i have my form, but in web2py the form is in the controller? and tha labels are in the model? And in web2py i dont do insert statement. someone could help me? how can

[web2py:31912] Re: app engine data model best practices

2009-09-30 Thread Robin B
> Massimo or anyone familiar with app engine, i am beginning development > with bot app engine and web2py and have reviewed much of the google io > videos especially those by bret slatkin regarding how to work with the > app engine datastore properly. I hope but am guessing it is probably > not th

[web2py:31911] Re: Logging module

2009-09-30 Thread Iceberg
For your information. There is a refined version later. (And that's why I suggest add it into scaffold welcome app, this way people can easily get a latest version.) The new version uses RotatingFileHandler so that you need not worry the log file grows up unlimitedly, and the log file can be view

[web2py:31910] Re: Watch this Youtube video!

2009-09-30 Thread Pynthon Pynthon
Ah, sorry guys *shame*. My fault... Thanks for making this clear guys! 2009/9/30 mdipierro > > Yes, this is a good video explaining a general concept. He is not > using web2py auth which does not have the vulnerability he engineered. > I posted a comment to the video explaining this. > > On Sep

[web2py:31909] Re: admin throws a ticket from eclipse run where command line run does not

2009-09-30 Thread mr.freeze
I would check your debug configuration in Eclipse and make sure you are passing the same arguments as the command line. On Sep 30, 2:27 am, AndrewLoot wrote: > i cant tell what the difference is between running web2py from my > eclipse run config in pydev but when i click the admin panel link i

[web2py:31908] Re: pay on-line

2009-09-30 Thread Karen Ivone Farroñay Rivero
I have a framework but it works on php there is a way to insert this code into web2py? Sophie 2009/9/30 Richard > > I've also been researching how to do this using Paypal. > > I first looked at these Python projects: > http://code.google.com/p/pypaypal/ > http://python.pastebin.com/f782d48d9 >

[web2py:31907] Re: Retrieve password function disabled

2009-09-30 Thread mdipierro
you have to configure your email smtp server mail=Mail() mail.server='host:port' mail.sender='' mail.login='username:password' auth.settings.mailer=mail otherwise it does not know how to email you. On Sep 30, 5:48 am, GhostRider wrote: > Hello list, > > just started using web2py and now I

[web2py:31905] Re: Watch this Youtube video!

2009-09-30 Thread mdipierro
Yes, this is a good video explaining a general concept. He is not using web2py auth which does not have the vulnerability he engineered. I posted a comment to the video explaining this. On Sep 30, 8:18 am, carlo wrote: > I think it is showing just known things: clear passwords over unsecure > ch

[web2py:31906] Retrieve password function disabled

2009-09-30 Thread GhostRider
Hello list, just started using web2py and now I hit the wall with the retrieve password function. How do I enable that function? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to thi

[web2py:31904] Re: Watch this Youtube video!

2009-09-30 Thread carlo
I think it is showing just known things: clear passwords over unsecure channels can be easily sniffed. Or did I miss something? carlo On 30 Set, 12:20, Pynthon wrote: > Hello everyone > > I am ill and I was lying in bed with my iPod Touch. However I searched > on Youtube for some stuff until I

[web2py:31903] Re: web2py jsonrpc

2009-09-30 Thread Sceva
I am thinking that either jsonrpclib or web2py has trouble with the echo method, but not sure how to trace it down... On Sep 28, 8:02 pm, Sceva wrote: > I am trying to test the jsonrpc service on the web2py server. > > I am using the simple jsonrpc client found athttp://lkcl.net/jsonrpclib.tgz,

[web2py:31902] Re: Logging module

2009-09-30 Thread Roar
Thanks! :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegro

[web2py:31901] Re: Logging module

2009-09-30 Thread Roar
Thanks! :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegr

[web2py:31900] Watch this Youtube video!

2009-09-30 Thread Pynthon
Hello everyone I am ill and I was lying in bed with my iPod Touch. However I searched on Youtube for some stuff until I saw this video: http://www.youtube.com/watch?v=5ZLmRMLo6HI That guys uses Web2py right? First I thought it was Massimo but Massimo only uploads videos with his real name. Does

[web2py:31899] Re: API for web2py projects

2009-09-30 Thread olivier
thanks for the answer, Massimo. for legacy reason, the password i have in the db are stored as apache passwords (...because those passwords are also used to authenticated user for different services using apache [svn, wiki, etc...]) i therefore developed a custom login method (added to auth.sett

[web2py:31898] admin throws a ticket from eclipse run where command line run does not

2009-09-30 Thread AndrewLoot
i cant tell what the difference is between running web2py from my eclipse run config in pydev but when i click the admin panel link i get a ticket (below), when i click the ticket link i get another ticket. Has anyone had this problem with thier eclipse/pydev setup? When i run from command line it