Re: [web2py] Re: KWEB on Raspberry-pi Zero, can't login to admin page

2017-06-11 Thread Stef Mientki
t the web2py admin password: cd /path/tp/web2py sudo -u www-data python -c "from gluon.main import save_password; save_password('$PW',443)" On Saturday, 10 June 2017 17:21:33 UTC-5, Stef Mientki wrote: hello, I've installed web2py on my Raspberry-pi Zero.

[web2py] KWEB on Raspberry-pi Zero, can't login to admin page

2017-06-10 Thread Stef Mientki
hello, I've installed web2py on my Raspberry-pi Zero. The sit is working well and I can get to the admin pages through the default browser (I think it's Epiphany). While this browser is mch to heavy for the Raspberry (consumes 100% processor time) I installed a lean browser KWEB. This is m

Re: [web2py] Re: Service call problem with new installation on Windows and raspberry

2017-05-13 Thread Stef Mientki
lt','call/csv/service_plat_dak')}}", I don't need routes anymore. So I suppose the later solution is better ? cheers, Stef On 12-May-17 3:02, Dave S wrote: On Thursday, May 11, 2017 at 5:05:14 PM UTC-7, Stef Mientki wrote: Hello, 3 years ago I made a web2p

[web2py] Service call problem with new installation on Windows and raspberry

2017-05-11 Thread Stef Mientki
Hello, 3 years ago I made a web2py site, which has run on a Raspberry Pi without any problems since 3 years. I now want to replace the Raspberry Pi with a Raspberry Pi Zero (larger/faster). I haven't used web2py for 3 years and thought simply installing a new web2py and moving the applicat

Re: [web2py] Re: does cache decorator work for services ?

2015-01-13 Thread Stef Mientki
(): .. do the calculation here return Rows @service.csv def service_platdak(): return service_platdak_absolutely_necessary() thanks, Stef On 12-Jan-15 23:07, Stef Mientki wrote: thanks Massimo, but ... when I use the suggested order, I get Traceback(most recent call last): File"

Re: [web2py] Re: does cache decorator work for services ?

2015-01-12 Thread Stef Mientki
thanks Massimo, but ... when I use the suggested order, I get Traceback(most recent call last): File"gluon\restricted.pyc",line217,inrestricted File"P:/web2py_2_8_2/applications/SolarPower_Molenhoek/controllers/default.py"

Re: [web2py] Re: does cache decorator work for services ?

2015-01-11 Thread Stef Mientki
thanks Paolo and Leonel, things seems even weirder than I had in mind: 1. changing the order of the decorators: the program doesn't work anymore, there's no csv response anymore 2. the code form Leonel works, as long as you use it as a plain example Now I made 2 identical csv services, both w

[web2py] does cache decorator work for services ?

2015-01-11 Thread Stef Mientki
hello, I've a service, for which the output can change only ones every 10 minutes. So I want to cache the resulting output. To test if caching is working, I made the following setup: - In the view there's a javascript that requests a refresh of the data every minute. - A global sys.N_Schuurdak

Re: [web2py] Re: how can I ensures list-order

2015-01-01 Thread Stef Mientki
thanks Anthony, your answer looks really great, exactly what I was looking for and more ;-) I'll probably try it to morrow. cheers, Stef On 01-Jan-15 22:39, Anthony wrote: In that case, I wouldn't bother having the DAL create a Rows object. Instead, the database cursor will return a list of tu

Re: [web2py] Re: how can I ensures list-order

2015-01-01 Thread Stef Mientki
thanks Anthony, No, I don't need a list of dictionairies. From your question, I assume there's also a way to get a plain table ? I need a list of lists or even better a 2D-numpy array (so I can easily perform some conversions). The final list of lists (or numpy array) must be converted to a csv

[web2py] how can I ensures list-order

