[web2py] customizating the headers of the result in crud.search

2010-11-02 Thread demetrio
Hi, first of all sorry if I made any mistake in english :) When i try to make a crud.search(), i can customize the names of the search form, but i cant do the same with the results' headers. def search(): db.licenses.id.represent = lambda id: \ DIV(A('edit',_href=URL(r=request, f='upd

[web2py] Re: customizating the headers of the result in crud.search

2010-11-02 Thread demetrio
Thanks a lot Massimo! On 2 nov, 14:58, mdipierro wrote: > Yes. In the view, instead of > > {{=rows}} > > do > > {{=SQLTABLE(rows,headers=)}} > > On Nov 2, 5:43 am, demetrio wrote: > > > Hi, first of all sorry if I made any mistake in english :) > &g

[web2py] How to make a dropbox in a create.form with IS_IN_DB and an join of multiple tables

2010-11-04 Thread demetrio
Hi everyone! I'm doing an app with fullcalendar (http://arshaw.com/fullcalendar/) and now i'm with all the events and calendar cruds. Its time to add some logic to the crud.create() of the events, an only let the user to add events in his/her calendars, not in ALL the calendars. I have this: db

[web2py] Re: customizating the headers of the result in crud.search

2010-11-05 Thread demetrio
I think I got excited too soon. I tried these method and it seems that it not works. This is the traceback: Traceback (most recent call last): File "/home/demetrio/devel/web2py_devel/trunk/devel/web2py/gluon/ restricted.py", line 188, in restricted exec ccode in environment F

[web2py] Re: How to make a dropbox in a create.form with IS_IN_DB and an join of multiple tables

2010-11-05 Thread demetrio
e_asset_type.id) & > > (db.file_asset_type.name=='Album Art')), >                                            db.file_asset.id, '% > (name)s')), > > (no that is not from your example, but a clipping from one of my > models) > > cfh > > On Nov 4, 1

[web2py] Re: How to make a dropbox in a create.form with IS_IN_DB and an join of multiple tables

2010-11-05 Thread demetrio
4 nov, 20:09, Richard Vézina wrote: > Hello! > > I am very interresting in your dev. > > I would like to help if possible. > > Richard > > On Thu, Nov 4, 2010 at 2:16 PM, demetrio wrote: > > Hi everyone! > > > I'm doing an app with fullcalendar (http:

[web2py] Re: customizating the headers of the result in crud.search

2010-11-05 Thread demetrio
It seems that it's been a long day... {{if not rows:}} No matches found {{else:}} {{=SQLTABLE(rows,headers={"field.id":"custom name id", "field.name":"custom name"})}} {{pass}} more simple... impossible... Sorry for wasting your time :( On 5

[web2py] Using CAS and @auth.requires_login() decorator

2010-11-08 Thread demetrio
Hi, i'm trying to use CAS in my project, I can login and logout etc... but if I use any decorator like @auth.requires_login() it shows the web2py default login form. There is any way to use the auth decorators with cas? I've search in this group messages but i didn't find something useful for my

[web2py] Creating debug.html

2010-11-12 Thread demetrio
Hi, I've realized that it might be helpful, to include a template called "debug.html" with the same code found in "generic.html." but without the {{extend}} statement. I am using in my development and saves me some time to write several "BEAUTIFY" calls. When I want to be in "development mode", I

[web2py] How to make a modal+ajax form "manually"?

2010-11-13 Thread demetrio
Hi everyone, i'm doing a desktop like iGoogle, with boxes containing information from different sources (it can be the same application, or other apps). So I need send my own forms (like "available_boxes", "modify content preferences" and so) I saw that the modal plugin is old and now is located

[web2py] Re: web2py 1.89.1 is OUT

