Re: [web2py] Re: Upload error field *_newfilename does not belong to the table

2012-08-07 Thread paolo.vall...@gmail.com
Hi Massimo, With the last trunk is now fixed. thank you! For what concerns the backward compatibility I haven't used this field either. Regards, paolo 2012/8/7 Massimo Di Pierro : > I think this is fixed in trunk, although fixing this may be a backward > compatibility issues. > > When web2py uploa

Re: [web2py] Re: Lazy_tables with virtual fields

2012-08-30 Thread paolo.vall...@gmail.com
Hi Massimo, actually I do not know, it seems to be a very odd error; I've just restarted web2py and the problem has seemed gone but unfortunately, after a while it came back in a totally different fashion: Traceback (most recent call last): File "/home/paolo/Dropbox/git/web2py/gluon/restricted.p

Re: [web2py] Re: Lazy_tables with virtual fields

2012-08-30 Thread paolo.vall...@gmail.com
Hi Bruno, a simple db with sqlite without modules db = DAL('sqlite://storage.sqlite', lazy_tables=True ) sorry, but I've just discovered that the same problem is happened even with lazy_tables=False Paolo 2012/8/30 Bruno Rocha : > How are you defining the db connection? are you using models or m

Re: [web2py] Re: Lazy_tables with virtual fields

2012-08-30 Thread paolo.vall...@gmail.com
Hi Massimo, no, I do not have multiple models, I have defined the string connection only once in db.py, that's all. I have a few try...except but in other places, I do not thing they are connected. I will try to make a simple app ables to reproduce the problem as soon as possible. Paolo 2012/8/30

Re: [web2py] Re: Lazy_tables with virtual fields

2012-08-31 Thread paolo.vall...@gmail.com
( cache=(cache.ram,3600) ) return dict(reviews=rows) The view: {{for review in reviews:}} {{=review.pos()}} {{pass}} On my side the first time works well, the second rises the error. Best, Paolo 2012/8/30 paolo.vall...@gmail.com : > Hi Massimo, > no, I do not have multiple

Re: [web2py] Re: Lazy_tables with virtual fields

2012-08-31 Thread paolo.vall...@gmail.com
Hi Massimo, the error is: Cannot operate on a closed database. ticket: Traceback (most recent call last): File "/home/paolo/Dropbox/git/pp/web2py/gluon/restricted.py", line 209, in restricted exec ccode in environment File "/home/paolo/Dropbox/git/pp/web2py/applications/test_vf/views/defa

Re: [web2py] Re: Lazy_tables with virtual fields

2012-09-01 Thread paolo.vall...@gmail.com
Hi Massimo, I've just tried both strategies you suggested but I got the same behavior; namely the first time it works, the second rises the error. Paolo 2012/9/1 Massimo Di Pierro : > I do not fully understand this. It mush have something to do with the > scoping of variables in python. > > Can y

Re: [web2py] Re: Lazy_tables with virtual fields

2012-09-01 Thread paolo.vall...@gmail.com
Hi Massimo, first of all thank you for spending time on it! The first test ends as the others, namely the first time it works, then it raises an error. The the second test works without any problem :-) To solve the issue, I will change the code to follow what you have suggested in the second test.

Re: [web2py] geodal

2013-01-08 Thread paolo.vall...@gmail.com
Done, http://code.google.com/p/web2py/issues/detail?id=1259&thanks=1259&ts=1357666735 Thanks Paolo 2013/1/8 Massimo Di Pierro > Please open a ticket so I will look into it asap. I would add the st_x/y > to all GIS adapters. > > > On Tuesday, January 8, 2013 9:36:57 AM UTC-6, Paolo valleri wrot

Re: [web2py] Re: Auth with migrate=False

2013-01-15 Thread paolo.vall...@gmail.com
Thanks for clarifying it. So that, to speed up web2py, we must use migrate_enabled=False instead of migrate=False at DAL definition. Otherwise for all the auth_* tables, web2py will access the disk to verify if the relative file in databases/hash_tablename.table exists and is updated, right? If wha

Re: [web2py] Re: Auth with migrate=False

2013-01-15 Thread paolo.vall...@gmail.com
One or an other is ok, they lead to the same thing! I am adding them to my project :) However, after I first test, i could see any difference, I will investigate more asap 2013/1/15 Niphlod > I'd rather specify also that auth.define_tables(migrate=False) is the way > to go to turn migrations of

