[web2py] SQLFORM into a pop window

2010-12-27 Thread Kenneth Lundström
Does anybody have a example of how to make a sqlform open up in a popup window? Kenneth

[web2py] Re: A bug or am I doing something wrong

2010-12-27 Thread Kenneth Lundström
Any thoughts about this one? Kenneth Aapche 2, wsgi, MySQL 5.0, web2py 1.91.4, python 2.6.5 I have defined in my model: Field('f_total_sum_all', type='decimal', label=T('Total Sum')), Even float gives the same error. Only integer works. Version web2py™ Version 1.91.4 (2010-12-22 17:31:23)

Re: [web2py] SQLFORM into a pop window

2010-12-27 Thread Kenneth Lundström
Thank you Bruno, my first thought when I tested it was that this doesn´t work at all, but now I see that it works quite nice. Kenneth Attached is an app which opens a form in a modal box. 2010/12/27 Kenneth Lundström <mailto:kenneth.t.lundst...@gmail.com>> Does anybo

Re: [web2py] Problems in web2py 1.83.2

2010-12-29 Thread Kenneth Lundström
If I remember correctly there was something about this on the list. I think you use the URL the wrong way and until version 1.83.2 the helper worked wrongly. In your case it "worked" but it has been corrected and it doesn´t work anymore. Try something like URL(c='account', f='log_in') Kenne

Re: [web2py] Problems in web2py 1.83.2

2010-12-29 Thread Kenneth Lundström
repairs that bug your application stops working. Kenneth 2010/12/29 Kenneth Lundström : If I remember correctly there was something about this on the list. I think you use the URL the wrong way and until version 1.83.2 the helper worked wrongly. In your case it "worked" but i

Re: [web2py] Problems in web2py 1.83.2

2010-12-29 Thread Kenneth Lundström
I guess not even web2py is perfect. Maybe some day. Kenneth 2010/12/29 Kenneth Lundström: If your are using a bug and somebody repairs that bug your application stops working. I agree completely. However, it's a tricky situation if you insist on ever-backwards-compatible. You

Re: [web2py] Re: Powertable remarks

2010-12-29 Thread Kenneth Lundström
Hi Bruno, waauu what a Plugin your working on, very nice. What does the productdetails function look like? Kenneth Hi, Thank you for testing, it is more updated in bitbucket. Now it has search by column and a test version of server side processing. If you want to change the pager do: plu

Re: [web2py] Job: Web2py expert wanted

2010-12-30 Thread Kenneth Lundström
They probably never heard about experts4solutions.com or they want to use functions provided but Odesk. Kenneth Why don't these guys use Experts4solutions :/ BR, Jason Brower On Thu, Dec 30, 2010 at 6:03 AM, Bruno Rocha > wrote: http://www.odesk.com/jobs/

Re: [web2py] Re: Python job oportunity

2010-12-30 Thread Kenneth Lundström
Maybe they need perfect English as the don´t have it? Kenneth On Dec 29, 8:29 pm, Bruno Rocha wrote: for me it worked very well. Same. One thing that bothers me is that they require perfect English, apparently, but fail several times themselves: 'Internship at i2Mobile, in Oeiras. We want

[web2py] Rows to a TABLE

2010-12-30 Thread Kenneth Lundström
Hello list, what would be the easiest way to display a Rows object as an table with some additional info. rows = db(db.items.order = order.id).select() gives 3 rows and 10 fields. total = 0 for row in rows total += rows.sum That I´d like to display data as: Item 110.50delete

Re: [web2py] Rows to a TABLE