2010-11-13 Thread demetrio
I had the same problem, that code works fine. Thx dspiteself On 12 nov, 22:23, dspiteself wrote: > there was a problem loading my static files in the designer > > I would push it but our project uses git here is a patch. > /*** > fix web2py bug

[web2py] web2py converts the data to thml chars from controller to view

2010-11-15 Thread demetrio
Hi everyone! When I try to send html code to a view web2py automatically converts it to html characters (i.e.: the character "<" is converted to "<") There is any way to make the unescape the data? Thanks in advance. demetrio

[web2py] Problem with id.represent since 1.89.4 and newer

2010-11-22 Thread demetrio
Hi, I have a problem with the represent functionality. In version 1.89.1 it was working fine, but then i updated to 1.89.4 and now to 1.89.5 (I don't know if it happens on .2 and .3), and it doesn't works. Moreover, the fields with the "reference", now show the id of the table instead the format t

[web2py] Create table without id field

2010-12-13 Thread demetrio
Hi everyone, i've searched if there is any way to create a table without an id field. I've tryed with: param "primarykey = None" but this doesn't works. There is any way to do it? Thanks

[web2py] Using web2py+mod_wsgi for SVN/DAV Auth and Authz

2012-06-01 Thread demetrio
gging #CustomLog logs/svn_logfile "%t %u %{SVN-ACTION}e" env=SVN-ACTION # Enable Subversion DAV svn # Directory containing all repository for this path SVNParentPath /home/demetrio/www/svn_test # Enable repository listing when browing the Location root SVNListParentPath On

[web2py] Standalone DAL leaves mysql connections opened

2012-06-22 Thread demetrio
Hi everyone, I have connected WebDAV and SVN auth with a wsgi script. I needed to use a standalone DAL. When you do a dav petition with the navigator it makes a lot of petitions. Well, the thing is that always there is a connection opened (i can see them with PhpMyAdmin) if self.db: self

[web2py] Re: track_changes bug or feature?

2013-04-02 Thread demetrio
A little bump on the topic. Somebody knows something about this? greetings, Daniel. El lunes, 25 de marzo de 2013 15:55:19 UTC+1, demetrio escribió: > > Hi everyone, > > I have notice an strange behaviour of the track_changes feature (working > on web2py 2.3.2 and python 2.7.3

[web2py] Re: Automatic login if username contains @ : Is this normal ?

2012-11-22 Thread demetrio
I have the same issue using web2py 1.99.7. I'm trying to connecto to an OpenDS LDAP, and if I use any non-existing user with "@" enters automatically. Is this resolved in a newer release? If I can send some debug info just tell me. El jueves, 8 de noviembre de 2012 16:26:57 UTC+1, Massimo Di P

[web2py] Re: Automatic login if username contains @ : Is this normal ?

2012-11-23 Thread demetrio
python ldap script so we can submit a bug report without web2py. > > Massimo > > > > > On Thursday, 22 November 2012 11:26:58 UTC-6, demetrio wrote: >> >> I have the same issue using web2py 1.99.7. I'm trying to connecto to an >> OpenDS LDAP, and if I use any

[web2py] Problem uploading files.

2011-09-19 Thread demetrio
Hi, i'm having the next traceback when I try to upload a file in the production server: Traceback (most recent call last): File "/srv/web2py/gluon/main.py", line 442, in wsgibase parse_get_post_vars(request, environ) File "/srv/web2py/gluon/main.py", line 276, in parse_get_post_vars re

[web2py] help with complex model creation

2011-11-08 Thread demetrio
Hi everyone, i'm starting a new project with web2py, and now i'm defining the model of the app and i have some questions. the "classical" and simplified model (there are lots of tables but the questions are about those) is something like: Table 'companies' - id_company - name - Tabl

[web2py] New web2py app: Airea.me

2011-05-27 Thread demetrio
Hi everyone, i'm very proud to announce "Airea.me" (in english it's something like "aerate me"). This application was made into the challenge "abredatos". A competition held in Spain, based on the creation of an application within 48 hours using open data. Our team, decided to use web2py, jQuery

[web2py] recursive tree views

2011-05-30 Thread demetrio
Hi everyone, I have a question about the views and their posibility to create "tree views" recursively. I want something like this in a view: {{for item in items:}} here goes the main item data. {{if item.childs:}} HERE GOES THE SAME STRUCTURE. {{pass}} {

[web2py] Missing authorization header in 1.97.1 under Apache

2011-07-05 Thread demetrio
Hi, we have a very strange behaviour. We have 2 apps: CAS (the one from the free appliances), modified in order to receive 2 types more of authorization. DevelApp this application sends a REST call to CAS to create a user. This works under web2py 1.94.6 in both rocket and apache servers, include

[web2py] Simultaneous multi-language system.

2011-07-13 Thread demetrio
Hi everyone, i don't know if "Simultaneous multi-language system" is the correct way to say what i need... i'll explain myself. I'm developing an application that by request of our customer, needs to have 2 languages at the same time. For example, if this app were in spanish and english, in the na

[web2py] Re: apologies

2011-07-20 Thread demetrio
Hi Massimo, i sent a mail a few days ago asking about some way to provide "simultaneous multi-language" support to our application. If you (or somebody) could give some suggestion would be nice. http://groups.google.com/group/web2py/browse_thread/thread/d6525c6623aad50c thanks in advance On 20 j

[web2py] time to contribute with a big app: openMyWork

2011-08-01 Thread demetrio
Hi everyone! I'm very proud to announce the project openMyWork based on the Web2py framework. openMyWork has been created for the Basque Government in Spain, and it's gonna be the Basque Government's center of future liberations of open source applications. The source code available is a beta an