Re: [web2py] Re: Auth with migrate=False

2013-01-15 Thread paolo.vall...@gmail.com
Hi Anthony, I agree with you. It would be nice to have such a on_define function, this will not only optimize the code but also makes the code more readable. I prefer the function rather than distributing in several controllers the code that forces the definition of Auth 2013/1/15 Anthony > On

Re: [web2py] Re: auth.wiki menu

2013-01-16 Thread paolo.vall...@gmail.com
Hi Alan, thank for the tip :-), it seems to work correctly. The only issue is that when I call the function 'wiki' I get two menu, one from the ad-hoc import, the other one from the common wiki. What shoud be nice is to explicitly tell auth.wiki when it has to populate the response.menu and when no

Re: [web2py] Re: auth.wiki menu

2013-01-16 Thread paolo.vall...@gmail.com
yep, this fix the problem but it is something ad-hoc, a general procedure would be better. 2013/1/16 Andrew W > I just tried something like this: > > if request.function != 'wiki': >response.menu += Wiki(auth).menu(controller="**default", function= > "wiki") > > > > On Wednesday, January 16

Re: [web2py] Re: problems with wiki create

2013-01-21 Thread paolo.vall...@gmail.com
Hi Alan, good catch, I don't know how wiki works but if it is only to add a field to the table and handle it during insert/update it is worth to do that. isn't it? When a user is editing a page he/she can choose from a dropdow list the render engine to use. Paolo 2013/1/21 Alan Etkin > ... In

Re: [web2py] Re: new setup-web2py-nginx-uwsgi-ubuntu.sh

2013-01-22 Thread paolo.vall...@gmail.com
Hi all, I've just discovered that the regex used to retrieve the static files doesn't work if I use languages abbreviation in urls. How can we fix this? 2012/12/28 Richard Vézina > Hello, > > I publish a new script that allow deployment of Redmine beside web2py. > > Here : > https://groups.goo

Re: [web2py] Re: new setup-web2py-nginx-uwsgi-ubuntu.sh

2013-01-22 Thread paolo.vall...@gmail.com
Hi Massimo, for example, if I visit this traffic.integreen-life.bz.it/default/wiki/about (default is the controller and wiki is the function) it works while traffic.integreen-life.bz.it/it/default/wiki/about the application works very well but the static links do not. Paolo 2013/1/22 Massimo Di

Re: [web2py] Re: new setup-web2py-nginx-uwsgi-ubuntu.sh

2013-01-22 Thread paolo.vall...@gmail.com
Hi Niphlod, once I discovered that making a symbolic link for each language in the app directory pointing to the app directory worked well. Namely something like that app_dir/it ---> app_dir . However it would be better to find something cleaner but for that I have to look at nginx but right now I

Re: [web2py] Re: new setup-web2py-nginx-uwsgi-ubuntu.sh

2013-01-23 Thread paolo.vall...@gmail.com
Just tested, it works, I've already upgraded the production server too :-P I would suggest to add it (maybe as a comment) to the script. Thanks, Paolo 2013/1/22 Niphlod > maybe I have a fix . > Can you please test it ? > assuming an example of routes.py like > > myapp = dict(languages=['en', 'i

Re: [web2py] Re: new setup-web2py-nginx-uwsgi-ubuntu.sh

2013-01-23 Thread paolo.vall...@gmail.com
In the meanwhile I discovered that if you upload a file greater than 1M, I tried with a 1.5M, you will get a 413 error. In order to avoid this error for file not so big, I suggest you to add the directive *client_max_body_size *and to set it at something more 'common' for me few MB is already ok. s

Re: [web2py] Re: new setup-web2py-nginx-uwsgi-ubuntu.sh

2013-01-23 Thread paolo.vall...@gmail.com
py" one > Anyway, did you put this setting inside the file > /etc/nginx/sites-available/web2py and it just works ok ? > > > 2013/1/23 paolo.vall...@gmail.com > >> In the meanwhile I discovered that if you upload a file greater than 1M, >> I tried with a 1.5

Re: [web2py] Re: Auth with migrate=False

