Re: [web2py] Re: Load content from a text file

2013-08-17 Thread Kenneth Lundström
Hello, only one max two clients at a time will access this page. I don't even see why two clients would be accesing this page if not a supervisor wants to check on the progress of an worker. Jim, not quite sure how to do what you suggest. The serial communication is using an special

Re: [web2py] Re: Upgrading to 2.4.2. breaks virtual field

2013-04-08 Thread Kenneth Lundström
Hello, have tested 2.4.2., 2.4.5 and today 2.4.6 and still receiving the same error. Kenneth you're still using 2.4.2 or upgraded to 2.4.6? There were some changes, including bug fixes from one to another... 2013/4/8 Kenneth kenneth.t.lundst...@gmail.com

Re: [web2py] Re: Book app

2013-02-09 Thread Kenneth Lundström
Thank you. Kenneth https://github.com/mdipierro/web2py-book On Friday, 8 February 2013 23:51:57 UTC-6, Kenneth wrote: Hello, is the web2py online book app available as an appliance? I'd like to take a look for example on the database setup. Kenneth -- --- You received

Re: [web2py] Re: Auth with Wordpress

2013-02-08 Thread Kenneth Lundström
Yes, that could be the solution. Atleast as this only a temporary (I really, really hope so) way of doing this. Thank you. Kenneth I guess you could have wordpress set a cookie of some sort if they have access, and then use that cookie in web2py to control access. On Thursday, February 7,

Re: [web2py] Re: Auth with Wordpress

2013-02-07 Thread Kenneth Lundström
Hi Michael, Am I understanding you solution completly wrong but isn't it so that web2py asks WP if a username and password compination is OK. In my case customer first logs into a WP site, he gets a list of manuals he has paid for. When selecting a manual he wants to read he is sent to a

Re: [web2py] Re: webgrid and row_created

2012-12-17 Thread Kenneth Lundström
Hi Adi, very many thanks. That was exactly what I was looking for. Kenneth this is how i use onclick for confirmation purpose in a grid: | lambdarow:A('Copy', _class='btn', _onclick='return confirm(Duplicate %s?)'%row.po_number, _href=URL('duplicate_po',args=[row.id])), |

Re: [web2py] deploying web2py apache wsgi

2012-11-12 Thread Kenneth Lundström
Hi Kevin, web2py has nothing to do with the certificates and ports. Apache takes care on these things. The certificate is configured into Apache. When SSL is configured Apache will listen on port 80 och 443 as standard ports for http and https. I can post my Apache config later today when I

Re: [web2py] deploying web2py apache wsgi

2012-11-10 Thread Kenneth Lundström
Hi Kevin, the setup script does not change Apaches SSL configuration at all, if I remember correctly. So you need to configure your Apache to use SSL. You need to generate a self-generated certificate, if you havn't bought one. Kenneth Hi I used the setup-web2py-ubuntu.sh to install

Re: [web2py] Re: Legacy db / references

2012-10-14 Thread Kenneth Lundström
Wauu, thanks Bill. That was exact what was missing. I was looking in completly different directions. Anybody else reading this, the correct notation is: format=('%(asset_category_name)s') Kenneth I'm certainly no expert but I might try to define:

Re: [web2py] web2py integration with apache alongside PHP

2012-10-13 Thread Kenneth Lundström
Hi, the is no problems running both PHP and web2py side by side. If you're running Apache the easiest way of setting up web2py is to use a subdomain, like web2py.yourdomain.com, and vhosts in Apache. If you'd like a copy of one of my vhost files for a web2py site let me know and I'll send

[web2py] Legacy db / references

2012-10-13 Thread Kenneth Lundström
Hello, this is my first time trying to connect to a legacy database. My database models file looks like this: db.define_table('ref_asset_category', Field('asset_category_id', type='id'), Field('asset_category_name', type='string'))

Re: [web2py] Re: Google App Auth

2012-10-11 Thread Kenneth Lundström
Hi, the main question is that is it possible to authentication against Google Apps if the application is not on GAE? ImportError: No module named gluon.contrib.login_methods.gae_google_account I found out why I'm getting this. Because the file google.appengine.api is missing. This

Re: [web2py] Google App Auth

