Re: [web2py] Re: web2py broken

2018-08-12 Thread BlueShadow
Phanter wrote: > > check the database permissions... > > Em 12/08/2018 06:14, "BlueShadow" > > escreveu: > > Do you guys have any tips what I can try next in order to fix it? > Do you need to see other files? > thanks for your help kind regards > BlueShadow

Re: [web2py] Re: web2py broken

2018-08-12 Thread BlueShadow
Do you guys have any tips what I can try next in order to fix it? Do you need to see other files? thanks for your help kind regards BlueShadow -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p

Re: [web2py] Re: web2py broken

2018-08-11 Thread BlueShadow
So I tried to connect on python. and it seems to work. I wrote this tiny program: import sqlite3 conn = sqlite3.connect('storage.sqlite') print(conn) c = conn.cursor() c.close() this is the output: So I guess it has nothing to do with a corrupted database. -- Resources: - http://web2py.com -

Re: [web2py] Re: web2py broken

2018-08-10 Thread BlueShadow
here is my menu.py: # -*- coding: utf-8 -*- # this file is released under public domain and you can use without limitations # ## Customize your APP title, subtitle and menus here

[web2py] Re: web2py broken

2018-08-09 Thread BlueShadow
No one? Did I give insufficient information? I really need some help with this Problem thanks guys. On Thursday, August 9, 2018 at 1:27:42 PM UTC+2, BlueShadow wrote: > > > I just downloaded my entire app. (with FTP since I can't access the > webinterface) Now when I try to ru

[web2py] Re: web2py broken

2018-08-09 Thread BlueShadow
I just downloaded my entire app. (with FTP since I can't access the webinterface) Now when I try to run it locally on a web2py compiled server (newest one directly from the site). I get the following error: 127.0.0.1.2018-08-09.13-16-30.9c125719-b261-4285-8a88-3012470558cc file is encrypted

[web2py] web2py broken

2018-08-09 Thread BlueShadow
Hi I got a pretty big problem. My web2py seems to be completly broken. even my last backup won't work. when I go to my site I get: Internal errorTicket issued: unknown and I can't access the appadmin. I tried to use the console to backup the database: python web2py.py -S appname -M web2py Web

[web2py] European General data protection act and web2py

2018-05-18 Thread BlueShadow
Hi, I am using a fairly old version of web2py since the page is running since 2012 I haven't done many updates. (since I ran into a world of trouble last time I tried to upgrade it I stayed at version 2.14.6) Can you tell me if the web2py is using cookies? Has anyone a cookie warning

[web2py] ValueError: invalid literal for long() with base 10:

2017-07-05 Thread BlueShadow
Hi, I get incresing numbers of errors because there are external sites linking to an address like: www.mydomain.com/Controlerfunction?id=123Brandon So the link is correct up to the id value but for some reason they add some string to the end of the link. Is there a way to catch these errors and

[web2py] Re: routes.py problems

2016-05-23 Thread BlueShadow
It seems to work now my routes.py had no default application. I still need to figure out how to route the other sites but new day new luck. thanks Jim -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: routes.py problems

2016-05-23 Thread BlueShadow
', 'f8d6b8.html','favicon.ico','Favicon.ico', 'robots.txt','humans.txt'] ) ) routes_onerror = [ ('App/*', '/App/default/error_site') ] logging = 'warning' On Monday, May 23, 2016 at 6:20:41 PM UTC+2, BlueShadow wrote: > > I reinstalled pretty much everything on my Server new OS

[web2py] routes.py problems

2016-05-23 Thread BlueShadow
I reinstalled pretty much everything on my Server new OS newest web2py ... and got my application back and running :-) but web2py uses still the default routes.py. when I copied my old routes.py to the web2py root I got an internal server error. I thought well lets use the example file copied

[web2py] Re: No module named appname.modules.funtions

2016-05-23 Thread BlueShadow
there were a couple files assigned to root^^ chown to www-data and it worked^^ On Sunday, May 22, 2016 at 2:28:38 PM UTC+2, BlueShadow wrote: > > Hi, > Something is very wrong with my web2py. I finally got the newest verion > (2.14.6 nginx/1.4.6, Python 2.7.6 Ubuntu 16.04) on m

[web2py] No module named appname.modules.funtions

2016-05-22 Thread BlueShadow
Hi, Something is very wrong with my web2py. I finally got the newest verion (2.14.6 nginx/1.4.6, Python 2.7.6 Ubuntu 16.04) on my production server. and the welcome app is running fine. when I want to use my application it creates a ticket for basically every inport:

[web2py] finding the error for unknown ticket

2016-05-16 Thread BlueShadow
Hi, my production site displays for every site an unknown ticket. is there a way to find out why this happens. is there a log or something where there are more informations? I am running ubuntu nginx uswgi and the newest web2py on a freshly installed ubuntu server 14.04. thanks for your help.

[web2py] Re: unknown ticket on server for all sites

2016-05-15 Thread BlueShadow
I am running windows 7 on my home pc and ubuntu 14.04 on my server. On my server I get unknown ticket as an error. on my home pc I updated web2py and I get the database locked error. I don't know what bitlocker is so I guess I don't have it. I uploaded everything with filezilla. Sry that I

[web2py] Re: unknown ticket on server for all sites

2016-05-14 Thread BlueShadow
I tried accessing my database from my backup on my local pc. it opens just fine with the firefox extension no password or anything. I checked a couple tables and they look fine. On Saturday, May 14, 2016 at 8:28:14 PM UTC+2, Alfonso Serra wrote: > > Hmm looks bad, ransomware

[web2py] unknown ticket on server for all sites

2016-05-14 Thread BlueShadow
Hi all my sites show an unknown ticket on my production site. So I got my backup and it worked for 2-3days. than it started again ... repeat about 3 times. So I reinstalled my entire server new ubuntu 14.04 ngninx uswgi web2py my coppied app (I use sqlite as db so it should work) and now I get the

Re: [web2py] subdomain for testing

2015-07-29 Thread BlueShadow
I looked at the deployment script in detail. But I can't figure out how you could do it. I tried adding server blocks in the sites enabled folder in nginx like this: server { listen 80; server_name www.myexamplew2papp.com

[web2py] subdomain for testing

2015-07-28 Thread BlueShadow
hi, I have a web2py app on www.myexamplew2papp.com which runs perfectly. Now I want to create a subpage for testing which is not web2py but wordpress. this wordpressblog should be located here: www.myexamplew2papp.com/wpblog. Does onyone know how I do that? thanks -- Resources: -

Re: [web2py] subdomain for testing

2015-07-28 Thread BlueShadow
=AFQjCNGsF8K3PQzXtfgUtk07H49dvH9xrQ line 333 Direct link : https://github.com/web2py/web2py/blob/master/scripts/setup-ubuntu-12-04-redmine-unicorn-web2py-uwsgi-nginx.sh#L333 It regular expression, it should be similar with apache... Richard On Tue, Jul 28, 2015 at 1:09 PM, BlueShadow

[web2py] web2py update app admin doesn't work anymore

2015-04-25 Thread BlueShadow
Hi I'm running web2py on ubuntu with nginx after updating to the current version my appadmin doesn't work anymore. this is the error I got directly from the appadmin error folder: S'output' p2 Stype 'exceptions.ImportError' No module named pydal.objects p3 sS'layer' p4

[web2py] button to start function which dynamicly chynges page

2015-04-06 Thread BlueShadow
Hi, I have a function in my web2py app which takes quite a while. I like to have a button on a page which starts the funktion but does not reload the page for 10 minutes. The function should also dynamicly display its progress on the page. Is there a way to do that? -- Resources: -

[web2py] temp table

2015-03-19 Thread BlueShadow
Hi, I get some information from constantly updating files. (this part works already) Some of these information I want to save in a temp db table. So once the user opens the temp table site he should get an overview about all information in the temp table and decide for each entry if its taken

[web2py] Search for Similar database entries

2015-01-24 Thread BlueShadow
Hi I got a filled db table with articles each article has a title which looks like this: Movie the article is about - Topic discussed what I want to list all articles which have the same first half of the title: Movie the article is about Thanks for your help. -- Resources: -

[web2py] Re: Search for Similar database entries

2015-01-24 Thread BlueShadow
Thanks. how do you make an index? -- 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 to the Google

[web2py] nginx one ip two web2py applications two non web2py websites

2014-12-01 Thread BlueShadow
Hi, I got one server with one ip. And I have a total of 4 websites. two web2py apps and two non web2py apps. I had that configured and working a year ago. and can't remember how I did it. I updatet web2py and now all web2py urls are redirected to one of the non web2py websites. Can anyone tell

[web2py] Re: nginx one ip two web2py applications two non web2py websites

2014-12-01 Thread BlueShadow
I'm stupid. I had the $hostname still in the conf file in sites-available thanks Niphlod. On Monday, December 1, 2014 9:44:36 PM UTC+1, BlueShadow wrote: Hi, I got one server with one ip. And I have a total of 4 websites. two web2py apps and two non web2py apps. I had that configured

[web2py] list all users with membership of a group

2014-06-18 Thread BlueShadow
Hi folks, I want to display all members of auth_group.id 3 but for some reason I got a blokade and can't get it to work. thanks for your help. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] module has no attribute...

2014-05-28 Thread BlueShadow
I just added a function to my module sitemap called stats which basicly counts the sites which are in my sitemap. My problem is the function I just created (stats(db)) can't be called I always get a ticket: ... sitemapstat=sitemap.stats(db) AttributeError: 'module' object has no attribute

[web2py] list:reference field number of entries

2014-04-23 Thread BlueShadow
Hi, I got a list:reference field where there are very many entries to choose from and the default field shows only 5 entries is there a way to increase that number or get a better field to select multiple entries? thanks for your help -- Resources: - http://web2py.com - http://web2py.com/book

Re: [web2py] list:reference field number of entries

2014-04-23 Thread BlueShadow
Thanks Niphlod yours works. Richard can you tell me how one can implement the jquery multiple select plugin. I tried a fancy one some time ago which had two windows one showing the selected and one showing the unselected. but I could never get it to work. -- Resources: - http://web2py.com -

[web2py] Tuning app performance for good response times on slow servers

2014-02-25 Thread BlueShadow
Hi, I'm using web2py with nginx and sqlite. And my response times are pretty bad. last time I measured it I god results around 2000ms. When I use google pagespeed it tells me three things I should improve: use browser caching for images, put javascript and css below the fold and check the

[web2py] Making a complete backup of an app

2014-02-17 Thread BlueShadow
Hi, I got several problems with my current web2py version: I can't disable apps, I can't use the package all command, or the update command and a few other minor things. So I wanted to delete web2py completly and reinstall it. But I'm not sure how I get all things from my app (database

[web2py] Reaching pages by a descriptive pagename

2014-02-10 Thread BlueShadow
Hi I would love if I could reach my Articles not only by this type of URL: www.mydomain.com/Article?id=112 but also by this type of URL: www.mydomain.com/Article:Title-of-the-Article (or something similar I just want to have the Title of that Article in the URL). Is there an easy way to do

[web2py] Re: Important New Year News: Edison Award

2014-01-04 Thread BlueShadow
good luck you and web2py deserve it. -- 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 to the

[web2py] converted url %3F and %3D

2014-01-04 Thread BlueShadow
Hi, for some reason some external links converted the ?id=10 in one of my urls to %3Fid%3D10 my question is how can I convert that request back to the existing url. Preferably for all sites if it should happen again. Do I have to do some nginx magic to do that or can it be done within web2py?

[web2py] Re: list:reference painfull to fill

2013-12-12 Thread BlueShadow
thanks for your offer I'm working my way through the example code but my biggest problem is that php site. I don't know php. But from what I get from the php code is that all the sample cities need to be in an unordered list environment ulli/li.../ul but this form part of the bsmselect example

[web2py] list:reference painfull to fill

2013-12-09 Thread BlueShadow
Hi, If I had two tables one called ingredience and the other soup. It is quite painfull to put 20 ingredience in one soup. Is there any more convenient way? It is sopposed to work with a form for users to create more entries. So punching in the ids is not an option. -- Resources: -

[web2py] multiple select plugin and list reference

2013-11-27 Thread BlueShadow
I found this wonderfull plugin: http://dev.s-cubism.com/plugin_multiselect_widget which looks awesome for the things I wonna do. But I don't get ist to work with a field which has a list reference table I want the field to be either empty of filled with an unlimeted amount of entries. So I had

[web2py] Re: DAL db.table.field.contains

2013-11-21 Thread BlueShadow
def Authors(): AL=db().select(db.Author.ALL, orderby=db.Author.Name) TheList=[] for Author in AL: l=db(db.Book.Author.contains(Author.id)).select(db.Book.ALL, orderby =db.Book.Name) if len(l)0: TheList.append([l[0]]) else:

[web2py] DAL db.table.field.contains

2013-11-21 Thread BlueShadow
Hi I got two tables Books and Authors Book(Name,List:Author,...) each book has at least one author now I want to have a list of all the books one Author has written. So I came up with this line of code: l=db(db.Books.Author.contains(Author.id)).select(db.Books.ALL, orderby=db: Books.Name) which

[web2py] avoid out of range error from googlebot

2013-11-20 Thread BlueShadow
Hi, to increase my speed I have a fast downloadfunction for my images: def fast_download(): session.forget(response) cache.action(time_expire=604800)(lambda: 0)() # very basic security (only allow fast_download on your_table.upload_field): if not request.args(0).startswith(Images.):

[web2py] tactic for avoiding errors

2013-10-26 Thread BlueShadow
Hi, I got a slightly modified download function: def fast_download(): session.forget(response) cache.action(time_expire=604800)(lambda: 0)() # very basic security (only allow fast_download on your_table.upload_field): if not request.args(0).startswith(Images.): return

[web2py] Request: Error Traceback Page: Requested URL with Arguments

2013-10-25 Thread BlueShadow
Hi, I would love to see a little addition to the error page: A line where it displays the entire URL with all the arguments. I know its already under the request button. but its spread and I have to search for it every time. it would really speed up my process of looking for an error. And I

[web2py] updating web2py app code

2013-10-16 Thread BlueShadow
Since my original app was build with web2py 1.8.something. without any version control or anything like that I was wondering if there is a good tutorial how to set an app up with all the current features. Or if you think it's not worth it and never change a running system. One thing I would

[web2py] web2py update nothing is working anymore

2013-10-01 Thread BlueShadow
Hi i tried to upgrade the framework after using the experimental upgrading button in the admin panel. I couldn't access the admin panel anymore. I got an error page which I could not open. So I copied my application to some place on the server (cp -R ) deleted web2py (rm -R) used the nginx

[web2py] Re: web2py update nothing is working anymore

2013-10-01 Thread BlueShadow
For some reason I don't know after the backup finished (the backup was with a non working admin panel) everything works again. I got no explanation because its the second time I used this backup. and last time it didn't work. Am Dienstag, 1. Oktober 2013 14:33:07 UTC+2 schrieb BlueShadow: Hi

[web2py] optimizing for mobile devices

2013-07-25 Thread BlueShadow
Hi, since my Mobile menu links to non existing stuff %20CA% or something like that I want to use the normal menu which I find way nicer. I guess I need to change this line: {{=MENU(response.menu, _class='mobile-menu' if is_mobile else 'sf-menu',mobile=is_mobile)}} the second thing I would love

[web2py] clear error database

2013-07-23 Thread BlueShadow
I got a bit of a problem: I get a timeout when I go to errors in the admin section. I guess there are so many errors that it just takes to long for the page to load (haven't looked at them for quite some time.) Is there a way to clear those errors so that I can at least see the new one's?

[web2py] Re: clear error database

2013-07-23 Thread BlueShadow
I'm Using nginx. conf file: user www-data; worker_processes 4; pid /var/run/nginx.pid; events { worker_connections 768; # multi_accept on; } http { ## # Basic Settings ## sendfile on; tcp_nopush on; tcp_nodelay on;

[web2py] Re: list:reference requires is not empty

2013-06-09 Thread BlueShadow
I tried the IS_LIST_OF validator and I can't get ist to work. when I have no validator I got all names in my refrenced table. And I can select as much as I like, but when I use any validators the list disappears and I get an input for a string. I tried IS_LENGTH(minsize=1) as well as

[web2py] Re: app about page

2013-06-02 Thread BlueShadow
https://lh6.googleusercontent.com/-oDE7O7Yvqgk/UasTv8GH5TI/AAk/lB1eTk0eIcw/s1600/project+progress.gif I stumbled apon the about page and this graph so I searched the forums and found this post. seeing the number of lines written is pretty interesting but I can't figure this graph out.

Re: [web2py] web2py Safety discussion

2013-06-02 Thread BlueShadow
I wrote just a simple few lines to display the contents of that file to my personal Admin report^^ h2Failed logins to Adminpanel:/h2 {{deny=os.path.join('applications', 'admin', 'private', 'hosts.deny')}} {{file=open(deny,'r')}} {{lines=file.readlines()}} {{file.close()}} {{for l in lines:}}

[web2py] list:reference requires is not empty

2013-06-02 Thread BlueShadow
when one has a database field with a list:reference type it can be empty. For quite a few scenarios this is undesirable. but if you use requires is_not_empty() it first of all doesn't show the reference table entries. And it still allows you to leave the field empty. -- --- You received

[web2py] db field requires is empty

2013-06-02 Thread BlueShadow
I got a database field which needs to be filled when a bolean is true and when its not true it should be empty. Thats what I did: Field('Booleancheck','boolean'), Field('Type','reference Type_table', requires=IS_IN_DB (db,'type_table.id', 'type_table.Name') if request.vars.Booleancheck else

[web2py] web2py Safety discussion

2013-06-01 Thread BlueShadow
Hi, Overall web2py is pretty save as far as I know. https://scanmyserver.com/ shows for my web2py app 6 low priority risks. As far as I'm concerned they are very low priority but since I startet to record all errors (code 400 404 500) in an database table I get a little concerned since my very

[web2py] Re: 2.4.7 problems

2013-05-29 Thread BlueShadow
I just rechecked it the standard www-data user is the owner of the folder and its content. On Tuesday, May 28, 2013 10:03:15 PM UTC+2, Niphlod wrote: I tried with cache.disk and no error occurred. Are you positive that there are no permission issues on the cache folder ? -- --- You

[web2py] 2.4.7 problems

2013-05-28 Thread BlueShadow
Hi, I updated to the newest version of web2py and I got at least to problems: there is no client cache funktion anymore. the second one: I get an error when I create a cached version of a page: @auth.requires_membership('VIP') @cache(Ertrag, time_expire=86400, cache_model=cache.disk) def Ertrag():

[web2py] Re: 2.4.7 problems

2013-05-28 Thread BlueShadow
, BlueShadow ha scritto: Hi, I updated to the newest version of web2py and I got at least to problems: there is no client cache funktion anymore. the second one: I get an error when I create a cached version of a page: @auth.requires_membership('VIP') @cache(Ertrag, time_expire=86400

[web2py] Re: 2.4.7 problems

2013-05-28 Thread BlueShadow
I just changet it from cache.disk to cache.ram and it works but I would prefer to put it on the disk and not to the ram. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this

[web2py] Re: edit static content from web interface nginx

2013-05-22 Thread BlueShadow
I'm using uwsgi and all files are owned by the default www-data user created by the install file for web2py nginx On Sunday, May 19, 2013 8:03:03 AM UTC+2, Calvin wrote: Check the file permissions for the static folder to see if it's own by uwsgi (if you're using that... or whichever wsgi)?

[web2py] edit static content from web interface nginx

2013-05-17 Thread BlueShadow
Hi, since I'm using nginx as a server I can't edit my static files (css, js...) from the webinterface. I can view them but when I want to edit them I get a 404 error. anyone with the same problem? -- --- You received this message because you are subscribed to the Google Groups web2py-users

Re: [web2py] user comments

2013-05-15 Thread BlueShadow
, marco mansilla wrote: El Tue, 14 May 2013 12:33:51 -0700 (PDT) BlueShadow kevin@gmail.com escribió: Hi, I like to add comments for users to my app. Is there a plugin which does all the work for me or do I have to develop it myself? It would be awesome if moderators could edit

[web2py] user comments

2013-05-14 Thread BlueShadow
Hi, I like to add comments for users to my app. Is there a plugin which does all the work for me or do I have to develop it myself? It would be awesome if moderators could edit or delete comments. -- --- You received this message because you are subscribed to the Google Groups web2py-users

[web2py] Re: mobile menu links won't work. %3Ca%20href=

2013-05-04 Thread BlueShadow
Hi, I got no clue what you mean by open a ticket. There is no error ticket generated for this. Am Samstag, 4. Mai 2013 00:04:15 UTC+2 schrieb Massimo Di Pierro: Please open a ticket about this. On Friday, 3 May 2013 15:43:29 UTC-5, BlueShadow wrote: Hi, I just discovered the my menu

[web2py] mobile menu links won't work. %3Ca%20href=

2013-05-03 Thread BlueShadow
Hi, I just discovered the my menu links don't work when one uses a mobile device. they work fine with firefox chrome (I haven't tested all the other browsers but I guess they work perfectly as well). but once the user agent is mobile and the menue changes to one big drop down menu all links

[web2py] Re: @cache decorator

2013-04-23 Thread BlueShadow
Just to wrap this up: So here is what I did to solve my problem (data is added once a day, time to render the result page takes forever): The function which gets the data got appended by: cache.disk.clear() and cache.ram.clear() I used the unix crantab to call that function once a day via a

[web2py] Re: app behaves radically diffrent on home PC (Windows) than on server(linux)

2013-04-22 Thread BlueShadow
Sorry for that I meant import datetime print datetime.datetime.now() I was typing faster than I could think. this throws the error. I edited it away in the original post. I tested that exact same code with thepython idle gui which works so if have typos they weren't there when I tested

[web2py] Re: app behaves radically diffrent on home PC (Windows) than on server(linux)

2013-04-22 Thread BlueShadow
so I found the error causing this error: type 'exceptions.AttributeError' type object 'datetime.datetime' has no attribute 'datetime' I had in my db.py from datetime import datetime and in one of my modules I had import datetime (and accordingly I used datetime.now() inside the app and

Re: [web2py] Re: app behaves radically diffrent on home PC (Windows) than on server(linux)

2013-04-22 Thread BlueShadow
windows pc: import sqlite3 In [2] : print sqlite3.version 2.6.0 In [3] : print sqlite3.sqlite_version 3.6.21 Linux import sqlite3 In [5] : print sqlite3.version 2.6.0 In [6] : print sqlite3.sqlite_version 3.7.9 on neither maschine is pysqlite2 installed. So I will try to

Re: [web2py] Re: app behaves radically diffrent on home PC (Windows) than on server(linux)

2013-04-22 Thread BlueShadow
now I got pysqlite (on my windows maschine) which has following versions In [6] : import pysqlite2.dbapi2 In [7] : print pysqlite2.dbapi2.version 2.6.3 In [8] : print pysqlite2.dbapi2.sqlite_version 3.7.6.2 but I don't know how to update sqlite3 -- --- You received this message because you

Re: [web2py] Re: app behaves radically diffrent on home PC (Windows) than on server(linux)

2013-04-22 Thread BlueShadow
I chose to disable WAL which seems to work. I had not a lot of time to test it I just commented my try: except Blog which enabled WAL in the test app. I will do some further testing tomorrow. Thanks Ricardo I got the newest version of python 2 so I guess I have to wait for python 2.7.5 and hope

[web2py] db select with rows

2013-04-21 Thread BlueShadow
I can't get my head around this problem it's probably easy but I ask anyway: I got rows(lets call them rowsA) from tableA and I want to select all items from another tableB which have one of the ids in tableA I could do it with a for loop selecting one at a time like so: for row in rowsA:

[web2py] app behaves radically diffrent on home PC (Windows) than on server(linux)

2013-04-21 Thread BlueShadow
Hi, I was developping my app for the last couple weeks directly on my server. now for my new functions I wanted some easy tests like using the print command and see it directly^^ So I package the app and put it on my windows PC (web2py 2.4.6-stable same as on Server (not the compiled version:

[web2py] search db partial string match

2013-04-20 Thread BlueShadow
I got a table like this one: db.define_table('Movie', Field('Title',length=64), Field('Content',length=512), ) Now I like to search this table Title with a string like Star Wars. My problem is that there are 6 Star Wars Movies: Star Wars: Episode I... I want to have all of those 6 as a

[web2py] Re: Cannot import module 'guppy', appadmin cache

2013-04-19 Thread BlueShadow
UTC+2, BlueShadow wrote: I did kill all processes remotly related to web2py an uswgi and the internet restarted all and the cache page still wont load without that error. On Thursday, April 18, 2013 11:08:14 PM UTC+2, Niphlod wrote: guppy has not been updated in a while, there are some

[web2py] costum error log

2013-04-19 Thread BlueShadow
Hi I got a custum error page which saves some of the data to give me a quick overview of the why those errors happen. it stores the error code the request.url and the useragent. my problem is I get a bunch of 400 errors. and I want to know what the users/bots typed in exactly. request_uri gives

Re: [web2py] Re: costum error log

2013-04-19 Thread BlueShadow
: given that you want a ready-to-use solution, can you give an example ? with /app/controller/function# you can't get what follows #, but the first is in requested_uri as it should be. On Friday, April 19, 2013 8:53:52 PM UTC+2, BlueShadow wrote: Thats no anchor thats the first random

[web2py] @cache decorator

2013-04-18 Thread BlueShadow
Hi I got a site which calls some major calculating. So I thought lets use the cache decoator to speed up second time loads. But it doesnt seem to have any effekt on pageloading times. @cache(returnDatestring()+Somepage, time_expire=86000, cache_model=cache. disk) def Somepage(): #some time

[web2py] Re: @cache decorator

2013-04-18 Thread BlueShadow
So you are basicly saying I did exactly what I wanted to do save the entire generated page on disk. So how can I find out what is taking so long for the page to load? @Derek: thats easy: I want the page cached from 00:05 to 23:59. because every day at midnight the data changes. if for some

[web2py] Cannot import module 'guppy', appadmin cache

2013-04-18 Thread BlueShadow
Hi, I wanted to get some information on my cache usage. so I went to the cache page in appadmin which worked fine at that moment but told me I need guppy in order to get the size of the cache. So I installed it. now I get an error page which tells me guppy cannot be imported. I restarted

[web2py] Re: Cannot import module 'guppy', appadmin cache

2013-04-18 Thread BlueShadow
I did kill all processes remotly related to web2py an uswgi and the internet restarted all and the cache page still wont load without that error. On Thursday, April 18, 2013 11:08:14 PM UTC+2, Niphlod wrote: guppy has not been updated in a while, there are some known bugs with the stable

[web2py] Re: response.menu links alt attribute and target=blank

2013-04-15 Thread BlueShadow
')) Note, in the second case, the third element can be any HTML helper object (including nested helpers). Anthony On Sunday, April 14, 2013 6:09:56 PM UTC-4, BlueShadow wrote: Hi, I like to be able to set some link attributes in my response menu: I want some links to open in a new tab

[web2py] @cache expire and load again at specific daytimes

2013-04-14 Thread BlueShadow
Hi, I'm loving the @cache decorator like this one. @cache(key, time_expire=100, cache_model=cache.disk) Now I have a very specific problem. I want to display some results of a testing machine which gives out huge amounts of data. 1MB CSV. which is after dropping the useless data still 200kB of

[web2py] Re: Is there a way to cache images from download function?

2013-04-14 Thread BlueShadow
So I changed my function to this: #7days @cache.client(time_expire=604800, quick='SVL') def fast_download(): session.forget(response) # very basic security (only allow fast_download on your_table.upload_field): if not request.args(0).startswith(db.Images): return download() #

[web2py] Re: @cache expire and load again at specific daytimes

2013-04-14 Thread BlueShadow
that value to the time_expire parameter. On Sunday, April 14, 2013 12:35:59 PM UTC+2, BlueShadow wrote: Hi, I'm loving the @cache decorator like this one. @cache(key, time_expire=100, cache_model=cache.disk) Now I have a very specific problem. I want to display some results of a testing machine

[web2py] Re: @cache expire and load again at specific daytimes

2013-04-14 Thread BlueShadow
, April 14, 2013 2:49:21 PM UTC+2, Niphlod wrote: it's 24 hours every day. the point is that you need to cache it for 86400 seconds only if it's 00:05 in the morning. if it's 00:10, you have to substract 300 seconds from 86400, and so on. On Sunday, April 14, 2013 2:46:16 PM UTC+2, BlueShadow

[web2py] Re: Is there a way to cache images from download function?

2013-04-14 Thread BlueShadow
It works like a charm. I used the stream function and that works too. #7days def fast_download(): session.forget(response) cache.client(time_expire=604800)(lambda: 0)() # very basic security (only allow fast_download on your_table.upload_field): if not

[web2py] response.menu links alt attribute and target=blank

2013-04-14 Thread BlueShadow
Hi, I like to be able to set some link attributes in my response menu: I want some links to open in a new tab: target=blank and I would love to set some alt atributes for the links in the response menu. Is that even possible? thanks -- --- You received this message because you are subscribed

[web2py] Re: performance issue time to first byte

2013-04-14 Thread BlueShadow
thanks to the awesome help of Ricardo Pedroso my performance increased by a factor of 100 (at least). Well what were the problems: first of all my vserver cpu is very slow. (600MHz 1 Core) Which is just rediculous in those times my mobile phone has a faster processor. apache-modwsgi-web2py

[web2py] Re: performance issue time to first byte

2013-04-10 Thread BlueShadow
https://lh4.googleusercontent.com/-I0kLdrEwQsY/UWVTmumUkSI/AAM/k5r4M6UFcwI/s1600/Waterfalldiagramm.png I played a little with mod_pagespeed which decreases everything but the ttfb. Here is my waterfall diagram: it doesn't look like a waterfall at all more like a drippling creek :( any

Re: [web2py] performance issue time to first byte

2013-04-10 Thread BlueShadow
Thanks Ricardo for that idea with curl. I did that 5 times the ttfb is almost the total time. the total time having 0 to 1 ms more than the ttfb. the average time is 201 ms which seems to me pretty big considering its a localhost request. when I did that test application(welcome app) I got an

Re: [web2py] performance issue time to first byte

2013-04-10 Thread BlueShadow
UTC+2, BlueShadow wrote: Thanks Ricardo for that idea with curl. I did that 5 times the ttfb is almost the total time. the total time having 0 to 1 ms more than the ttfb. the average time is 201 ms which seems to me pretty big considering its a localhost request. when I did that test

Re: [web2py] performance issue time to first byte

2013-04-10 Thread BlueShadow
thanks for all the suggestions I'm trying to work at one after the other: kompiling it made it a lot worse: http://www.webpagetest.org/result/130410_9P_14QQ/ the results now vary a lot from a total of 4 secs to over 11 secs. -- --- You received this message because you are subscribed to

Re: [web2py] performance issue time to first byte

2013-04-10 Thread BlueShadow
the images are cached with Expire header (access + 1 month) which works quite well. On Wednesday, April 10, 2013 9:39:14 PM UTC+2, Jonathan Lundell wrote: On 10 Apr 2013, at 12:34 PM, Anthony abas...@gmail.com javascript: wrote: In your homepage you are serving 10 images, at least, in

Re: [web2py] performance issue time to first byte

2013-04-10 Thread BlueShadow
one. Intriguing!! Anyway, you probably used the admin to compile the app? There is a menu entry Remove Compiled there, same place as the Compile was. On Wednesday, April 10, 2013 9:39:55 PM UTC+2, BlueShadow wrote: thanks for all the suggestions I'm trying to work at one after the other

Re: [web2py] performance issue time to first byte

2013-04-10 Thread BlueShadow
and (although it runs with uwsgi+nginx and is behind SSL) the max time of TTFB don't go over 150ms. On Wednesday, April 10, 2013 11:14:24 PM UTC+2, Ricardo Pedroso wrote: On Wed, Apr 10, 2013 at 8:39 PM, BlueShadow kevin@gmail.com wrote: thanks for all the suggestions I'm trying to work at one

[web2py] Add Expire headers ga.js

2013-04-09 Thread BlueShadow
Hi, I was wondering if you can set Expire headers to external files like the google analytics javascript file (ga.js) -- --- 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

[web2py] performance issue time to first byte

2013-04-09 Thread BlueShadow
Hi I'm trying to improve my pageloadtimes. And so far I'm doing pretty good. I decreased the number of quests by merging some css files and some javascript. I added expire headers to pretty much every file I serve. But the most time it takes to load a page is the time to first byte. I checked

  1   2   3   >