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
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
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
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
( 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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
>>
>>>
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
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
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
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
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
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.
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:
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
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,
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
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,
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
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
.
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
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
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
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
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
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
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
>
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
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
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
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
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
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
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
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=
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
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
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
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 "
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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(
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:
>
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
76 matches
Mail list logo