2015-01-01 Thread Stef Mientki
hello, I'm using dygraph to plot a number of parameters. Dygraph needs a csv file as it's input. So I made a service: @service.csv def service_platdak(): ToDay= date.today() Tomorrow = ( ToDay + timedelta (1) ) Fields = [ db.Compare_Model.Date, db.Compare_Model.M2,db.Compare_Model.M2

[web2py] how to get just one instance of a complex class ?

2014-11-30 Thread Stef Mientki
hello, I've a class, that reads a huge file and parses it. Therefor I want just one instance per session or even one over all sessions. # The next code (placed in controler default.py) generates an error if session.Book_Loaded is None : session.Book_Loaded = PuntHoofd_support.PuntHoofd_Doc (

Re: [web2py] new web2py videos

2014-08-31 Thread Stef Mientki
great Nico and Massimo. one small remark, the titles can't be read (other than hoovering), so if I may suggest, change the title by removing "Web2py video course 2013" (or put it at the end of the title). cheers, Stef On 31-Aug-14 04:56, Massimo DiPierro wrote: Nico has helped edit and re-

Re: [web2py] PythonAnywhere Web2py Script

2014-07-16 Thread Stef Mientki
I'm not sure what all those command line parameters mean, so I don't know if this helps, but I run the same script on my Desktop, Raspberry Pi and PythonWhyWhere without parameters in the following way: # detect if I'm on PythonAnyWhere import platform Uname = platform.uname () CurDir = os.curd

Re: [web2py] Re: how to determine the server (name) ?

2014-05-31 Thread Stef Mientki
thanks Leonel and Michael. forgot to tell there are 2 programs running at least on one of those servers, a web2py application and another application polling a solar system. So I don't always have the request variable. So I hoped I could use os.curdir, but for some unknown reason that doesn'

[web2py] how to determine the server (name) ?

2014-05-29 Thread Stef Mientki
hello, I'm trying to run the same application on different servers. On each specific server there should be some small differences, so I would like to detect the server on which the web2py application is running. thanks, Stef -- Resources: - http://web2py.com - http://web2py.com/book (Documen

Re: [web2py] Re: is it allowed/possible to replace the database within a controler ?

2014-05-09 Thread Stef Mientki
thanks Anthony. On 09-05-14 22:22, Anthony wrote: Sure, it should be allowed, but nothing will be returned to the browser while you're waiting for the copy to happen. If the copy takes too long, the HTTP request may time out. Anthony On Friday, May 9, 2014 4:17:05 PM UTC-4, aapaap wrote:

[web2py] Re: is it allowed/possible to replace the database within a controler ?

2014-05-09 Thread Stef Mientki
thanks Anthony, Thought it was difficult to generate a scheduled task. But in PythonAnyWhere it'standard available. So I'll go that way. Still wondering if it's allowed to copy the default web2py database in a controler function ? cheers, Stef On 09-05-14 0:02, Anthony wrote: You probably

[web2py] is it allowed/possible to replace the database within a controler ?

2014-05-08 Thread Stef Mientki
hello, I've a web2py site, which should run, more or less synchronized, (with the same data) on 2 different servers. The first one is filling the database. The second one should copy the db from the first one if the database was refreshed more than 24 hours ago. So the solution I've in mi

Re: [web2py] Re: how to get globals like "request" available in my own modules ?

2014-02-17 Thread Stef Mientki
e import ModuleHelper ... And Later in the same mymodel.py ... # Make the module class/methods available: my_module_helper = ModuleHelper(globals()) Now you can use my_module_helper.my_method(params) from within any view or controller.. Hope it helps. Julio On 02/16/2

[web2py] how to get globals like "request" available in my own modules ?

2014-02-16 Thread Stef Mientki
hello, how to get globals like "request" available in my own modules ? thanks, Stef -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this me

[web2py] Re: is there a way to detect x-frames ?

2014-02-16 Thread Stef Mientki
eans you can't frame return not "x-frame-options" in opener.headers.dict On 16-02-14 1:26, Stef Mientki wrote: hello, I want to show external sites in an IFRAME (including the link to the orginal site), so I can add comment to the external website, but some sites won't show

[web2py] is there a way to detect x-frames ?

2014-02-15 Thread Stef Mientki
hello, I want to show external sites in an IFRAME (including the link to the orginal site), so I can add comment to the external website, but some sites won't show in an IFRAME. This seems to e due to X-Frame options. Is there a way to detect if there are any x-frame-options, so I can make a

[web2py] Re: why is auth.messages.... not working

2014-02-14 Thread Stef Mientki
thanks Anthony, that did the trick, cheers, Stef On 14-02-14 16:30, Anthony wrote: Field labels have to be set before calling auth.define_tables. Is that the case here? Anthony On Friday, February 14, 2014 10:28:21 AM UTC-5, aapaap wrote: hello, I want to redefine the texts of the l

[web2py] why is auth.messages.... not working

2014-02-14 Thread Stef Mientki
hello, I want to redefine the texts of the login screen so in models/db.py I've : auth.messages.label_username='Gebruikersnaam' and my login controler: @auth.requires_login() def Inloggen(): redirect ( URL ( Show_Knutselen )) but I keep seeing : "username" thanks, Stef -- Resources:

[web2py] Re: how to embed an image (or another solution) ?

2014-02-14 Thread Stef Mientki
thanks Anthony, but I want to browse the image directory, so I don't want to store them in the database. cheers, Stef On 13-02-14 0:48, Anthony wrote: If you use the built-in upload mechanism (i.e., an "upload" type field in a db table), then files uploaded via that method can be downloaded v

Re: [web2py] Re: how to embed an image (or another solution) ?

2014-02-14 Thread Stef Mientki
thanks Michele, didn't know about that function On 13-02-14 17:18, Michele Comitini wrote: if you wish to embed images in html, web2py has a little know, but handy function: embed64(data, extension) in your case you coud simply use: without doing the base64 encoding yourself. Embedding is

[web2py] Re: how to embed an image (or another solution) ?

2014-02-12 Thread Stef Mientki
'pic_%s.png' % response.Edits.id), 'rb')}} {{data = fh.read()}} {{fh.close()}} {{data= base64.encodestring ( data )}} {{data='data:image/png;base64,' + data}} thanks, Stef On Mon, Feb 10, 2014 at 10:43 PM, Stef Mientki wrote: > hello