2012-10-08 Thread Kenneth Lundström
Hi again, does anyone know if it is possible to have two auth mechanism. Like Google App users and local users? Kenneth Hello everyone, I have an application where I'd like use an Google App account for authentication. The application will not reside on GAE. Is this possible? If I put

Re: [web2py] Google App Auth

2012-10-08 Thread Kenneth Lundström
I'll take a look. Any ideas why I get the: ImportError:No module named gluon.contrib.login_methods.gae_google_account Kenneth Look into gluon/contrib/login_methods/extended_login_form.py On Monday, 8 October 2012 07:48:04 UTC-5, Kenneth wrote: Hi again, does anyone know if it is

Re: [web2py] Re: confused with install on centos 5.7

2012-05-25 Thread Kenneth Lundström
Hi Jean-Pierre, did you test Toms directions, did it work? If not I can dig up my configurations files also. Kenneth I installed web2py with mod_wsgi on centos 5.2. I haven't used it extensively, but I did get it to work for a couple of my web2py applications. Instead of running the

Re: [web2py] Re: Soliciting freelance developers

2012-01-29 Thread Kenneth Lundström
If you havn't gotten a reply by Massimo by now you can email him directly. You can find his address on quite a few posts in this group. Kenneth How do I get my company listed on http://www.web2py.com/examples/default/support ? Now that I have two developers, and 2 designers working with

Re: [web2py] Re: web2py with Plesk Control Panel ?

2012-01-27 Thread Kenneth Lundström
On 26.1.2012 20:11, Ben Tammetta wrote: Ok, so if I install python 2.6 how do I tell apache, web2py, mod_wsgi and/or mod_python to use the python2.6 version ? If I remember right the only thing you need to do is install a 2.6 version of mod_wsgi. Kenneth

[web2py] dig command or something like that

2012-01-22 Thread Kenneth Lundström
Hello, I need to scan a list of domain names to find out the IP-address and DNS-server of that domain. I thought I'd run the dig command and parse the result. Is this possible or is there a better way for this? Kenneth

Re: [web2py] For trick

2012-01-16 Thread Kenneth Lundström
Please show us some code how you are doing it at the moment Kenneth Dear all , i am geting some images from the database and viewing them in the page i am using a for loop for the images and i want to have abr/ after every 4 images ,, how can i do somthing like this ??

[web2py] Row difference bug

2012-01-13 Thread Kenneth Lundström
Hello list, I got an Internal error and the problem is in a views file. And as we know row numbers in the source files is not the same as in the Error page. So I started looking at the error on the Error page and I think I found a bug in showing the code.

Re: [web2py] Forwarding domain to a port

2012-01-12 Thread Kenneth Lundström
A very simple way is to install Apache and use Apache as an proxy. Need about five rows in Apache config file to do this. I can send a copy little bit later if needed. Kenneth Hi everybody, I successfully instaled web2py on my VPS. However, I have problem to forward my domain to port

Re: [web2py] Re: html5 charting library

2012-01-12 Thread Kenneth Lundström
I don't have a clue of what is out there. My client talked about D3.js or Ext js but I don't know if there is any more. Kenneth can you provide a shortlist? I'd be happy to give them a try. On Jan 12, 7:40 am, Kennethkenneth.t.lundst...@gmail.com wrote: Hello, has anybody done any

Re: [web2py] Re: setup web2py with a virtual host on apache

2012-01-10 Thread Kenneth Lundström
ServerAlias www.domain.com or if you don't want to use localhost at all anymore you can replace ServerName localhost with ServerName www.domain.com Kenneth i did all that : LoadModule wsgi_module modules/mod_wsgi.so Listen 8080 servername : localhost:8080 NameVirtualHost *:8080

Re: [web2py] apache Error

2012-01-04 Thread Kenneth Lundström
Please check Apaches logs why starting Apache has failed. Kenneth Dear Guys, i am trying to deploy web2py using apache and mod_wsgi , i loaded mod_wsgi.so and i added this : NameVirtualHost *:443 VirtualHost *:443 DocumentRoot C:/web2py/applications ServerName server1 Directory

Re: [web2py] Create a New Simple Application clarification