2010-12-30 Thread Kenneth Lundström
Thanks Bruno, I needed a very simple table no extra layout so I did it with table = TABLE() for row in rows: table.append(TR(row.name, rows.sum, A(.)) table.append(TR('Total', total)) Kenneth I did it with powerTable plugin, see what I did. def deletable(): class Virtual(object

Re: [web2py] Re: Powertable remarks

2010-12-30 Thread Kenneth Lundström
I´m still trying to understand the power of powerTable and copied code from your default.py example, I tried to get the products function working. What I can´t seem to get working is the virtual bit. I get KeyError: 'virtual' any ideas why? Kenneth 2010/12/29 Kenneth

Re: [web2py] Re: Powertable remarks

2010-12-30 Thread Kenneth Lundström
k this works in this way because you are defining virtualfields after the Rows object. If you do it before with: db.table.virtualfields.append(someClass()) it works in another way. Take a look at virtual fields on the book: http://web2py.com/book/default/chapter/06#Virtual-Fields Bruno 201

Re: [web2py] Proposal for login /gluon/tools.py)

2011-01-01 Thread Kenneth Lundström
Happy New Year to everybody. I vote for alternative two. Kenneth Hi, the label "Remember me (for 30 days)" and the checkbox look not very nice, because both are in the same column and there is no space betwenn the checkbox and the label: Login Username: Password:

[web2py] Sharing fields across form

2011-01-01 Thread Kenneth Lundström
Hello, is it possible to share fields and create a form with multiple submit buttons. Example: Description: (same for both forms) Product: (specific for form one) Hours: (specific for form two) Submit product Submit hours Depening on which button you press different tables should be used.

[web2py] SQLFORM bug or?

2011-01-02 Thread Kenneth Lundström
Hello, if I make SQLFORM(db.order, order.id) I get: Id: 3 Name: whatever Customer: drop down list with correct customer name shown as default if I change it form to readonly by SQLFORM(db.order, order.id, readonly=True) Id: 3 Name: whatever Customer: None shouldn´t the correct customer name

[web2py] SQLTABLE question

2011-01-02 Thread Kenneth Lundström
I guess this question is related to the other question is just sent. If I make a SQL query: customer = db(db.customer.id > 0).select() and then return it with, return customer, and have no view, web2py will show all records as an SQLTABLE, correct? Why is all reference fields shown as None. B

Re: [web2py] Re: SQLFORM bug or?

2011-01-02 Thread Kenneth Lundström
> Is readable & writable properties set on customer field in order table? The only thing I change is the readonly parameter when creating the form with SQLFORM. models file is not changed or anything else. Where can I see the readable and writable set of the customer field? Kenneth

Re: [web2py] Number of records

2011-01-02 Thread Kenneth Lundström
If you only want to display a number I guess virtual fields is what you need. Look at http://www.web2py.com/book/default/chapter/06?search=virtual#Virtual-Fields Kenneth Hi, In addition to the records that are submitted with a SQLFORM, I want to give each record a specific "identification" n

[web2py] Fwd: Sharing fields across form

2011-01-03 Thread Kenneth Lundström
Does anybody have any ideas about sharing form fields across 2-3 forms? Kenneth Original Message Subject:Sharing fields across form Date: Sat, 01 Jan 2011 16:17:13 +0200 From: Kenneth Lundström To: web2py@googlegroups.com Hello, is it possible to share

[web2py] Multiple forms on one page

2011-01-03 Thread Kenneth Lundström
I´m not sure is this even possible but hopefully is, I´d like to have a number of small forms on one page, the number depends on how many rows a query returns. I can do: bill_items = db(db.t_bill_item.f_bill == bill['id']).select() bill_items_forms = {} for item in bill_items: bill_items_f

Re: [web2py] Temporary changing default values of a Form

2011-01-04 Thread Kenneth Lundström
There is atleast two other ways of doing this in the controller on-the-fly. Before you create the FORM object you can do: db.table.field.default = 0 (you temporarly change what you have defined i models) or after you have created the FORM but before if form.accepts form.vars.field = somethin

Re: [web2py] Unknown Ticket

2011-01-05 Thread Kenneth Lundström
If I remember right Unknown ticket is displayed when web2py/webserver is not able to write a ticket into ticket directory. Kenneth Hi, some of my users have encountered a weird error on my mock production server. They get the following ticket when the first page (login) tries to load: Inte

[web2py] Ticket, do not understand why

2011-01-06 Thread Kenneth Lundström
What is wrong with this row: bill_sub_items[item_id]['items'] = db(db.t_receipt_item.f_bill_item == item_id).select() If I use the exact same row with an other query it works. Apache, Mysql, mod_wsgi Version web2py™ Version 1.91.6 (2011-01-03 17:55:14) Python Python 2.6.5: /usr/bin/python Tra

[web2py] Getting the field value of a form field

2011-01-08 Thread Kenneth Lundström
Hello, I´m creating a form with SQLFORM(db.t_order, order_id) so I get a form with values. As the data has been queried from the database I´d like to get a value from one of the fields a do some customization based on it. But how do I get the value of field f_sum from the form? Kenneth

Re: [web2py] Re: Inserting additional fields in crud

2011-01-10 Thread Kenneth Lundström
Is this what your looking for: http://groups.google.com/group/web2py/browse_thread/thread/a0566bf740023b1/41eadc3ba1b53176?lnk=gst&q=form+append#41eadc3ba1b53176 Kenneth I've tried using SQLFORM and adding additional fields by simply adding html inputs. The fields are not accessible via form.v

[web2py] Email gateway

2011-01-10 Thread Kenneth Lundström
A gateway that works the other way. Instead of sending emails from web2py I´d like to receive emails. I´m working on a app where you upload PDF:s containing receipts. Those PDF:s are usually scanned in a photocopier that emails the PDF to your email. Then you have to login in to my app and upl

[web2py] jquery.tools.min.js

2011-01-10 Thread Kenneth Lundström
A while ago I got an app from Bruno with an example app showing how to open a modal window. It works great in the example but when I copied it to my own app I couldn´t get it working. After some debugging I found out that I need to include the jquery.tools.min.js file. The only way I could g

Re: [web2py] jquery.tools.min.js

2011-01-10 Thread Kenneth Lundström
Yes, I tried to load it as number 1 first, but I´ll try again some other places. Thank you for your answer. Kenneth Sometimes it is just the order of loading: did you try to change the order i.e. the "3" to something else? hope it works! mic 2011/1/10 Kenneth Lundström: A while

Re: [web2py] Email gateway

2011-01-10 Thread Kenneth Lundström
the built in modules: from poplib import * or from imaplib import * I used poplib to get raw text messages, but I never get attached files, but I guess it can do it. 2011/1/10 Kenneth Lundström <mailto:kenneth.t.lundst...@gmail.com>> A gateway that works the other way. I

Re: [web2py] jquery.tools.min.js

2011-01-11 Thread Kenneth Lundström
Thank You Ron for your answer, it was exactly spot on, I used the jquery.tools.min.js that came with the example app and it was old. I downloaded the newest version and now I load jquery.js and jquery.tools.min.js and everything looks like its working now. Kenneth Which version of jquery.t

[web2py] Upload field

2011-01-11 Thread Kenneth Lundström
I´m trying to find out how form.accepts handles the uploading of files (for my mail gateway) and made a form form=SQLFORM.factory(Field('text','string'), Field('upload','upload')) When I submit a form I get a ticket stating "you must specify a Field(...,uploadfolder

Re: [web2py] Re: Problems to exclude the field "id" from the jqgrid (using plugin_wiki)

2011-01-11 Thread Kenneth Lundström
If I remember correctly the Id field has to be included but you can hide it? Kenneth - Ursprungsmeddelande - > yes > > On Jan 11, 6:00 am, Lisandro wrote: > > I have the following model: > >     db.define_table('ciudadanos', Field('tipo'), > > Field('nro_documento'), Field('valor')) >

Re: [web2py] Re: Apache, Wsgi problem

2011-01-11 Thread Kenneth Lundström
I'm getting the same Premature end of script on a CentOS 5.?, MySQL, WSGI and Apache. Never done any stresstests, I'll try later to day. Kenneth - Ursprungsmeddelande - > Update: > > + There seems to be no web2py error.  Thus, no traceback. > > + I don't remember if I got this error

Re: [web2py] Re: Apache, Wsgi problem

2011-01-12 Thread Kenneth Lundström
I can´t be sure which application it is. But Iĺl do some stresstests later today and report more. Kenneth could this be a timeout issue? Could it be the app causes a deadlock in the db? What app is this? On Jan 11, 10:58 am, Kenneth Lundström wrote: I'm getting the same Premature e

[web2py] Bugreport

2011-01-12 Thread Kenneth Lundström
I´m working on a new application which I created with the online wizard. I just created a new record and then updated it via those crud forms which are created for all tables. This tabel was created by hand by editing the database models file and then I copied those crud forms too. But when

Re: [web2py] experts

2011-01-12 Thread Kenneth Lundström
Look at the list on www.experts4solutions.com), select an expert and contact directly. Kenneth To Massimo: what is the procedure to utilise the experts, please layout the procedure. I will have a task in shortly.Debebe