[web2py] how to embed an image (or another solution) ?

2014-02-10 Thread Stef Mientki
hello, maybe I'm totally on the wrong path, but this is my script for the moment: - users can upload pictures. Uploads seems to be allowed only in "myapp/uploads" - I want to show these images, but images to be shown are only allowed in "myapp/static" - so I have to show images from "myapp

[web2py] Re: how to keep request when redirecting

2014-02-05 Thread Stef Mientki
thanks, I didn't know about "components" will study that in the near future. For the moment I've replcaed the url with a auto-commit-checkbox, so I'll stay on the same page/controller. cheers, Stef On 05-02-14 10:46, Tim Richardson wrote: redirect starts a new request. I suppose your redire

[web2py] how to keep request when redirecting

2014-02-02 Thread Stef Mientki
hello, I've a form with checkboxes and radiobuttons. All the checkboxes and radioboxes are auto-commit, i.e. the have an argument onchange="this.form.submit()" Now this works perfect, as soon as a button is changed, the page is refreshed with a new selection from the database. Now I've som

Re: [web2py] Re: pythonanywhere, what's the adnmin password ?

2014-01-26 Thread Stef Mientki
thanks Massimo, Somewhere an error occured, either by me or by the software. When making the first web2py application (so I was logged in on Pythonanywhere) , I wasn't asked for an admin password. After deleting the first web2py application and creating my second web2py application, I was inde

[web2py] pythonanywhere, what's the adnmin password ?

2014-01-25 Thread Stef Mientki
thanks, Stef -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" grou

Re: [web2py] Re: filepaths for library and images ?

2014-01-22 Thread Stef Mientki
thanks, got in not working yet. I also tried the solution suggested in "pass as parameter or import" about an our later, but that didn't worked either. I don't understand the path philosophy of web2py at this moment. e.g. why is this working: and why is this NOT working: while the image

Re: [web2py] Re: filepaths for library and images ?

2014-01-21 Thread Stef Mientki
thanks Anthony, the import now works partially. The lib needs to know the database "db" is it possible to import that. from db import db doesn't work cheers, Stef On 21-01-14 23:55, Anthony wrote: Filename = os.path.join ( 'applications', request.application,'static\images\pic_%s.png

[web2py] filepaths for library and images ?

