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
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
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
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,
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
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])),
|
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
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
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:
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
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'))
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
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
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
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
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
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
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
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 ??
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.
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
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
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
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
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
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(
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.
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
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
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
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
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
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 +
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 ?
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
I'm using Linux but does this work for you:
http://code.google.com/appengine/docs/python/images/installingPIL.html#windows
Kenneth
windows 7
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 ?
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 ???
It seams to have PIL installed. At least one server I just tested.
Kenneth
i am using Webfaction
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
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
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
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 !=
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:
(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
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
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();')
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
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
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
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
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
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
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
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
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
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:
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!
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
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
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
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
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
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.
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
#
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
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
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
-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
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
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
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
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
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
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
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
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.
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
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
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,
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
+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
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
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
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
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
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
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
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
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
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
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
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
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',
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
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
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
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?
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
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 - 100 of 395 matches
Mail list logo