Re: [web2py] list:reference update

2011-01-12 Thread Kenneth Lundström
I might be completly wrong but shouldn´t it be like this: db.define_table('person', Field('name'), Field('groupe', 'list:reference groupe')) db.define_table('groupe',Field('groupname')) db.groupe(db.person.id<3).update(groupe=1) If one users can be in many groups you get a many-to-many relation

Re: [web2py] Re: Error using setup-web2py-ubuntu.sh on Linode

2011-01-12 Thread Kenneth Lundström
To fix the "Could not realiably determine." you have to add a ServerName line to your Apaches httpd.conf file. Without that Apache does not know what name to use. Kenneth Any post in particular you're pointing to? I looked at several, and they didn't work. At the end of the install scr

[web2py] About bugreports

2011-01-13 Thread Kenneth Lundström
Hello everybody, for the past month I have sent maybe 3-4 bugreports to this list, but so far only 1 of them have been answered. It feels a litte bit stupid to send those reports without getting any responce. Am I sending them to the wrong place or are they so simple that I should be able to s

Re: [web2py] About bugreports

2011-01-13 Thread Kenneth Lundström
But if you let the wizard create your tables you have the ID field in your models file. Like I have db.define_table('t_payment_receiver', Field('id','id', represent=lambda id:SPAN(id,' ',A('view',_href=URL('payment_receiver_read',args=id, Field('f_name', type='string', label=T('Nam

Re: [web2py] query for an empty field

2011-01-13 Thread Kenneth Lundström
== None == '' If I understood your question. Kenneth How do you search for records where a field is empty? I can't find the operator for this.

Re: [web2py] About bugreports

2011-01-14 Thread Kenneth Lundström
> RE bug reports: there is also google code to post bug reports to: http://code.google.com/p/web2py/issues/list i know that at times things get backed up, and occasionally a bug gets missed, which is why we have been encouraged to start using the google code bug tracking. I´d rather post it

Re: [web2py] Re: Why the need of return dict() in controller?

2011-01-14 Thread Kenneth Lundström
Only thing that comes to my mind is that you can´t rename a variable. With dict() method you can "rename" them. I don´t know if people do that. Traditional way, if you want to rename variable: total_exposure_at_day_light_time = 365 return dict(teadlt = total_exposure_at_day_light_time) new way:

[web2py] IMAP as authentication

2011-01-14 Thread Kenneth Lundström
Hi, has anybody used IMAP to authenticate users? I removed that there was an module to Drupal to authenticate users with IMAP. At login you give your email address and password to that emailaccount. The system tries to login to that account via IMAP. If successful you are authenticated. One

Re: [web2py] is there a way to rename a database ?

2011-01-14 Thread Kenneth Lundström
On 14.1.2011 13:41, Alexandre Andrade wrote: How to do it: 1. backup it, exporting to csv - you can use appadmin for it 2. rename Here you have to remember to modify your model file where you define db variable. db = DAL('mysql://old_database_name:password@localhost/') to db = DAL('mysql://n

Re: [web2py] Re: About bugreports

2011-01-14 Thread Kenneth Lundström
can keep track of them more easily. Thanks for your help. Massimo On Jan 13, 2:24 am, Kenneth Lundström wrote: Hello everybody, for the past month I have sent maybe 3-4 bugreports to this list, but so far only 1 of them have been answered. It feels a litte bit stupid to send those reports

[web2py] Integrating web2py and a CMS

2011-01-14 Thread Kenneth Lundström
Hi again, I´ve been asked to build a website with a CMS (Drupal or ModXCMS are those that I know little) and a intranet for the organization. The intranet will be built with web2py. The intranet will contain a members database. Is there a way for a CMS to use web2py for authoriztion? So if t

Re: [web2py] Re: Number of records

2011-01-14 Thread Kenneth Lundström
Could you shows us the relevant part of your models file, where the table is defined and then also the error ticket. Kenneth Thanks for the suggestion! The 'id' field looks like a smart solution. But there seem to be a problem -- This line creates an error when I add the 'id' field and 'migra

Re: [web2py] Re: Integrating web2py and a CMS

2011-01-15 Thread Kenneth Lundström
I was thinking about using web2py as the authentication platform as it holds the members database. Or then a LDAP that gets it information from members database. The intranet will hold a lot of information that should be visible on the website via the CMS. Either lots of small info (names, tel

Re: [web2py] Re: prevent post on reload

2011-01-16 Thread Kenneth Lundström
But isn´t web2py taking care of this already. Have you tried this double posting? If you answer yes on browsers question do you get two sets of answer in your database? Kenneth That is my suspicion, too. On Jan 16, 2:59 am, Robby O'Connor wrote: I believe (somebody can correct me if i'm w

Re: [web2py] Re: About bugreports

2011-01-16 Thread Kenneth Lundström
quite identify a bug. some of the issues are most likely be related to web2py and db models being out of sync. Are you using a legacy table? Do you have migrate=False? On Jan 14, 2:41 pm, Kenneth Lundström wrote: https://groups.google.com/group/web2py/browse_thread/thread/9e3e43b49... I m not

Re: [web2py] Re: Upload field

2011-01-16 Thread Kenneth Lundström
Yes I was trying to understand how the manual uploading was working, never got it working, but I solved the issue an other way so did not put any more time on it. Kenneth Are you trying to do manual upload? I remember I got such an error a while back. Can't recall exactly what happened tha

[web2py] Testing the new router

2011-01-16 Thread Kenneth Lundström
Hello, how do I test the new router that Jonathan has made. I renamed the routes.examples.py to routes.py and edited it. No mather what I write in it gets used. I tried to find the answer in all posts on the mailinglist but no success. Kenneth

Re: [web2py] error in web2py book

2011-01-16 Thread Kenneth Lundström
the line redirect(URL('second')) produces an error in URL. What version of web2py are you using? Writing redirect((URL('second')) works very well, atleast with 1.91.6. Kenneth second function is maybe leave empty, then you just have to imagine what ever you want?? Richard On Sun, Jan 1

Re: [web2py] Testing the new router

2011-01-16 Thread Kenneth Lundström
> Start with router.example.py instead. The key to using the new router is to define a dict named 'routers'. There's more documentation in the file, and I'll repost some examples below. > Post your routes.py here, along with a description of what you intend that it does (if it's not obvious).

Re: [web2py] error in web2py book

2011-01-16 Thread Kenneth Lundström
It should not have anything to do with the version of python. What kind of an error do you receive when you get it? I develop code with an text editor. I find the web interface too slow and cumbersome to use. In the begining I used Wingwares IDE but not anymore. I would probably be great for d

Re: [web2py] Testing the new router

2011-01-16 Thread Kenneth Lundström
> Are you running the current trunk? There hasn't been a release with the new router yet. Try adding the abc line below (note the comma); you should get a complaint about an unknown key. I´m running the newest Nightly Built? > One more question: does this work OK with the old routing logic? I

Re: [web2py] Testing the new router

2011-01-16 Thread Kenneth Lundström
> I'm not sure what's in the nightly build. The abc= line should tell us something, and I can give you a little more debugging depending on what it says. abc gave nothing, it loaded welcome without any errors, or were should I see any complaints about an unknown key? I´m running on linux, Ce

Re: [web2py] Testing the new router

2011-01-16 Thread Kenneth Lundström
> The nightly is pretty old. Where can you see if my upgrading to a trunk version worked? I did a hg clone https://web. and then copied everything to my web2py folder. Earlier I edited the routes file, now I noticed a new file named router.examples.py. I added those lines to it. But can´t

Re: [web2py] Testing the new router

2011-01-16 Thread Kenneth Lundström
> So far so good. You need to copy your router file to routes.py, though. If you cp router.example.py to routes.py and then replace the routers dict with yours, that should be a good start. I copied the file, changed ownership, permissions, but nothing. Not until I restarted Apache was the

Re: [web2py] Suggestion for the Web2py book regarding importing and exporting data

2011-01-17 Thread Kenneth Lundström
Appadmin already has the ability to expoert and import CSV-files. So no need putting them there. In one of my application users has the right to export data as CSV and even import it back. They don´t get all data, only data that belongs to the user. Kenneth In reading the chapter on CSV a

Re: [web2py] Url for References in the Spanish book

2011-01-18 Thread Kenneth Lundström
If you add ?_language=es after the english URL you get the Spanish version. Kenneth -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi. I would like to share some thought of web2py introduction via identi.ca. Quote something and add the short url of the on-line Book, Spanish edition. There is

Re: [web2py] Use the source, Luca

2011-01-18 Thread Kenneth Lundström
Sounds like an excellent idea. Both answers for your question sounds good. Would it be possible to distribute it across chapters but some how make it so that you can read it as an chapter. The source as to be same, it can't be like that you have to update two places when updating something.

Re: [web2py] Value of the form field

2011-01-19 Thread Kenneth Lundström
If you look at form.vars.name1 before passing them via redirect you´ll see that no replacing has been done, try with if form.accepts (request.vars, session): session.flash = "Form sent" return form.vars.name1 the replacing happens in the redirect because you can´t have an URL with space

Re: [web2py] Temporary changing default values of a Form

2011-01-20 Thread Kenneth Lundström
> Does anybody know how to do it for a select box? > Select box is rendered because it's a foreign key that reference another table. After you have created the form but before if form.accepts define your default. form = SQLFORM(db...) form.vars.type = 'cleaner' if form.accepts.. T

[web2py] Represent not working in details on Powertable

2011-01-21 Thread Kenneth Lundström
Hello Bruno, I´m implementing powertables and can´t get it to show a reference field correctly. In my models: Field('f_customer', type='reference t_customer', label=T('Customer'), represent = lambda id: db.t_customer(id).f_internal_name), But when opening the Details it shows the ID

[web2py] Another question about Powertable

2011-01-21 Thread Kenneth Lundström
Hi again Bruno, another stupid question about powertable. How do I select in what order the rows are shown. For do moment they are shown in ID order, I´d like to select anoter column. Kenneth

Re: [web2py] Another question about Powertable

2011-01-21 Thread Kenneth Lundström
, Kenneth Lundström wrote: Hi again Bruno, another stupid question about powertable. How do I select in what order the rows are shown. For do moment they are shown in ID order, I´d like to select anoter column. Kenneth

Re: [web2py] Installation on GoDaddy shared server

2011-01-21 Thread Kenneth Lundström
Simplest way is http://web2py.com/book/default/chapter/03 > How do I install web2py on a GoDaddy shared server. No idea about GoDaddy but, > Also what are the steps to install it on a regular linux server. It depends on alot of things, what linux, what is installed on it and so on. www.web2py

Re: [web2py] Combining Forms without SQLFORM Factory

2011-01-21 Thread Kenneth Lundström
Hello Lennon, you mentioned the you have two submit buttons, too me it sounds like you have to forms on one page, not a combined form. As I understand the only option is to use factory, if you wan´t to update you have to create a form with factory then fill all fields with db.t_table.f_field

Re: [web2py] step-by step instructions installing web2py on a CentOS server with cPanel installed

2011-01-21 Thread Kenneth Lundström
Search the mailing lists archive with cpanel. There has been some discussion about deploying web2py with cpanel. But I can´t remeber the outcome of it. Kenneth I as wondering if there is step-by step instructions installing web2py on a CentOS version 4.x server with cPanel installed.

[web2py] What am I doing wrong

2011-01-21 Thread Kenneth Lundström
test1 = 250.90 test2 = 47.90 test3 = 99.90 test4 = test1 + test2 + test3 test5 = 398.70 test6 = test5 - test4 return test6 This returns -5.68434188608e-14 not 0 as you would expect, or? Kenneth

[web2py] form.vars.something = value is not working on submission

2011-01-21 Thread Kenneth Lundström
I have a form created with factory. After creation I define form.vars.employee = session.worker This value is the default when viewing the form. I submit the form and in if form.accepts I have a redirect to the same page. I want to have a new empty form with this one fields predefined, but it´

Re: [web2py] Re: form.vars.something = value is not working on submission

2011-01-21 Thread Kenneth Lundström
; return dict(form = form) The view: {{extend 'layout.html'}} News: TODO Issues: {{=form.custom.begin}} {{=T(form.custom.label.description)}}{{=form.custom.widget.description}} {{=T(form.custom.label.customer)}}{{=form.custom.widget.customer}} {{=T(form.custom.label.employ

Re: [web2py] Some Database Tables Not Created

2011-01-22 Thread Kenneth Lundström
To me it sounds like your are recreating the db variable with every .py file. You should have only one db = row no matter how many files you have. And it should be in the first model that is read. An easy way of knowing in what order files are read is to name them 0_something.py 1_something_el

Re: [web2py] Issues with DAL and MySQL on production (works locally)

2011-01-23 Thread Kenneth Lundström
Two options: - if possible use an other database of the remote server and let web2py create all tables and then check whats different between those two databases - backup up data on remote server, drop database, create database, let web2py create tables and try to restore backup. Kenneth

Re: [web2py] Re: Issues with DAL and MySQL on production (works locally)

2011-01-23 Thread Kenneth Lundström
n Jan 23, 10:03 am, Kenneth Lundström wrote: Two options: - if possible use an other database of the remote server and let web2py create all tables and then check whats different between those two databases - backup up data on remote server, drop database, create database, let web2py create table

[web2py] A bug? length of request.args

2011-01-23 Thread Kenneth Lundström
Has it allways been like this or? http://./application/controller/function/args1 len(request.args) = 1 http://./application/controller/function/args1/args2 len(request.args) = 2 but http://./application/controller/function/args1/ len(request.args) = 2 I would have guessed th

Re: [web2py] Cannot Get Trivial routes.py Working

2011-01-23 Thread Kenneth Lundström
As it was my first error I´ll pass it on to you. What version of web2py are you using. If not trunk then the new router does not work as it is in beta still. Otherwise will´ll have till wait for more wiser guys. Kenneth Help! I feel like a dolt. I have a trivial routes.py installed in DOCRO

Re: [web2py] Re: A bug? length of request.args

2011-01-23 Thread Kenneth Lundström
I´m a little bit surprised that I havn´t noticed this before as I have used len(request.args) quite much to determine the state of an operation. Kenneth I think we should change it and treat is like a bug. On Jan 23, 12:46 pm, Jonathan Lundell wrote: On Jan 23, 2011, at 8:24 AM, Kenneth

Re: [web2py] Re: Documentation working installation on Cpanel and WHM running Centos

2011-01-24 Thread Kenneth Lundström
Have you tried this: http://web2pyslices.com/main/slices/take_slice/98 I think the only way is to use a script or slice and trying it line for line. When you encounter an error try to find out what the problem is. When you get an error it is much easier for us to help you. I have set up we2py

Re: [web2py] Python 2.7.1 next steps to install on Centos with Cpanel installed

2011-01-24 Thread Kenneth Lundström
Have you got mod_wsgi installed? Kenneth Lets say i have Python 2.7.1 installed what is the next steps to install web2py on a server running Centos and Cpanel. I do have SSH access. I want web2py to work with the existing mySQL database and Apache 2.x

[web2py] IS_IN_SET texts

2011-01-27 Thread Kenneth Lundström
I have a field priority = integer, can be anything between 1-5 (or 6 in Python way) but I´d like to make a dropdown with options, '1, Fixed yesterday', '2, to be fixed today', '3, fixed before release' and so on. Is this possible with IS_IN_SET or do I have to make my own form? When viewing

Re: [web2py] image as background

2011-01-27 Thread Kenneth Lundström
If you have a div that spans the whole page you can via css and background: url(../images/background.jpg) have a background. Kenneth Hi, Anybody know how to set an image as background (would fit the entire page)? Thanks in advance, Mart :)

Re: [web2py] What is web2py best practice basis for modular site development?

2011-01-27 Thread Kenneth Lundström
My gut tells one application, having applications share layout, database and all is not piece of cake. But I guess it depends on the application, but I would make it as one application. Kenneth Dear web2py users, I am developing a website that will have many features, some of which are no

Re: [web2py] Re: Change in URL args handling

2011-01-28 Thread Kenneth Lundström
> Kenneth: how did you happen to notice this? How did the extra trailing slash get there in the first place? I was testing an application and was using http://domain/controller/applications/2 when I decided to start from the begining with http://domain/controller/applications but I only remove

[web2py] Email as username

2011-01-30 Thread Kenneth Lundström
Hello list, I have an old application build two years ago and it uses email adress as the username, so you don´t need a different username. Now I´d like to do the same on a new application but I don´t know what to change to do this. Any ideas? Kenneth

Re: [web2py] Re: Email as username

2011-01-30 Thread Kenneth Lundström
30, 11:55 am, hcvst wrote: Hi Kenneth, remove the 'username' field from the auth_user table. Also see Chapter 8http://web2py.com/book/default/chapter/08on custom tables. I think in the past w2p only used email by default. The new app wizard appears to include it now. Regards, HC On Jan 30

[web2py] Update session variable with page refresh/reload

2011-01-31 Thread Kenneth Lundström
Hi, what would be the easiest way to update a session variable and refresh/reload the page. The link to update will be visible on all pages, so I can´t do a redirect to a specific page or how do I specify to redirect to the page I´m on right now? Kenneth

Re: [web2py] Re: Update session variable with page refresh/reload

2011-01-31 Thread Kenneth Lundström
As the content on page some times changes too. Kenneth - Ursprungsmeddelande - > Why don't you just do an ajax request and leave the page unchanged? > > On Jan 31, 3:26 am, Kenneth Lundström > wrote: > > Hi, > > > > what would be the easiest w

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 instal

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 web2

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: 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 t

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 > Nobody has any po

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: 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 lead

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 yo

<    1   2   3   4   5   >