2014-01-21 Thread Stef Mientki
hello, Q1: I want to store uploaded files manually, but I'm asking myself if this is the correct way to create the filepath, or is there a better way ? Filename = os.path.join ( 'applications', request.application,'static\images\pic_%s.png' % Edit_Select), 'wb') Q2: I made some lib

Re: [web2py] Re: simplest way to get rid of "None" strings

2014-01-19 Thread Stef Mientki
thanks, I'll santinize the database onec a while. cheers, Stef On 19-01-14 13:45, Niphlod wrote: or, if indeed you want all strings fields with NULL values (backends side) or "None" (python side) to map to an empty string '', use none_value = None for f in db.table.fields: if db.table[f

[web2py] How can I use a view in combination with a service ?

2014-01-18 Thread Stef Mientki
hello, maybe I'm doing this completely wrong, but it's a long time ago I used web2py. In the main page I have a lot of links. In fact these links are just indexes to a row in the database. As I understand, the only way to pass parameters from clicking a link, is to use services. An example

Re: [web2py] Re: simplest way to get rid of "None" strings

2014-01-18 Thread Stef Mientki
thanks, it's a workaround, but I mean the field is empty / Null / None (type), which is translated by web2py into a string value 'None'. cheers, Stef On 18-01-14 19:06, Niphlod wrote: if you mean the "other" app fills the fields with an actual string that holds the 'None' value (it could be v

[web2py] simplest way to get rid of "None" strings

2014-01-18 Thread Stef Mientki
hello, my database (sqlite) is (partially) filled by another program, which inserts Null or None values. Now if I use these fields in an HTML form, they show up as "None" instead of an empty string. Is there a simple way to solve this for all fields at once ? thanks, Stef -- Resources: - htt

Re: [web2py] where can I find older versions ?

2014-01-16 Thread Stef Mientki
here https://www.dropbox.com/s/4o7ld0vmy9pl9g8/web2py_exe.py2exe.7z On Wednesday, January 15, 2014 3:19:17 PM UTC+1, Richard wrote: Github pick a tag download... Richard On Tue, Jan 14, 2014 at 7:28 PM, Stef Mientki > wrote: hi, where can I find older versions, becau

[web2py] where can I find older versions ?

2014-01-15 Thread Stef Mientki
hi, where can I find older versions, because the latest version gives me this error wcscpy_s cound not be located in msvcrt.dll (winXP, 32 bit) cheers, Stef -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://c

[web2py] how to change the content of an IFRAME from a jquery menu

2013-06-11 Thread Stef Mientki
hello, Starting again with web2py (did a simple experiment 3 years ago), I'm struggling with changing the content of an IFrame. I've a few pages, one of them contains a vertical jquery menu on the left and an IFrame on the right (setting the width of the IFrame is also a small problem). Now I

Re: [web2py] Where to host web2py

2012-08-22 Thread Stef Mientki
is this really an Arduino, which chip, what clock frequency, which OS ? It seems much faster than the Raspberry-PI ! cheers, Stef On 20-08-2012 21:12, Simon Carr wrote: I think I have made a mistake with SWVPS, I would suggest that no one touch them. I had no response from them after sending my

Re: [web2py] raspberry pi

2012-08-10 Thread Stef Mientki
I just did it, within 5 minutes. Python is already installed on the Raspberry-pi. - download the sources to the Raspberry - unpack the zip file - open a terminal window and go to the directory where it is unpacked - python web2py.py that's all. cheers, Stef On 13-03-2012 11:04, António Ramos

Re: [web2py] Re: Published my collection of plugins

2011-08-26 Thread Stef Mientki
On 26-08-2011 19:18, Ross Peoples wrote: These are really great. The color picker plugin and form plugins are really useful to me. Thank you for sharing these. Maybe some of these could be integrated into web2py. +1

Re: [web2py] Re: fluxflex

2011-08-21 Thread Stef Mientki
really fantastic, despite the server 500 errors during sign up, web2py running within 2 minutes. cheers, Stef On 21-08-2011 22:11, Martín Mulone wrote: bye bye gae (?) 2011/8/21 Massimo Di Pierro mailto:massimo.dipie...@gmail.com>> This is fantastic. I will be travelling in the next few ho

Re: [web2py] Re: LessCSS -- really interesting CSS "compiler"

