[web2py:22281] SQL Import

2009-05-21 Thread Elcimar
Hello. I am a total newbie on web2py. I am starting a project of a web application which controls Freeradius's authentication server (user database being MySQL). Freeradius ships with an SQL file to generate all tables it needs. What should I do? * Recreate all Freeradius table structures into db

[web2py:22476] Form elements

2009-05-23 Thread Elcimar
Sorry my laziness on searching a little more into this forum/ documentation/web. I think I understand the way web2py creates forms from model's tables. But I didn't figure out yet how to show only a few fields from a table... Or mix fields from various tables in only one form. Any advice? --~--~-

[web2py] Re: sqlform.grid search widget

2012-07-18 Thread Elcimar
Works like a charm, but the "Clear" button is working exactly like the "Search" one, without clearing 'search_text' before submit Is there another method to do that? Em segunda-feira, 16 de abril de 2012 23h32min49s UTC-3, Cliff Kachinske escreveu: > > Good one. > > You earned a browser bookmar

[web2py] storing e-mail messages into text fields

2012-07-18 Thread Elcimar
Hello I was able to retrieve messages as plain text from e-mails using poplib . This kind of data has tabs and a lot of \n, but when I store into text fields they are all lost and the text wraps around as it is a single line. What should I do to store

[web2py] Re: storing e-mail messages into text fields

2012-07-18 Thread Elcimar
ng to > display the content in HTML, note that HTML does not display line breaks > (unless you use the tag). If that's the issue, for some possible > solutions, see http://stackoverflow.com/a/10584182/440323. > > Anthony > > On Wednesday, July 18, 2012 8:32:19 PM UT

Re: [web2py] Re: sqlform.grid search widget

2012-07-20 Thread Elcimar
read >>> >>> id = 'search_text'), >>> >>> not id='searchText'), >>> >>> >>> Does anyone know if I can edit the first message in this topic so as to >>> correct it? >>> >>> Peter >>>

[web2py] Re: how to include profile photo from Janrain in auth_user?

2012-08-02 Thread Elcimar
A bit late but it was just yesterday that I tried to do it. Figured out how: 1. Edited web2py/gluon/contrib/login_methods/rpx_account.py added: *from gluon.globals import current** * 2. Added the following to the RPXAccount class just after *last_name = profile.get("name",dn).get("famil

[web2py] Re: send a tweet from web2py

2012-06-29 Thread Elcimar
Does this still works nowadays? Em quinta-feira, 7 de maio de 2009 17h01min07s UTC-3, weheh escreveu: > > awesome

[web2py] Does represent works with a simple sqlrow?

2011-09-13 Thread Elcimar
Hi folks, newbie question here. I have a table 'mensagens' with a field: SQLField("usuario", "integer", length=255, notnull=True, default=None, represent = lambda id: db.acessos[id].nick) Then, after adding some data to this table I try to view some records: registros = SQLTABLE(db().select(db.m

[web2py] Re: Does represent works with a simple sqlrow?

2011-09-14 Thread Elcimar
Thanks for the tip Anthony! Btw, I'm not using grid or powergid. On 13 set, 15:45, Anthony wrote: > On Tuesday, September 13, 2011 2:28:50 PM UTC-4, Roberto Perdomo wrote: > > > This small detail I think is affecting grid and powergrid not think it > > should be solved that way > > I agree. He d

[web2py] List all sessions

2011-02-17 Thread Elcimar
Is there a way to get and access all active application's sessions? I'd like to make a simple chat app using sessions.

Re: [web2py] Re: Minify (compress) response HTML

2013-07-16 Thread Elcimar
Hi there. Here I had to edit the module to exclude tags from minification, otherwise the javascript code I have in the bottom of layout.html doesn't work (!?). -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this

Re: [web2py] Re: Minify (compress) response HTML

2013-07-24 Thread Elcimar
Hmm... Go to listacaiu.com and view source code of the main page.. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For

[web2py] SQLFORM.grid pagination problem

2014-04-30 Thread Elcimar
I have a website that uses SQLFORM.grid. Some (random) times the grid starts in page # >1000, >100, etc (random pages) instead of page #1. I first thought it was because I was using two grids in the same page, but now that I am rendering them through LOAD, I don't know what is happening. It ha

[web2py] Re: SQLFORM.grid pagination problem

2014-05-03 Thread Elcimar
Well... - It happens when the app is in production. - It magically happens SOME(random)TIMES simply by opening the page and hitting F5. - It doesn't happen when I'm testing it in my development virtualbox vm. - Nope, I'm not using reserved keywords, I prefer using im my native language. I sus

[web2py] Re: SQLFORM.grid pagination problem

2014-05-04 Thread Elcimar
I will keep testing it for sure. I also was wondering if a wrong implementation of cache would cause this. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) -

[web2py] Re: SQLFORM.grid pagination problem

2014-05-05 Thread Elcimar
lementation of cache" ? > > On Sunday, May 4, 2014 2:14:40 PM UTC+2, Elcimar wrote: >> >> I will keep testing it for sure. >> I also was wondering if a wrong implementation of cache would cause this. >> >> > -- Resources: - http://web2py.com - htt

[web2py] A simple bgp looking glass.

2014-08-09 Thread Elcimar
Hi. I created a small bgp looking glass here at work so our partners/customers can get information of the status of our network. http://lg.startnetdigital.com.br/ Feedback apreciated =) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] Unique Fields

2010-04-28 Thread Elcimar L. Santos
ds are not required, they can be None, but login and mac1 are required. I also wanted to make sure that no mac fields are inserted twice, even for different logins, so I used unique=True on all fields, but they can't be None anymore that way. What should I do? Atenciosamente, Elcimar Leandro - http://twitter.com/simakwm http://elcimar.blogspot.com Portal Net Fácil - http://www.nfacil.com.br

Re: [web2py] Unique Fields

2010-04-28 Thread Elcimar L. Santos
Entendi. Deveria fazer uma tabela somente para macs e outra para os logins e relacionar uma com a outra. Show de bola. Atenciosamente, Elcimar Leandro - http://twitter.com/simakwm http://elcimar.blogspot.com Portal Net Fácil - http://www.nfacil.com.br 2010/4/28 Álvaro Justen [Turicas] >

[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&

[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:23290] Re: SQLFORM rendering

2009-06-04 Thread Elcimar L. Santos
Yeah :D Thanks! I didn't know I could do it there. I just found another way (massimo rocks!): http://mdp.cti.depaul.edu/examples/static/epydoc/gluon.sqlhtml.SQLFORM-class.html Elcimar Leandro 2009/6/4 HansD : > > Ah... my famous Brazil counterparty :-) I'm from NL. > >

[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 po

[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

[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: > >> &g

[web2py:22298] Re: SQL Import

2009-05-21 Thread Elcimar L. Santos
e", "string", length = 64, notnull = True), SQLField("value", "string", length = 253, notnull = True), migrate = False) My luck Freeradius's schema has the "id" field you mentioned. Now I can figure out the rest. What was I afraid of :D Aten

[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 ema

[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&

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/sess

Re: [web2py] Re: List all sessions

2011-02-17 Thread Elcimar L. Santos
#x27;m having troubles to access. It has even a table header as its first item. To make myself clear, I'd like to print the client ip address, for example, in the view. Like: {{ =todas[1]["client_ip"] }}, but I get an error. In web2py terminal print todas[1]["client_ip"] works

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
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