2011-12-02 Thread Kenneth Lundström
If I remember correctly the wizard does not make a copy of the applications/welcome folder. Instead it uses the welcome.w2p file found in the root folder of your web2py installation. Kenneth I remember reading somewhere that creating a new application will clone the welcome app, I wonder if

Re: [web2py] How to use SQLFORM.factory to define a check box field with a list of values?

2011-12-01 Thread Kenneth Lundström
You either have an multi select select item in the form or then you need to make as many field as the is e-mail addresses. Either: form.factory( Field('addresses', requires = IS_IN_SET=[[u'John Doe', u'john_...@gmail.com'], [u'Mary Doe', u'mary_...@gmail.com']])) form.factory(

Re: [web2py] I cant start the web2py shell

2011-11-27 Thread Kenneth Lundström
Are you in the folder wher you have installed web2py? Kenneth I have tried to start the shell through windows dos prompt by typing: python web2py.py -s test -m and i get this: python cant open file web2py.py no such file or directory not sure why i cannot get this working.

Re: [web2py] Re: starting web2py with uwsgi problem.

2011-11-23 Thread Kenneth Lundström
Well I think it is said in the book that the rocket server is only for development. It is usually not recommended to run anything as root but no big problem. Kenneth Thanks for your replies. I eventually mangaged to find out the group and owner of the process that runs web2py. It is

[web2py] Attaching a file to a mail

2011-11-22 Thread Kenneth Lundström
Hello, in our web2py based billing application we generate PDF:s that are sent to customers. So far I have always saved the PDF onto my local computer and attached that to a mail. Now I'd like to develop the app so I could send the bill directly from the app. When the PDF is created it is

Re: [web2py] Attaching a file to a mail

2011-11-22 Thread Kenneth Lundström
Thank You. Works great now. Kenneth remove response.headers['Content-Type']='application/pdf' f.render(filename, dest='F') Ciao 2011/11/22 Kenneth Lundström kenneth.t.lundst...@gmail.com mailto:kenneth.t.lundst...@gmail.com Hello, in our web2py based billing application we

Re: [web2py] starting web2py with uwsgi problem.

2011-11-22 Thread Kenneth Lundström
Hi Peter, I'm using Apache and WSGI but this should work the same. I always run chown apache:web2py -R on an new application folder. Apache is the user that Apache is running as and web2py is the user (and group) that WSGI is running as. It is never good to run anything as root. Kenneth

Re: [web2py] Can web2py do shared IP hosting

2011-11-21 Thread Kenneth Lundström
Hi Rob, what webserver are you running right now? Kenneth Hi Phyo, Thanks for your response. My current environment is a dedicated server machine with a single web server which servers multiple web separate sites on sub-domains and dedicated IP addresses. The configuration at this level

Re: [web2py] Using Python Imaging Library(PIL)

2011-11-20 Thread Kenneth Lundström
I use it to create a thumbnail: def makeThumbnail(dbtable,ImageID,size=(150,150)): try: thisImage=db(dbtable.id==ImageID).select()[0] import os, uuid from PIL import Image except: return if thisImage.image == : return im=Image.open(request.folder +

Re: [web2py] Re: Using Python Imaging Library(PIL)

2011-11-20 Thread Kenneth Lundström
I don't understand what you mean. You don't need to do anything, this code works like it is. You have to of course have PIL installed? Kenneth i want to use this code but i dont know how to import the PIL ??? can you tell me how ?

Re: [web2py] Re: Using Python Imaging Library(PIL)

2011-11-20 Thread Kenneth Lundström
PIL is not installed in web2py, it is installed on the operating system. What operating system are you using? Kenneth i dont know how to install it

Re: [web2py] Re: Using Python Imaging Library(PIL)

2011-11-20 Thread Kenneth Lundström
I'm using Linux but does this work for you: http://code.google.com/appengine/docs/python/images/installingPIL.html#windows Kenneth windows 7

Re: [web2py] Re: Using Python Imaging Library(PIL)

2011-11-20 Thread Kenneth Lundström
Will not if PIL is not installed. Needs PIL on the host too. Kenneth i will try it , but when i upload my project to a host , how would the PIL work if its just installed to my PC ?

Re: [web2py] Re: Using Python Imaging Library(PIL)

2011-11-20 Thread Kenneth Lundström
Depends on the host. Do you have SSH access and can install things. If not have you tested if it already has it installed? Kenneth how do i install it in the host ???

Re: [web2py] Re: Using Python Imaging Library(PIL)

2011-11-20 Thread Kenneth Lundström
It seams to have PIL installed. At least one server I just tested. Kenneth i am using Webfaction

Re: [web2py] Re: Newbie - install on Apache not working...

2011-11-17 Thread Kenneth Lundström
Is the name of the configuration file correct, on Red Hat deratives only .conf are read by Apache (if not otherwise configured in httpd.conf)? Write some errors in the file, just add for example asdasd in the beginning of the file and try restarting Apache. If file read Apache should not be

Re: [web2py] Newbie - install on Apache not working...

2011-11-15 Thread Kenneth Lundström
Hi Derek, is this the first name based domain on the server? Do you have other name based webpages on the server? For some reason it sounds like Apache doesn't see this configuration and doesn't understand to use web2py. Kenneth While I can run web2py on my development machine (Ubuntu

Re: [web2py] hide functionality from non authenticated users

2011-11-15 Thread Kenneth Lundström
Whats wrong in what you just described? {{if c != None:}} Kenneth I want to do the following def some_function(): a = ... b = ... if auth.is_logged_in(): c = ... else: c = None return (a=a,b=b,c=c) And in the view some_function.html {{if c is not

Re: [web2py] Re: hide functionality from non authenticated users

2011-11-15 Thread Kenneth Lundström
Looks like a quite clean way. Kenneth There is nothing wrong, i just want to know if this is a clean way to do what i do above or there is a better way. Thodoris On Nov 15, 1:26 pm, Kenneth Lundströmkenneth.t.lundst...@gmail.com wrote: Whats wrong in what you just described? {{if c !=

Re: [web2py] Re: hide functionality from non authenticated users

2011-11-15 Thread Kenneth Lundström
I think it is safe but maybe waste of resources so send it to view if not needed. Kenneth If c is for example a form is it safe to return it but not display it in the view?? On Nov 15, 2:01 pm, Anthonyabasta...@gmail.com wrote: You can test for a logged in user via: if auth.user:

Re: [web2py] Newbie - install on Apache not working...

2011-11-15 Thread Kenneth Lundström
(As a small footnote, I have seen that most tutorials and directions for web frameworks start with installing on a new/clean machine, which is very frustrating because 95% of the time that is simply not the case...) I think the reason is quite simple, it's very hard, if not impossible, to

Re: [web2py] Mixing/supporting CMS with Web2py

2011-11-08 Thread Kenneth Lundström
I'm also very interested in getting more CMS functions into web2py. I can help with: - testing - server resources if needed - setting up bugtracker, wikipage I think a own mailinglist and a wiki page first. Very soon a bugtracker. Maybe a web2py based bugtracker. Kenneth I

Re: [web2py] Re: nyroModal

2011-11-04 Thread Kenneth Lundström
Hi Russell, Have you defined nyroModalRemove somewhere? I'm getting parent.$.nyroModalRemove is not a function when using your suggested three lines. Kenneth return_script = ['parent.$.nyroModalRemove();'] return_script.append('parent.window.location.reload();')

[web2py] nyroModal

2011-11-01 Thread Kenneth Lundström
Hi, I'm using nyroModal to open a SQLFORM in a modal window. When I submit the form I want to the modal window to close and the parent window to refresh. Is this possible? Kenneth

[web2py] Wordpress and web2py

2011-10-30 Thread Kenneth Lundström
Hi listmembers, a client of mine asked if Wordpress and web2py could be combined somehow. He has an Wordpress website and wants to continue using but has some specifiec needs that he would like to be solved with web2py. So when a user logins he does it in Wordpress, then he wants to look at

Re: [web2py] Croatian translation (was Re: bg-bg.py (Bulgarian translation))

2011-10-16 Thread Kenneth Lundström
touch hr-hr.py and then selecting hr-hr from the admin, but I notice that hr-hr.py is significantly smaller (4473b vs. 14460b for it-it.py) than the rest of the files and hr-hr is missing some strings (e.g. 'web2py upgraded; please restart it'). Why is it so? Is there some FAW how to

Re: [web2py] Re: Croatian translation

2011-10-16 Thread Kenneth Lundström
The point is that I cannot locate en-en.py file? Sincerely, Gour Hmmm, me neither. I thought there was always a en-en.py or en.py file but it seams I thought wrong. Kenneth

Re: [web2py] Re: confused with install on centos 5.7

2011-10-14 Thread Kenneth Lundström
Hi Lucas, if's possible try Centos 6. I just tried. Installed Apache with 'yum groupinstall Web Server', disabled selinux (or configure it), unzipped web2py.zip src file, configured Apache and 'apachectl start'. Voila it works. Kenneth CentOS 5 uses an old ver of python I believe but I

Re: [web2py] Re: confused with install on centos 5.7

2011-10-14 Thread Kenneth Lundström
If you need the Apache configuration file send me an email and I'll mail it to you. Kenneth Hi Lucas, if's possible try Centos 6. I just tried. Installed Apache with 'yum groupinstall Web Server', disabled selinux (or configure it), unzipped web2py.zip src file, configured Apache and

[web2py] Webfaction and SMTP

2011-10-10 Thread Kenneth Lundström
Hi web2py users, does anybody use Webfaction as hosting and use Webfactions SMTP servers to send mail? What settings are you using? I can´t web2py to send mails from Webfaction. Kenneth

Re: [web2py] Webfaction and SMTP

2011-10-10 Thread Kenneth Lundström
Many thanks Vasile, I´m 100% sure I tested the same setting many times before, but no luck. Now I copied your settings and voila it works. It´s sometimes so frustrating to search for errors and after hours of searching it just works without finding what was wrong. But I guess thats the life

Re: [web2py] Re: Localhost and web2py

2011-10-09 Thread Kenneth Lundström
Do you have anything else running on that webserver? If you had only Seaside before all defaults where pointing to Seaside but after taking web2py into your configuration files and depending on in what order different settings where loaded some default settings might have changed and not

Re: [web2py] web2py book version

2011-10-09 Thread Kenneth Lundström
If I have understood correctly the online book always, we a small delay, reflect the newest version. But as the manual is called a book it might not always be obvious. Kenneth Hi guys, Just spent several frustrated hours trying to figure why the following line: if form.process().accepted:

Re: [web2py] who wrote grafpad?

2011-10-08 Thread Kenneth Lundström
http://groups.google.com/group/web2py/browse_thread/thread/dd0b2b7d67bed3db/81bbec475a1e7102?lnk=gstq=grafpad#81bbec475a1e7102 tells a lot about it. Kenneth http://www.grafpad.com/ it is listed under http://web2py.com/poweredby congratulations!

Re: [web2py] Deploying single web2py applications in Debian

2011-09-29 Thread Kenneth Lundström
Every application is in it´s own folder already. With routes.py you can specify which domain(subdomain) belongs to which application. Admin is not separate, so you have one admin for all applications. Kenneth Hi all, I was wondering what would be the preferred method for

Re: [web2py] Re: Enable request_reset_password

2011-09-28 Thread Kenneth Lundström
I´m still trying to troubleshoot this error. If I look at auth.settings.mailer it says it is empty. How come? In my models file if have auth.settings.mailer=mail I added to tools.py in gluon: return self.settings.mailer under def request_reset_password( so no wonder it says function is

Re: [web2py] Re: Enable request_reset_password

2011-09-28 Thread Kenneth Lundström
Yes, a couple of rows before that I have mail=Mail(). But now I found it. I have splitted db.py into four different files. For some strange reason I had auth=Auth(globals(),db) twice, I removed the second one and now everything works. Thanks to everyone helping me. Kenneth Have you

[web2py] Redirect

2011-09-26 Thread Kenneth Lundström
Hello, I´m trying to build a random redirect application. Users selects from a number of links which to use. User has an address and folder, lets say www.redirecters.com/folder1, user2 has folder2. When somebody goes to folder1 my application should be able to by randon redirect that person

[web2py] Changing header picture

2011-09-25 Thread Kenneth Lundström
Hello, I have built an combined internet and intranet application for an customer. Internet pages are modified by an very, very CMS that I have built. Layouten is simple, header picture, meny on the left and content to the right. Yesterday customer asked if it would be possible to change

[web2py] Enable request_reset_password

2011-09-22 Thread Kenneth Lundström
Hi list members, I have disabled the request_reset_password function somehow. What different ways are there to disable this? Everytime I visit the default/user/request_reset_password I get an Function disabled Flash. I have this, but should not have anything to do with this.

Re: [web2py] Re: Enable request_reset_password

2011-09-22 Thread Kenneth Lundström
I have: auth=Auth(globals(),db) # authentication/authorization mail=Mail()# mailer mail.settings.sender='m...@email.address.com' # your email mail.settings.server='logging' #calhost:25'# your SMTP server #

Re: [web2py] I can't update language files

2011-09-21 Thread Kenneth Lundström
Have you tried to update your language from the admin application? Or how are you updating the language file? Kenneth Hello, I've tried to edit my language files but my changes are all the time overwritten when user logs off. For example, on my menu.py I have: (T('Adm

Re: [web2py] Re: I can't update language files

2011-09-21 Thread Kenneth Lundström
Never used web2py on Windows so I guess we have to wait for somebody with web2pyWindows expert. My first thought is the web2py doesn´t notice/see that there excites an es-es.py file already and copies the english over it. But that doesn´t help you very much. Sorry. Kenneth I don't know

Re: [web2py] Re: billing app

2011-09-16 Thread Kenneth Lundström
2011 00:07:30 +0300 Kenneth Lundström kenneth.t.lundst...@gmail.comwrote: if you want a copy of the code I can send it, or if somebody else wants a copy let me know. +1 gour at atmarama dot net Sincerely, Gour

Re: [web2py] Re: billing app

2011-09-13 Thread Kenneth Lundström
-Gadadhara Dasa wrote: On Tue, 13 Sep 2011 00:07:30 +0300 Kenneth Lundström kenneth.t.lundst...@gmail.com wrote: if you want a copy of the code I can send it, or if somebody else wants a copy let me know. +1 gour at atmarama dot net Sincerely, Gour

Re: [web2py] Re: billing app

2011-09-12 Thread Kenneth Lundström
Now you can have a look at it at http://web2py.nudata.fi/em Login with kenneth and kenneth This is an application for a very small firm, three part-time IT-supporters. FRONTPAGE: summary of all kind of data. a) how many unpaid receipts b) how much money every person has

Re: [web2py] support-ticket plugin

2011-09-12 Thread Kenneth Lundström
the source? Martin 2011/9/9 Martin Weissenboeck mweis...@gmail.com mailto:mweis...@gmail.com Hi Kenneth, thank you! 2011/9/9 Kenneth Lundström kenneth.t.lundst...@gmail.com mailto:kenneth.t.lundst...@gmail.com Hi Martin, in my billing/customer/product

Re: [web2py] Re: billing app

2011-09-12 Thread Kenneth Lundström
Hi Nikolai, if you want a copy of the code I can send it, or if somebody else wants a copy let me know. The code is a mess in places and for the moment I don't have time to clean it up. I could opensource it when it's cleaned. There no point in waiting for it to be ready, it's a work in

Re: [web2py] support-ticket plugin

2011-09-09 Thread Kenneth Lundström
Hi Martin, in my billing/customer/product application I have a simple ticket system. It would be easy to use only the ticket part if needed. I´m going to put up an english version of the application during the weekend. Then you can look at it. Kenneth Hi, does somebody knows a plugin

Re: [web2py] billing app

2011-09-08 Thread Kenneth Lundström
Hello Nikolai, I have created a simple billing application that contains customers, products, hour tracker (simple) and receipt handling. If interested I could during the weekend put up a english version of it (Well swedish too it thats better) so you can check it out. Kenneth is there

Re: [web2py] select box size (height) : how to change in View

2011-09-08 Thread Kenneth Lundström
This is just a wild guess but I think CSS is doing it. Kenneth I wish to render a select box with size=3 sothat it will display 3 items (instead of default size 1) I specified it in View as under-- form id= ...etc. select id=x name=y size=3 optionopt1/option optionopt2/option

[web2py] nyroModal to edit a form in a modal window

2011-09-08 Thread Kenneth Lundström
Hi listmembers, I have created a page that contains a list of customers. Every row has an link to edit it. This link opens a modal window with nyroModal. But how do I change the size of the modal window? Kenneth

Re: [web2py] Why multiple controllers, models, and what to do with them?

2011-09-08 Thread Kenneth Lundström
I am new to web2py (I've been using Django), and I am confused about a couple of things. Welcome to web2py. First, the presence of multiple controllers. Every time a function in the controller is called the whole file is compiled. By having smaller controller you get an faster application.

Re: [web2py] routes.py

2011-08-26 Thread Kenneth Lundström
On 26.8.2011 7:57, Jonathan Lundell wrote: On Aug 25, 2011, at 9:28 PM, Kenneth Lundström wrote: On 26.8.2011 5:21, Jonathan Lundell wrote: On Aug 25, 2011, at 4:48 PM, Kenneth Lundström wrote: I'd like to have three types of routings: a) web2py.main_domain.comdefaults to init, but you

Re: [web2py] Access Admin Interface via http without SSL or SSH

2011-08-26 Thread Kenneth Lundström
I am not sure whether I should try setting up a virtual host for *443? If you´re running your web2py instance on an virtual host you have to have the virtual host directive for 443 too. I could send you my virutla host file. Kenneth

[web2py] routes.py

2011-08-25 Thread Kenneth Lundström
I'd like to have three types of routings: a) web2py.main_domain.comdefaults to init, but you can choose the application with web2py.main_domain.com b) testing.main_domain.com leads to application: testing c) development.main_domain.comleads to application: testing,

Re: [web2py] routes.py

2011-08-25 Thread Kenneth Lundström
On 26.8.2011 5:21, Jonathan Lundell wrote: On Aug 25, 2011, at 4:48 PM, Kenneth Lundström wrote: I'd like to have three types of routings: a) web2py.main_domain.comdefaults to init, but you can choose the application with web2py.main_domain.com b) testing.main_domain.com leads

Re: [web2py] Re: table, grid, smartgrid, getting better

2011-08-22 Thread Kenneth Lundström
+1 for modal option. Why not make it optional. Kenneth On Sunday, August 21, 2011 11:10:23 PM UTC-4, pbreit wrote: That seems unnecessary to me. Easy enough to command-click a link to open in a new tab/window. I think most users won't know/bother to command-click, so a modal might

[web2py] PyCon Finland 2011

2011-08-22 Thread Kenneth Lundström
Anyone planing to visit the European Capital of Culture a.k.a. Turku on 17-18.10 and maybe visiting PyCon Turku at the same time? Kenneth

[web2py] Re: PyCon Finland 2011

2011-08-22 Thread Kenneth Lundström
And the address is: http://fi.pycon.org/2011/ Anyone planing to visit the European Capital of Culture a.k.a. Turku on 17-18.10 and maybe visiting PyCon Turku at the same time? Kenneth

Re: [web2py] Opposite of required... for field?

2011-08-19 Thread Kenneth Lundström
Is there a way to have a required_not_to_be_specified setting for a field? You can change the writable and readable atributes, either in the model or in controller. Kenneth

Re: [web2py] Trying to do Massimo's Poll Django video tutorial but getting this traceback error. Please explain!

2011-08-09 Thread Kenneth Lundström
Please send the whole default.py as I don't think do problem is on that line you showed. Kenneth Can somebody please explain what the issue is. Its this video at 9.34: http://vimeo.com/6507384 TRACEBACK Traceback (most recent call last): File gluon/restricted.py, line 192, in

Re: [web2py] deploying few web2py sites

2011-08-07 Thread Kenneth Lundström
I believe that we'll settle on Web2py (over Django) for our future web needs (moving from PHP to Python) and I'm not 100% clear how does deployment with Web2Py go...iow, does one install one instance of web2py and install specific app for each site, e.g. {app1,app2,app3} or it is required to

Re: [web2py] Where to put the .htaccess file

2011-08-07 Thread Kenneth Lundström
I want to force www in front of the url and i modify the .htaccess file to do so and now I wonder where to put that file. I tried to put it in the web2py/apps directory, in the web2py/apps/views directory, in the web2py/ directory but none of them works. I'm using apache as webserver. Please

Re: [web2py] Re: Where to put the .htaccess file

2011-08-07 Thread Kenneth Lundström
Well I tried to put the same code in httpd.conf file but it doesn't work, I have a Syntax Error when restarting apache because the command RewriteEngine is not recognized. Do you have this line in the httpd.conf file: LoadModule rewrite_module modules/mod_rewrite.so Without it, it won't

[web2py] socket.error

2011-08-04 Thread Kenneth Lundström
Version web2py™ Version 1.98.1 (2011-07-31 10:15:50) Traceback (most recent call last): File /data/domains/gluon/main.py, line 506, in wsgibase BaseAdapter.close_all_instances('commit') File /data/domains/gluon/dal.py, line 373, in close_all_instances getattr(instance,action)() File

Re: [web2py] About passwords security in web2py

2011-08-03 Thread Kenneth Lundström
what do i tell in my company to convinve them to use web2py apps without fearing that i as administrator cannot discover their password? Sounds like you will have to lie to them as you can always as a developer change the code so that a copy of passwords is stored as clear text. At the

[web2py] Upgrading from 1.91.4 to 1.98.1

2011-08-02 Thread Kenneth Lundström
I tried to upgrade a development server from 1.91.4 to 1.98.1 and now I get these tickets: Version web2py^(TM) Version 1.98.1 (2011-07-31 10:15:50) Traceback (most recent call last): File /data/domains/gluon/restricted.py, line 192, in restricted exec ccode in environment File

Re: [web2py] Upgrading from 1.91.4 to 1.98.1

2011-08-02 Thread Kenneth Lundström
That's a really odd model. Usually it would look like this: 462 db.define_table('returning_revision', 464 Field('returning', db.returning)) 2,5 years, but this is not the first revision definition, maybe 30:th. Kenneth

Re: [web2py] Re: Upgrading from 1.91.4 to 1.98.1

2011-08-02 Thread Kenneth Lundström
Here´s the definition: db.define_table('returning', db.Field('troop', db.troop, required=True), db.Field('campaign', db.campaign, required=True), db.Field('type', 'string', length=2, default='', requires=IS_IN_SET(['', 'r', 'c', 'd', 'p'])), db.Field('edited_by',

Re: [web2py] Web2py traffic to web2py.com and twitter

2011-08-02 Thread Kenneth Lundström
Atleast admin get web2py version from web2py.com and get discussion from Twitter. Kenneth hello, my firewall detects that my we2py server is constantly connecting to twitter and web2py The connection is blocked by the firewall. is this normal? thank you

Re: [web2py] Fwd: Server slow

2011-08-02 Thread Kenneth Lundström
Sorry, meant this discussion: http://groups.google.com/group/web2py/browse_thread/thread/c6bc090c04b323ed/b2e8ec8a2d5d0786?lnk=gstq=server+slow#b2e8ec8a2d5d0786 Database: MySQL, server Apache 2.2.3 on CentOS and web2py version 1.98.1 Kenneth Getting back to this discussion. I have a table

Re: [web2py] Fwd: Server slow

2011-08-02 Thread Kenneth Lundström
Can you run the query directly against the db to compare? Do you have the debug tool displaying at the bottom of the page that shows how long he query took? t3=time.time() testar = db(db.tracker_person_product.id).select() t4=time.time() logging.info('query

Re: [web2py] Fwd: Server slow

2011-08-02 Thread Kenneth Lundström
On 2.8.2011 15:54, Anthony wrote: On Tuesday, August 2, 2011 8:44:52 AM UTC-4, Kenneth wrote: Can you run the query directly against the db to compare? Do you have the debug tool displaying at the bottom of the page that shows how long he query took?

Re: [web2py] web2py 1.98.1 is OUT

2011-07-31 Thread Kenneth Lundström
I tried from admin upgrade to 1.98.1 and got this ticket: web2py™ Version 1.98.1 (2011-07-31 10:15:50) Python Python 2.6.5: /usr/bin/python Traceback (most recent call last): File /data/domains/web2py/gluon/main.py, line 513, in wsgibase session._try_store_on_disk(request, response) File

Re: [web2py] Re: web2py/python question

2011-07-29 Thread Kenneth Lundström
On 29.7.2011 2:05, pbreit wrote: Is it possible that you have the string None in the DB? No, I have NULL when looking from mysql client. Kenneth

  1   2   3   4   >