2011-06-25 Thread Stef Mientki
On 25-06-2011 13:51, Joe Barnhart wrote: > That's http://lesscss.org/ Sheesh. > > On Jun 25, 7:50 pm, Joe Barnhart wrote: >> http://lescss.org/ thanks Joe, I've looking for such a tool for years. cheers, Stef

[web2py] has anyone used fathom (or something alike) with web2py DAL ?

2011-05-15 Thread Stef Mientki
hello, has anyone used pathom http://code.google.com/p/fathom/downloads/list especially the GraphViz representation looks usefull to me. Are there other packages that can show a representatie like this ? thanks, Stef

Re: [web2py] Re: Japan

2011-03-13 Thread Stef Mientki
On 13-03-2011 05:52, Anthony wrote: > Note, the Sahana Software Foundation is looking for translators to complete a > localization of > Sahana Eden into Japanese: http://www.sahanafoundation.org/japan > > Sahana Eden is an open source disaster management system written in web2py. > I read goog

[web2py] Re: mssql, login problems

2011-03-05 Thread Stef Mientki
folder, *MSSQL_Login = MSSQL_Login* ) cheers, Stef On 05-03-2011 00:34, Stef Mientki wrote: > hello, > > > With the DAL I created tables in an MSSQL database, which I can access as > long as I login as the > same user. > > I created the table with a windows login on m

[web2py] mssql, login problems

2011-03-04 Thread Stef Mientki
ingError: ('42000', "[42000] [Microsoft][ODBC SQL Server Driver][SQL Server]CREATE TABLE permission denied in database 'NKCV2'. (262) (SQLExecDirectW)") Could this be caused, by the DAL creating other filenames to store the table information ? Any suggestions to solve this problem ? thanks, Stef Mientki

Re: [web2py] Re: "text" type fields in MSSQL

2011-03-02 Thread Stef Mientki
I've just started with mssql (after using sqlite, postgresql and mysql, I'm not very happy at the moment ;-) I guess utf-16 would be the best way to go for the future. (as my current database is quit large, I think at the moment I'll stick to windows-1252 coding ;-) further more in my humble opin

[web2py] mssql2, decoding Unicode is not supported

2011-03-01 Thread Stef Mientki
ode is not supported how can I solve it ? thanks, Stef Mientki

[web2py] "text" type fields in MSSQL

2011-03-01 Thread Stef Mientki
': 'VARCHAR(%(length)s)', 'text': 'VARCHAR(%(length)s)', 'password': 'VARCHAR(%(length)s)', 'blob': 'VARBINARY(max)', or should there be mad other changes ? thanks, Stef Mientki

Re: [web2py] Re: MSSQL or MSSQL2

2011-03-01 Thread Stef Mientki
On 14-02-2011 22:17, Massimo Di Pierro wrote: > The difference is subtle. as SQLserver uses utf-16, the size will double, am I correct ? thanks, Stef Mientki > mssql is the first version of the adapter, the one that everybody > uses. It stores data as UTF8 but in ascii. That means the

Re: [web2py] Re: how to test text-type field on equality (in mssql) ?

2011-02-25 Thread Stef Mientki
.Validation, Field_Ex.Choices, Field_Ex.Description FROM Field_Ex WHERE Field_Ex.Tabel='Patient';",) > On Feb 25, 4:22 pm, Stef Mientki wrote: >> hello, >> >> How should I test a text-type field in a mssql database >> >> Query = DB_Mod.Field_Ex.

[web2py] how to test text-type field on equality (in mssql) ?

2011-02-25 Thread Stef Mientki
r][SQL Server] The data types text and varchar are incompatible in the equal to operator. (402) (SQLExecDirectW)') Changing the type to "string" seems to work ok. thanks, Stef Mientki

Re: [web2py] Re: connectionstring for mssql ? , DSN ?

2011-02-23 Thread Stef Mientki
oesn't work. cheers, Stef > Hope it helps > > Regards > > Franklin > > > On Feb 23, 3:43 pm, DenesL wrote: >> According to the dal.py source you either supply >> >> mssql://dsn >> >> or >> >> mssql://username:password@host:port

Re: [web2py] Re: connectionstring for mssql ? , DSN ?

