Re: [web2py] Re: List all sessions

2011-02-17 Thread Elcimar L. Santos
I did that before. as_list() seems to solve the problem. Atenciosamente, Elcimar Leandro Analista de Suporte, TI JG Telecom/Net Fácil 71 8842-9699, 71 9166-2678 http://twitter.com/simakwm 2011/2/17 Vasile Ermicioi > > In the web2py terminal I can read all session keys through 'todas' >> var

Re: [web2py] Re: List all sessions

2011-02-17 Thread Elcimar L. Santos
Nevermind! Figured it out. differently from seeing it as a list of dict in terminal, in the view I had to use todas.as_list() :) Atenciosamente, Elcimar Leandro Analista de Suporte, TI JG Telecom/Net Fácil 71 8842-9699, 71 9166-2678 http://twitter.com/simakwm 2011/2/17 Elcimar L. Santos

Re: [web2py] Re: List all sessions

2011-02-17 Thread Elcimar L. Santos
gt; Perhaps all files that do not meet the criteria should be considered > active? > > On Feb 17, 2:11 pm, "Elcimar L. Santos" > wrote: > > Ok, thanks. > > > > Now how would you list all current sessions for an app? > > > > Atenciosamente, >

Re: [web2py] Re: List all sessions

2011-02-17 Thread Elcimar L. Santos
Ok, thanks. Now how would you list all current sessions for an app? Atenciosamente, Elcimar Leandro Analista de Suporte, TI JG Telecom/Net Fácil 71 8842-9699, 71 9166-2678 http://twitter.com/simakwm 2011/2/17 Massimo Di Pierro > define "active" > > look at scripts/sessions2trash.py which d

Re: [web2py] Unique Fields

2010-04-28 Thread Elcimar L. Santos
On Wed, Apr 28, 2010 at 15:02, Elcimar L. Santos > wrote: > > Hi folks. > > > > I have a simple table of an sqlite db like this: > > > > dbOBJECT.define_table("Users", > > Field("login", "string", length=80, notnull=True, d

[web2py] Unique Fields

2010-04-28 Thread Elcimar L. Santos
Hi folks. I have a simple table of an sqlite db like this: dbOBJECT.define_table("Users", Field("login", "string", length=80, notnull=True, default=None, unique=True), Field("mac1", "string", length=17, notnull=True, default=None, unique=True), Field("mac2", "string", length=17, defau

[web2py:31604] Selecting data from existing MySQL database

2009-09-24 Thread Elcimar L. Santos
Due to some life problems I stopped studying web2py for a while. I am getting back to it trying to create a fast viewer for an existing MySQL database. Well, what I am asking is that right now is there a way to do this without changing anything on the source database? Atenciosamente, Elcimar Le

[web2py:23296] Re: SQL Import

2009-06-04 Thread Elcimar L. Santos
Hmm... I wonder if is there a way to display fields from two db in only one SQLFORM... Atenciosamente, Elcimar Leandro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this

[web2py:23290] Re: SQLFORM rendering

2009-06-04 Thread Elcimar L. Santos
You should be able to provide a label argurment to the SQLField, like > SQLFfield("endereco", 'string', 50, label="endereço") > > these labels are used within the SQLFORM > > > On 4 jun, 21:13, "Elcimar L. Santos" wrote: >> ...Because

[web2py:23287] Re: SQLFORM rendering

2009-06-04 Thread Elcimar L. Santos
Z_]table and field names. The solution pointed by David seems too complicated for ones who only needs to change field labels :P Atenciosamente, Elcimar Leandro 2009/6/4 HansD > > why are you asking? > > On 4 jun, 20:41, "Elcimar L. Santos" wrote: > > Where are you

[web2py:23285] Re: SQLFORM rendering

2009-06-04 Thread Elcimar L. Santos
Where are you from Hans? Atenciosamente, Elcimar Leandro 2009/6/4 Hans Donner > > Yep, forms the base for what I needed. > > made a small patch to extend it a bit, the patch includes some doc > updates as well. > > This allows for: > > {{extend 'layout.html'}} > Registration form > > {{lbl=f

[web2py:22767] Re: Form elements

2009-05-27 Thread Elcimar L. Santos
Wow, thanks! Atenciosamente, Elcimar Leandro - http://elcimar.blogspot.com Portal Net Fácil - http://www.nfacil.com.br 2009/5/23 Pystar > > You can try this: > * Model.py *** > db.define_table("Foo", > db.Field("foo1", "string", length=32, default=None

[web2py:22474] Re: SQL Import

2009-05-23 Thread Elcimar L. Santos
These are also great news. Atenciosamente, Elcimar Leandro - http://elcimar.blogspot.com Portal Net Fácil - http://www.nfacil.com.br 2009/5/22 dlypka > > I did email it last Monday. > I have just resent it. > > On May 22, 8:35 am, mdipierro wrote: > > Can you email the new auto to me? > > >

[web2py:22298] Re: SQL Import

2009-05-21 Thread Elcimar L. Santos
It worked! Not so hard as I thought. Just took some fields as example as you said (I think I am not going to use all of them anyway). I added this within my main model: rd = SQLDB('mysql://user:passw...@localhost/radius') rd.define_table("radcheck", SQLField("username", "string", length = 64,

[web2py:22288] Re: SQL Import

2009-05-21 Thread Elcimar L. Santos
I need to figure out some things, but indeed this is a start! Thanks for your reply =) Atenciosamente Elcimar Leandro - http://elcimar.blogspot.com Portal Net Fácil - http://www.nfacil.com.br 2009/5/21 Yarko Tymciurak > On Thu, May 21, 2009 at 8:43 AM, Elcimar wrote: > >> >> Hello. I am a