2013-01-25 Thread paolo.vall...@gmail.com
Hi Massimo, just wondering if you have found something better for this. Paolo 2013/1/17 Massimo Di Pierro > Me neither. Let's think of a solution on web2py_developers. > > > On Wednesday, 16 January 2013 01:59:27 UTC-6, Paolo valleri wrote: >> >> Hi Massimo, personally I don't like this: >> >>>

Re: [web2py] Re: auth.wiki how to format all fields

2013-01-27 Thread paolo.vall...@gmail.com
The problem is that with the current approach i set the title field but i have not found yer the possibility to render it :-( Looking to the code a very dirty but working workaround is to unset the current.request.extension. get the wiki and set extension as before. In this way i get all fields se

Re: [web2py] Re: auth.wiki how to format all fields

2013-01-30 Thread paolo.vall...@gmail.com
Hi Massimo, I would avoid to write explicit code, please find attached a potential patch. what about that? Paolo 2013/1/30 Massimo Di Pierro > db.auth_wiki(slug=slug).title ? > > > On Sunday, 27 January 2013 11:46:47 UTC-6, Paolo valleri wrote: > >> The problem is that with the current appr

Re: [web2py] Re: auth.wiki how to format all fields

2013-01-30 Thread paolo.vall...@gmail.com
I agree too in breaking the backward compatibility as soon as is marked experimental, however I don't see any other field that can be wrapped around XML. Paolo 2013/1/30 Alan Etkin > > I have applied the patch. I am uneasy with the fact that only one field > is wrapped around XML and the othe

Re: [web2py] Re: auth.wiki how to format all fields

2013-01-30 Thread paolo.vall...@gmail.com
for me is ok too. Paolo 2013/1/30 Massimo Di Pierro > I am suggesting the opposite. Not wrapping any field in XML. > > > On Wednesday, January 30, 2013 1:50:40 PM UTC-6, Paolo valleri wrote: > >> I agree too in breaking the backward compatibility as soon as is marked >> experimental, however

Re: [web2py] Re: wiki: how to cache media files?

2013-02-01 Thread paolo.vall...@gmail.com
Hi Niphlod, I don't know very well which header I have to set, can you give me an example? The 304 is sent by the server to the user accordingly to the user's request. Given that, If my upload file as a modified_on field I can actually understand if I have to return the whole file (http: 200) or a

Re: [web2py] Re: wiki: how to cache media files?

2013-02-01 Thread paolo.vall...@gmail.com
I get it,thank for explaing. I tryed a test,it seems that main.py overwrites the default headers setting them as no-cache,no-store and so on. I have to test it more. Moreover wiki media are handled by users,i don't know how they behave with them. Something 'automatic' would be really nice to have.

Re: [web2py] Re: wiki: how to cache media files?

2013-02-01 Thread paolo.vall...@gmail.com
Something that handles the headers automatically accordingly to the wiki media modified_on field. I will try somenthing next week (i am out this weekend) Il giorno 01/feb/2013 16:59, "Niphlod" ha scritto: > what "automation" ? > > On Friday, February 1, 2013 4:51:54 PM UTC+1, Paolo valleri wrote:

Re: [web2py] Re: wiki: how to cache media files?

2013-02-04 Thread paolo.vall...@gmail.com
Hi Niphlod, I am still trying to understand why the wiki uploads are not returned as 304. The function in charged to return either 200 or 304 is stream_file_or_304_or_206 in streamer.py. Moreover, this function is only called in globals.py inside stream(...). Please have a look at globals.py:344, I

Re: [web2py] Re: wiki: how to cache media files?

2013-02-04 Thread paolo.vall...@gmail.com
I thought the same about postponing the opening of the file. Moreover, just after globals:344 in the stream(...) function I have added if isinstance(stream, file): stream_file_or_304_or_206(stream.name, chunk_size=chunk_size,

Re: [web2py] Re: wiki: how to cache media files?

2013-02-05 Thread paolo.vall...@gmail.com
Great! I've just tested it and it seems to work very well, I am getting the 304 that I was looking for. Now many resources are no longer sent to the client saving bandwidth, I think many web2py applications will appreciate this speed up. @Niphlod, the header you have mentioned will force to keep t

Re: [web2py] Re: wiki: how to cache media files?

2013-02-05 Thread paolo.vall...@gmail.com
I am wondering to understand if from the theoretical point of view is true or not that parallel requests are not handled in parallel. In the meanwhile I will try to monitor the gain that we can have by session.forget in all the downloads(). Paolo 2013/2/5 Niphlod > > > On Tuesday, February 5,

Re: [web2py] Re: wiki: how to cache media files?

2013-02-05 Thread paolo.vall...@gmail.com
Niphlod has written exactly what I have in mind. Given the fact that distinct requests from the same user/session are serialized as Massimo has outlined from my point of view we should add session.forget() or session._unlock(request) as early as possible in the download() function of globals.py @Ma

Re: [web2py] Re: Cache performance with computed columns

2013-03-25 Thread paolo.vall...@gmail.com
Paolo 2013/3/25 Niphlod > I didn't get the point. > Q1 is slower (obviously) cause of the epoch() function and the additional > filtering > Q1 with cache shows more or less the same duration as Q2 with cache. > the key point is "even when the cache is enabled the first query is taking > l

Re: [web2py] Re: Cache performance with computed columns

2013-03-25 Thread paolo.vall...@gmail.com
. Paolo 2013/3/25 paolo.vall...@gmail.com > > > Paolo > > > 2013/3/25 Niphlod > >> I didn't get the point. >> Q1 is slower (obviously) cause of the epoch() function and the additional >> filtering >> Q1 with cache shows more or less the s

Re: [web2py] Re: scheduler sincronization

2013-03-25 Thread paolo.vall...@gmail.com
Accordingly to the book http://web2py.com/books/default/chapter/29/04?search=scheduler#Scheduler-(experimental) It doesn't start when the previous task ends but when the previous task starts instead. Paolo 2013/3/25 szimszon > I think the period starts as the last execution ends. > > Sometime

Re: [web2py] Re: scheduler sincronization

2013-03-25 Thread paolo.vall...@gmail.com
Hi, given the fact that I left untouched the heartbeats value and that my worker was performing only the test task, I got odd starting values: t1: 2013-03-25 15:34:43 t2: 2013-03-25 15:40:48 ( t2 started after 6m + 5s = 365seconds ) t3: 2013-03-25 15:46:52 ( t3 started after 6m + 4s = 364seconds

Re: [web2py] Re: scheduler sincronization

2013-03-25 Thread paolo.vall...@gmail.com
My task is available here: https://github.com/ilvalle/scapp/blob/master/models/scheduler.py As you can see the difference is related to the external request. Asap I will try your app too. Paolo 2013/3/25 Niphlod > can't reproduce the issue, even with SQLite. > Using the demo1() function from

Re: [web2py] Re: scheduler sincronization

2013-03-25 Thread paolo.vall...@gmail.com
I didn't get your point, with one repetitive task, should I start the scheduler with two or more workers? If so, I will try it. Actually I have just seen the stop time, on average the task completes it cycle in just a few seconds (~1-2). Given that, is what you have suggested still valid? Last but

Re: [web2py] Re: scheduler sincronization

2013-03-26 Thread paolo.vall...@gmail.com
I executed again demo1, I run it several times, I got even in this case elapsed time between two consecutive executions around 360 and even more instead of 300. What can I do to understand what is not working correctly? Moreover, I would suggest to add the timestamp to the scheduler debug log. P

Re: [web2py] Re: scheduler sincronization

2013-03-26 Thread paolo.vall...@gmail.com
If can be useful, I attached part of the log file in which demo1 is executed. First execution: 2013-03-26 15:52:31 second execution: 2013-03-26 15:58:55 (+384s) Paolo 2013/3/26 Paolo valleri > >>> import sqlite3 > >>> print sqlite3.version > 2.6.0 > >>> print sqlite3.sqlite_version > 3.7.9 >

Re: [web2py] Re: scheduler sincronization

2013-03-26 Thread paolo.vall...@gmail.com
I can make few tests but only tomorrow, I will be out for the rest of the week. If you send me a patch with the new log statement, I will come back with the result asap. Paolo 2013/3/26 Niphlod > whoa. seems that something wrong is happening trying to assing new > tasks > normally, every

Re: [web2py] Re: scheduler sincronization

2013-03-26 Thread paolo.vall...@gmail.com
I will try to update sqlite as you suggested asap. I tried your scheduler but I cannot see any error. In the meanwhile I have seen that when the following logs are missing "INFO - TICKER: workers are 1" "INFO - TICKER: tasks are 0" even the log: "DEBUG - Assigning tasks..." is missing. could this m

Re: [web2py] Re: scheduler sincronization

2013-03-27 Thread paolo.vall...@gmail.com
odd behavior, is possible that the function is not called at all? I added a log line in pop_task(), in the else branch of the first test, to understand why fails the test: The statement is logger.info("pop task %s %s" % (self.is_a_ticker , self.do_assign_tasks)) The log says: 2013-03-27 11:38:01,27

Re: [web2py] Re: scheduler sincronization

2013-03-27 Thread paolo.vall...@gmail.com
So, I added: logger.debug('is_a_ticker := %s, worker_status[0] := %s', self.is_a_ticker, self.worker_status[0]) before the last if of relevant snippet you posted,logs: 2013-03-27 13:25:01,785 - web2py.scheduler.mapserver#29806 - INFO - TICKER: I'm a ticker 2013-03-27 13:25:01,797 - web2py.schedule

Re: [web2py] Re: scheduler sincronization

2013-03-27 Thread paolo.vall...@gmail.com
I tried it, it seems to be more sporadic but the problem is not gone. log: 2013-03-27 18:07:11,809 - web2py.scheduler.mapserver#30515 - DEBUG - freeing workers that have not sent heartbeat 2013-03-27 18:07:11,811 - web2py.scheduler.mapserver#30515 - INFO - TICKER: I'm a ticker 2013-03-27 18:07:11,8

Re: [web2py] Re: scheduler sincronization

2013-04-02 Thread paolo.vall...@gmail.com
Hi Niphlod, sorry for the late answer, I hadn't access to the involved server. I added the two logs lines you proposed, below the logs: 2013-04-02 09:38:14,561 - web2py.scheduler.mapserver#4162 - DEBUG - recording heartbeat (ACTIVE) 2013-04-02 09:38:14,562 - web2py.scheduler.mapserver#4162

Re: [web2py] Re: scheduler sincronization

2013-04-02 Thread paolo.vall...@gmail.com
Right, I updated the log too, now I have: self.do_assign_tasks = False logger.debug('send_heartbeat(), do_assign_tasks=%s', self.do_assign_tasks ) if counter % 5 == 0 or mybackedstatus == PICK: and if self.worker_status[0] == ACTIVE: logger.debug('Inside If, do_assign_tasks=%s', self.do_assi

Re: [web2py] Re: scheduler sincronization

2013-04-04 Thread paolo.vall...@gmail.com
Unfortunately I can't install any dbms on that machine, I will make a test on an other 'similar' machine where I have postgres installed. Paolo 2013/4/3 Niphlod > ok, at least it seems consistent: > there's: > - no send_heartbeat(), do_assign_tasks=True line > - no Inside If, do_assign_tasks=

Re: [web2py] Re: scheduler sincronization

2013-04-08 Thread paolo.vall...@gmail.com
Hi Niphlod, sorry for the delay I had time only on the weekend to run few tests. On my pc, I run it for hours using postgres. The maximum delay found in starting a new task was 17s. Paolo 2013/4/4 paolo.vall...@gmail.com > Unfortunately I can't install any dbms on that machine, I wil

Re: [web2py] Re: new setup-web2py-nginx-uwsgi-ubuntu.sh

2012-12-12 Thread paolo.vall...@gmail.com
sorry, one more thing, what about checking if you have the permission to install stuff and so on? 2012/12/12 Niphlod > mee too, didn't notice in the cut-paste madness. > > > On Wednesday, December 12, 2012 9:57:06 AM UTC+1, Paolo wrote: >> >> Hi and great job! >> >> One thing that I don't like

Re: [web2py] Re: new setup-web2py-nginx-uwsgi-ubuntu.sh

2012-12-12 Thread paolo.vall...@gmail.com
yeap :) 2012/12/12 Niphlod > meaning checking if the script is run as root ? > > Il giorno mercoledì 12 dicembre 2012 11:06:42 UTC+1, Paolo ha scritto: >> >> sorry, one more thing, what about checking if you have the permission to >> install stuff and so on? >> >> >> 2012/12/12 Niphlod >> >> m

Re: [web2py] Re: Time aggregations

2012-12-14 Thread paolo.vall...@gmail.com
Hi Niphlod, thanks for clarifying me this. I will go for the aggregation by hand, which is more portable rather than database view. However, we could provide something like that in the web2py library or somewhere, to speedup the work for future developments. 2012/12/14 Niphlod > there are no "

Re: [web2py] Re: new setup-web2py-nginx-uwsgi-ubuntu.sh

2012-12-19 Thread paolo.vall...@gmail.com
Hi I was trying with the script that comes with the stable web2py. with the one on dropbox I problem has gone. Paolo 2012/12/19 Niphlod > > @Simone, an other improvement to the script could be to combine into a >> single server the 80, and 443 to avoid duplicating configuration, as stated >> h

Re: [web2py] Re: delete uploads with SQLFORM.factory

2012-12-28 Thread paolo.vall...@gmail.com
Hi, I had a look at sqlform.py, the error comes from the fact that if a default value is set for the field upload, web2py tries to read it and store it as the new value for the upload field. As a result it is not possible to me to edit forms and remove uploads by setting the default value, this tri

Re: [web2py] Re: self join on postgres

2013-01-08 Thread paolo.vall...@gmail.com
Thanks for this explanations! To add more info, I can say that the elements on left column are naturally ordered, I have thousands of records(~5000record/day) for each station but only a few station_id(~5-10stations totally). Instead of making a complex query, a cleaner approach would be to run the

Re: [web2py] Re: admin access password file

2013-06-12 Thread paolo.vall...@gmail.com
Hi Massimo, I used https. I expired the same behavior on both apache and nginx. please find attached the condiguration file of nginx Paolo 2013/6/12 Massimo Di Pierro > In the URL, are you using http or https? Assuming you use apache, can you > show the config file? > > On Wednesday, 12 June

Re: [web2py] Re: [web2py-dev] Re: Spammers on web2pyslices.com

2013-06-15 Thread paolo.vall...@gmail.com
I don't see an approach able to tackle the issue at all,we should implement several techniques together. Anyway, what shall we do when a bot is detected? Have we got a sort of blacklist? If so,instead of starting with an empty list, we could think to start from a public available blacklist of bot.

Re: [web2py] Re: admin access password file

2013-06-18 Thread paolo.vall...@gmail.com
Massimo I discovered the problem, the server is behind a reserve proxy and this latter wasn't properly configured, namely requests to the external port 443 were directed to the local 80. Sorry for the troubles! Paolo 2013/6/17 Massimo Di Pierro > I think the port is set by your script: 9001 a

Re: [web2py] Re: disable left side panel in editor in 2.5>

2013-06-24 Thread paolo.vall...@gmail.com
I see your point, just a question, which web2py version are you using? In trunk there is a newer editor with tabs, it allows you to edit few files in parallel, by removing the left side panel your won't be able to use such feature. Paolo 2013/6/24 lucas > hard-code or button? doesn't matter

Re: [web2py] Re: Can page/chapter titles be added to the online book ?

2013-06-25 Thread paolo.vall...@gmail.com
Anthony we can have both, chapter numbers and slug in the url. If we don't change the args position former links should work too. isn't it? Paolo 2013/6/24 Anthony > I have argued for slugs *instead* of chapter numbers in the URL's. There > are many links to the book on the internet (here, St

Re: [web2py] Re: Best approach to render fragments

2013-08-27 Thread paolo.vall...@gmail.com
I don't know rails at all, and actually I don't even like to compare frameworks, but with flexible and easier I meant something like (rails): "render layout: false". In a talk I attended I remember that symfony has something very similar as well. Given that, I know they are completely different fra

Re: [web2py] Re: Integrated IDE does not color javascript code

2013-10-18 Thread paolo.vall...@gmail.com
It should be fixed in trunk. Please have a try Paolo -- 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) --- You received this message because you are subscribed

Re: [web2py] Re: Proposal for big but simple improvement: [add view] in IDE view

2013-12-09 Thread paolo.vall...@gmail.com
You are right, technically speaking it is true we already have the name of views and we can avoid to ask them again to the users. However what you proposed It's not so straightforward with the current editor structure, I don't say it is impossible. At first sight we should: 1- migrate the file li

Re: [web2py] Re: new feature in trunk: TODO panel in admin editor

2013-12-10 Thread paolo.vall...@gmail.com
Hi, At the moment it is placed in the admin editor. Have a look there,in the footer there is a button called “todo“ ,click there :-P Il giorno 10/dic/2013 15:02, "Gael Princivalle" ha scritto: > Hi Paolo. > > Sorry, where is this TODO panel ? > > Regards. > > Il giorno domenica 8 dicembre 2013 10

Re: [web2py] Re: Wappalyzer

2013-12-16 Thread paolo.vall...@gmail.com
It is here https://github.com/ElbertF/Wappalyzer/pull/397 Paolo 2013/12/16 Paolo Valleri > hi, > we can list all apps that web2py implies, for sure python, if we check the > presence of web2py.js I would also set jquery, what else (see all apps here > https://github.com/ElbertF/Wappalyzer/blo

Re: [web2py] Re: Can't edit default.py after upgrade to 2.8.2

2013-12-17 Thread paolo.vall...@gmail.com
Hi Richard, which webserver are you using? Let us know more info about the infrastructure you have build on the rpi Paolo 2013/12/16 Richard Brown > OK, to answer Paolo's question on Friday as to what had changed to make it > not work at all - nothing, only the passage of time. So as an expe

Re: [web2py] Re: Can't edit default.py after upgrade to 2.8.2

2013-12-17 Thread paolo.vall...@gmail.com
the editor requires several files, I'm just wondering if you get all of them, can you check if there are error in Chrome console? Moreover, please check apache logs, if something is not working there. have you enabled map_hyphen ? Paolo 2013/12/17 Richard Brown > Hi Paolo, as a C programming,

Re: [web2py] Re: Can't edit default.py after upgrade to 2.8.2

2013-12-18 Thread paolo.vall...@gmail.com
You should locate the log of mod_wsgi, please post those as soon you find them, from the apache log everything seems to work well (I see 304 for cached stuff and 200 when you edit file), for example line 720-725. Be aware that, you got a lot of requests from external ip which are sending against yo

Re: [web2py] Re: Can't edit default.py after upgrade to 2.8.2

2013-12-19 Thread paolo.vall...@gmail.com
there are plenty how-to for improving the security of your network/rpi. I don't know your network configuration, given that I can't tell you what to do. Surely you have apache accessible from 'outside' if this is not intentional I would fix it as the first thing to do. Moreover, I found this, mayb

Re: [web2py] Re: Can't edit default.py after upgrade to 2.8.2

2013-12-19 Thread paolo.vall...@gmail.com
No but I am not a master of mod_wsgi. everything works but the editor, right? Paolo 2013/12/19 Richard Brown > Hi Paolo, this is a web site so presumably has to accessible from the > outside? > > We should probably keep this discussion separate and concentrate on the > main issue - is there a

Re: [web2py] Re: Integrated IDE does not color javascript code

2013-12-23 Thread paolo.vall...@gmail.com
Have you upgraded web2py? I've just double checked with web2py 2.8.2 and it works well Paolo 2013/12/23 António Ramos > I dont see it working. > What is the status of javascript coloring? > > Thank you > > > 2013/10/18 paolo.vall...@gmail.com > >> It shou

Re: [web2py] Migrating a hude database from Spring to web2py

2014-01-09 Thread paolo.vall...@gmail.com
Then set the three variables Michele mentioned to false directly, it is not necessary to create any metadata, the following code snippet print the station name from a remote database (vpn address), the powerful thing is that the table station has several fields but I defined only once :) db = DAL(

Re: [web2py] Re: detect a specific device

2014-01-14 Thread paolo.vall...@gmail.com
Hi, what you posted can be a starting point but it is not enough because it doesn't guarantee that a different android tablet has been purchased. The requirement is, only a well defined set of tablets can access the webapp. Paolo 2014/1/14 Leonel Câmara > I guess you can use something like: >

Re: [web2py] Re: detect a specific device

2014-01-14 Thread paolo.vall...@gmail.com
hi, thanks everyone for the answers @Willoughby I don't think the mac address is sent/received in an http request, isn't ? @dave your suggestion is in the right direction but how can you automatically tells the browser to send this token? @niphlod authentication is not enough, an user can still use