2011-02-23 Thread Stef Mientki
policy within our company that prevents this. cheers, Stef > (port is optional) > > > On Feb 23, 2:17 pm, Stef Mientki wrote: >> hello, >> >> i'm a little bit confused about how the connectionstring should look fro >> coupling a remote mssql >> database

[web2py] connectionstring for mssql ? , DSN ?

2011-02-23 Thread Stef Mientki
uld the connectionstring look like ? Do I have to specify an alias in the ODBC manager or can I do without ? thanks, Stef Mientki

[web2py] [OT] Can I use the DAL to create a client/server PostgreSQl (or MySQL) on a home network ?

2011-02-22 Thread Stef Mientki
make special settings in the PostgreSQL (MySQL) server ? thanks, Stef Mientki

[web2py] logging time spent in sql statements ?

2011-02-21 Thread Stef Mientki
hello, is there a way to log the time-duration of all sql statements ? thanks, Stef Mientki

Re: [web2py] JQuery harmonica menu, but what's the use in web2py, I'm totally confused

2011-02-03 Thread Stef Mientki
pment) - but if your app is (almost) one page you may find a > javascript option more > suitable. The CoffeScript site is a good example of a single (large) page > Javascript app (and if > you know Python but not Javascript you may fall in love with CoffeScript): > > http://ja

[web2py] JQuery harmonica menu, but what's the use in web2py, I'm totally confused

2011-02-02 Thread Stef Mientki
27;ve the feeling I'm missing something very essential in building web2py pages. thanks, Stef Mientki

Re: [web2py] Re: inconsistency ? "==" and "belongs"

2011-01-30 Thread Stef Mientki
of course, stupid of me, thanks very much Massimo, cheers, Stef

[web2py] inconsistency ? "==" and "belongs"

2011-01-30 Thread Stef Mientki
e of id's, I have to use the SQL-like "belongs" Rows = DB ( DB.Excel_List.id.belongs((3,4))).select() instead of the Pythonic "in" Rows = DB ( DB.Excel_List.id in (3,4) ).select() Why is that ? thanks, Stef Mientki

Re: [web2py] Hassle-Free Application Hosting?

2011-01-22 Thread Stef Mientki
t Apache or Helicon package. If there's any interest, I'll post a description here soon. cheers, Stef Mientki

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

2011-01-14 Thread Stef Mientki
hello, I would like to rename a database, is that possible ? thanks, Stef Mientki

Re: [web2py] Hassle-Free Application Hosting?

2011-01-09 Thread Stef Mientki
On 09-01-2011 16:21, Bruno Rocha wrote: > I am playing with free beta on dotcloud (this will be great). > > for free that runs web2py I just know one (shared limited plan is free): > > http://www.alwaysdata.com/plans/shared/ > > http://web2py.alwaysdata.net/examples hello Bruno, do have an easy re

Re: [web2py] a few small suggestions

2011-01-03 Thread Stef Mientki
is: class DL(DIV): tag = 'dl' class DD(DIV): tag = 'dd' class DT(DIV): tag = 'dt' ok, it was a small suggestion ;-) cheers, Stef > > > 2011/1/3 Stef Mientki mailto:stef.mien...@gmail.com>> > > hello, > > using some jQuery comp

[web2py] a few small suggestions

2011-01-03 Thread Stef Mientki
somewhat more readible, by inserting linefeeds ( and if possible indentation, but that might be quit difficult) so debugging becomes somewhat easier. thanks, Stef Mientki

[web2py] vertical accordion menu ?

2011-01-02 Thread Stef Mientki
hallo, has anyone a vertical accordion menu fro web2py ? thanks, Stef Mientki

Re: [web2py] What's the best way to insert raw html ?

2010-12-29 Thread Stef Mientki
> An alternative to Text.replace would be to do a global regex substitution, > where the replacement pattern is a function that calls URL('static', > 'images/%s' % matchobj.group(0)). See the re.sub section of > http://docs.python.org/library/re.html for details. regex are too difficult for me

[web2py] What's the best way to insert raw html ?

2010-12-29 Thread Stef Mientki
lace ( 'src="', 'src="/E_Veiligheid/static/images/' ) Result.append ( TAG ( Text ) ) thanks, Stef Mientki

Re: [web2py] Re: I don't understand this error, anyone to help ?

2010-12-29 Thread Stef Mientki
thanks very much guys, but probably you missed the solution I posted about an hour ago: strings are of type cheers Stef On 29-12-2010 22:51, Jonathan Lundell wrote: > On Dec 29, 2010, at 1:35 PM, mdipierro wrote: >> Probably it is counting >> >> data.encode('utf8', 'xmlcharrefreplace') >> >> d

Re: [web2py] Re: I don't understand this error, anyone to help ?

2010-12-29 Thread Stef Mientki
of type so typecasting them as unicode solves the problem. thanks Stef Mientki > > --- > for others: > > there's these lines in trace back > > F

Re: [web2py] Re: executing code from db

2010-12-27 Thread Stef Mientki
On 27-12-2010 21:23, mdipierro wrote: > cube2py is just a scaffolding app + plugin_wiki. The code is in > question is also in plugin_wiki although people do not seem to use it > (and I am not sure it is in general a good idea to store code in db). > I wonder why not ? it might be unconventional, an

Re: [web2py] Merry Christmas

2010-12-23 Thread Stef Mientki
+1, btw, what a nice signature !! cheers, Stef On 23-12-2010 08:17, ? Kuldeep Singh PHP FreeLancer Web Developer,SEO Services wrote: > Marry Christmas to all of you ...From Kaysellers.com > > On 23 December 2010 12:40, ma...@rockiger.com >

Re: [web2py] Re: OT: why are old style classes still used ?

2010-12-18 Thread Stef Mientki
> On Dec 18, 4:32 am, Stef Mientki wrote: >

[web2py] OT: why are old style classes still used ?

2010-12-18 Thread Stef Mientki
inheritance from the past ? thanks, Stef Mientki | || | |

Re: [web2py] Re: Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Stef Mientki
On 03-12-2010 17:31, Jonathan Lundell wrote: > On Dec 3, 2010, at 7:22 AM, mdipierro wrote: >> I am too dumb to solve it but this program can: > Cute, though the program somewhat presupposes the pattern of the answer. > > The answer was obvious at a glance to those of us who had multiplication > t

Re: [web2py] Re: Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Stef Mientki
very inserting!! (insert "print e" and the explanation is there ) On 03-12-2010 16:26, Richard Vézina wrote: > Google! > > On Fri, Dec 3, 2010 at 10:22 AM, mdipierro > wrote: > > I am too dumb to solve it but this program can: > > x=[(2,3,10),(7,2,63),(6,5,

Re: [web2py] Re: Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Stef Mientki
On 03-12-2010 16:39, Anthony wrote: >> <10s > Are you saying it took you .002 + 83.3313 minutes? yep, very nice !!

Re: [web2py] Re: Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Stef Mientki
Although the result seems to be ok, I don't understand a bit of this program, so my IQ must be well under 120 ;-) Can you explain the program, because I can not see the program and my solution. cheers, Stef On 03-12-2010 16:26, Richard Vézina wrote: > Google! > > On Fri, Dec 3, 2010 at 10:22 AM,

Re: [web2py] Time to relax, off topic - Simple IQ Testing.

2010-12-03 Thread Stef Mientki
On 03-12-2010 15:32, António Ramos wrote: > > 2+3=10 > 7+2=63 > 6+5=66 > 8+4=96 > So: > 9+7=??? > > What is the answer? > They say the IQ of people that can find it is above 120 > > Dont write here the answer.. > Just the time, maybe > <10s

Re: [web2py] convert a string to a table or field?

2010-12-01 Thread Stef Mientki
On 02-12-2010 01:11, Lorin Rivers wrote: > I tried making a generic function that created a table variable by > concatenating strings. > > myTable = tableBuilder('inverter',period=5) > > def tableBuilder(element,period=0): > if element == 'inverter': > if period = 0: > return 'db4.' +

Re: [web2py] Re: Scalability of web2py?

2010-11-30 Thread Stef Mientki
On 30-11-2010 21:08, VP wrote: > I think .NET and web2py are not competitors. They are different ball > games. When things scale large, everything is important. A small > design issue might be magnified. I don't think web2py is proven yet, > in terms of scalability. What web2py needs is at l

Re: [web2py] Re: Space makes the difference ? what's the preferred substitution, string or objects

2010-11-30 Thread Stef Mientki
rated string:') Test_Select ( ['Name', 'Module'], 'Packed string iterable:') Test_Select ( [DB.VraagList.Name, DB.VraagList.Module], 'Packed iterable of FieldObjects') Test_Select ( [DB.VraagList['Name'], DB.VraagList['Module&#

[web2py] Space makes the difference ? what's the preferred substitution, string or objects

2010-11-30 Thread Stef Mientki
is the Query in all the above PID = 1018 Query = ( DB.VraagList.id == DB.Opnamen.VLID ) & \ ( DB.Opnamen.PID == PID ) thanks, Stef Mientki

[web2py] session files, what's in it, how can they be read ?

2010-11-29 Thread Stef Mientki
hello, session files, what's in it, how can they be read ? and how is the name of the file generated ? thanks, Stef

Re: [web2py] Re: sorry for this stupid / simple question ...

2010-11-28 Thread Stef Mientki
On 28-11-2010 23:42, mdipierro wrote: > > On Nov 28, 4:28 pm, Stef Mientki wrote: >> But from the book I understood that if you want functions ( controllers) >> with parameters, >> you have to use services. > Not all all: > > I think you simply want this: >

Re: [web2py] Re: sorry for this stupid / simple question ...

2010-11-28 Thread Stef Mientki
that extracts the pages from a database (at the moment the texts (and some layout information) are read from a python file, where the texts are placed in a nested list structure) and shows the pages in an uniform way. What's the better way to solve this ? (btw is the web2py book application

[web2py] sorry for this stupid / simple question ...

2010-11-28 Thread Stef Mientki
ll login ? In a somewhat simpeler form, I tried this (which doesn't work): def index(): if request.vars.visitor_name : redirect ( URL ( 'first') ) response.flash = T('Welcome to My First Page') return dict(message=T('Hello World')) def first(): return dict ( message= 'AAP' ) thanks, Stef Mientki

Re: [web2py] Re: can I add a hover text ( like image:alt) to the default menu ?

2010-11-27 Thread Stef Mientki
c can be a helper > > c=A('title',_href=URL(...),_onmouseover='') > > On Nov 27, 5:22 am, Stef Mientki wrote: >> hello, >> >> Can I add a hover text ( like image:alt) to the default menu ? >> >> thanks, >> Stef Mientki <>

Re: [web2py] Re: very weird + how do I align text around images ?

2010-11-27 Thread Stef Mientki
GREAT !! MANY THANKS Massimo, cheers, Stef On 27-11-2010 23:39, mdipierro wrote: > I am not sure this should have ever worked. I think you want: > > result = DIV() <---

[web2py] very weird + how do I align text around images ?

2010-11-27 Thread Stef Mientki
BEAUTIFY", but I'm absolutely sure I didn't use BEAUTIFY before !! and indeed after using BEAUTIFY, the content was displayed again, but my text around images is totally gone :-( How could my program worked before ??? And of course more important, how can I get my text around the image ? thanks, Stef Mientki

Re: [web2py] Re: can I add a hover text ( like image:alt) to the default menu ?

2010-11-27 Thread Stef Mientki
thanks very much Massimo ! cheers, Stef On 27-11-2010 17:22, mdipierro wrote: > a="title" > b=True or False > c=URL(...) > d=[] # submenu > response.menu=[(a,b,c,d)] > > > instead of a URL, c can be a helper > > c=A('title',_href=URL(...),_onmous

[web2py] can I add a hover text ( like image:alt) to the default menu ?

2010-11-27 Thread Stef Mientki
hello, Can I add a hover text ( like image:alt) to the default menu ? thanks, Stef Mientki

[web2py] where to place sizes (and other properties) ?

2010-11-23 Thread Stef Mientki
acceptable ? Opening the page in Mozilla with firebug, reveals that some components have 10 or more nested definitions of sizes / colors etc. (of which a lot are invalid) I wonder how anyone can maintain such a complex hierarchy. Is there a way (other than firebug) to show this hierarchy ? th

  1   2   3   >