[web2py] Re: Standalone application (mac/win)

2012-08-21 Thread mmstud
I added all old gluon directory code to the site-packages directory and made it to work. maanantai, 20. elokuuta 2012 15.08.27 UTC+3 mmstud kirjoitti: > > Is it possible to create easy to use standalone web2py application for mac > and win users? I have registry application and remote

[web2py] Re: Standalone application (mac/win)

2012-08-20 Thread mmstud
;gluon/custom_import.py", line 78, in __call__ ImportError: No module named htmlextended I placed whole gluon directory to the web2py root, maybe it needs to be imported somewhere? I'm using gluon/htmlextended.py library on forms.py model file... -Marko maanantai, 20. elokuuta 2012 15.08

[web2py] Re: Standalone application (mac/win)

2012-08-20 Thread mmstud
Maybe this is all I need, is documentation update? http://web2py.com/books/default/chapter/29/14#How-to-distribute-your-applications-as-binaries maanantai, 20. elokuuta 2012 15.08.27 UTC+3 mmstud kirjoitti: > > Is it possible to create easy to use standalone web2py application for mac >

[web2py] Standalone application (mac/win)

2012-08-20 Thread mmstud
Is it possible to create easy to use standalone web2py application for mac and win users? I have registry application and remote database which should be available for clients. I'm searching for a solution where user just clicks the application icon and then browser (maybe internal?) starts up t

[web2py] Re: Could not connect to host x.x.x.x

2012-05-07 Thread mmstud
Server provider had changed nameservers but didn't update them to my server. That caused the problem and its solved now. -Marko maanantai, 7. toukokuuta 2012 10.18.13 UTC+3 mmstud kirjoitti: > > Hi, > > just when I was thinking to move my app to other server, which should >

[web2py] Re: Gluon module changes

2012-05-07 Thread mmstud
gluon directory? Thanks for patience. -Marko maanantai, 7. toukokuuta 2012 13.38.05 UTC+3 mmstud kirjoitti: > > Sorry, it seems gluon.htmlextended was my own script... > > maanantai, 7. toukokuuta 2012 10.42.40 UTC+3 mmstud kirjoitti: >> >> Sorry to multiple posts recently. I&

[web2py] Re: Gluon module changes

2012-05-07 Thread mmstud
Sorry, it seems gluon.htmlextended was my own script... maanantai, 7. toukokuuta 2012 10.42.40 UTC+3 mmstud kirjoitti: > > Sorry to multiple posts recently. I'm trying to update web2py app, and my > next problem is, that gluon module seems to have updated so its not working >

Re: [web2py] Could not connect to host x.x.x.x

2012-05-07 Thread mmstud
plication to new server ? if you did as root check > file permissions. > > On Mon, May 7, 2012 at 7:18 AM, mmstud wrote: > >> Hi, >> >> just when I was thinking to move my app to other server, which should >> happen in a month, I countered this sudden problem. Curren

[web2py] Gluon module changes

2012-05-07 Thread mmstud
Sorry to multiple posts recently. I'm trying to update web2py app, and my next problem is, that gluon module seems to have updated so its not working with my old app now. I'm importing with next lines: from gluon.htmlextended import TableForm, DivForm, INPUT, SubmitButton, ResetButton, InputBut

[web2py] Could not connect to host x.x.x.x

2012-05-07 Thread mmstud
Hi, just when I was thinking to move my app to other server, which should happen in a month, I countered this sudden problem. Current application is not responding for some unknown reason. I don't get any error logs or debug messages on console, so I'm struggled, what is the reason for this. Wh

[web2py] Re: Moving web2py app to other server

2012-05-07 Thread mmstud
Thanks for your answers, I just needed a little bit reassurance. So I'm going to set up a new server with python and web2py, should it be new version too, yes I think so, because application did transfer well to my local machine. I have a mysql database, that I'm using, which is not hard to rep

[web2py] Moving web2py app to other server

2012-05-02 Thread mmstud
Hi, I need to move my 2-3 years old web2py app to other server. Its pretty simple member and magazine subscriber database working over https. I'd like to move it to the other server, either dedicated or cloud environment. Whats should I do to get current sqlite database and application moved w

[web2py] dynamic keywords on database update

2012-02-22 Thread mmstud
Hi, I have a simple question in turn. How is it possible to make keyword search criteria dynamic? For example: db(Orders.id==id).update(Keyword+n = checked) where n is any number?

[web2py:29395] Re: Every while and then file upload fails

2009-08-26 Thread mmstud
I am using just default settings after downloading source. So it must be cherry and sqlite? Or I dont know, this is a web2py start up log: macbook:web2py-read-only mmstud$ python web2py.py WARNING:root:unable to import dbhash default applications appear to be installed already web2py Enterprise

[web2py:29310] Re: Every while and then file upload fails

2009-08-25 Thread mmstud
Got it captured. Actually upload process fails quite often with Safari (4.0.3): http://www.screencast.com/users/mmstud/folders/Jing/media/bc50ae72-c826-4184-af40-4dcad5c95517 On Aug 25, 9:44 am, mmstud wrote: > Didnt happen with Firefox yesterday. I try today with Safari again. > >

[web2py:29301] Re: Every while and then file upload fails

2009-08-24 Thread mmstud
Didnt happen with Firefox yesterday. I try today with Safari again. On Aug 24, 8:53 pm, mdipierro wrote: > It should not be a problem. > > On Aug 24, 12:02 pm,mmstud wrote: > > > > > I've been using Safari. Can try some hours with Firefox. One thing Im > >

[web2py:29260] Every while and then file upload fails

2009-08-24 Thread mmstud
I have seen this happening every 3-5 file upload. Im using admin "panel" to upload static files. After 2-4 succesful upload this happens: Error traceback Traceback (most recent call last): File "/Users/mmstud/Downloads/web2py-read-only/gluon/main.py", line 320,

[web2py:29262] Re: Every while and then file upload fails

2009-08-24 Thread mmstud
problem. Do you get the probelm > with both the source and binary? Can you reproduce it on different > browsers? Which ones? > > Massimo > > On Aug 24, 11:48 am, mmstud wrote: > > > > > I have seen this happening every 3-5 file upload. Im using admin > > &quo

[web2py:29259] Re: Translation does not work from view?

2009-08-24 Thread mmstud
Uh, sorry blindness... works now. On Aug 24, 7:28 pm, mdipierro wrote: > {{=T("Uutiset")}}{{=T > ('Tapahtumat')}} > > On Aug 24, 11:18 am, mmstud wrote: > > > > > Hi, > > > is there something I do wrong, because I have: > > > {

[web2py:29254] Translation does not work from view?

2009-08-24 Thread mmstud
Hi, is there something I do wrong, because I have: {{T("Uutiset")}}{{T ('Tapahtumat')}} on view, but result is empty. But when I use T() from controller, pass it to view, it seems to work. Regards, -Marko --~--~-~--~~~---~--~~ You received this message because y

[web2py:14311] Re: open source organization again

2008-12-30 Thread mmstud
On 30 joulu, 18:55, dhmorgan wrote: > from Charter, goals section: > > > 2. Certify the knowledge and ethical standards of its members > > I'm wondering what that might look like. Thou shalt not condemn other coders. And if coder requests help for one line, give him two. But seriously, im inter

[web2py:14014] Re: CSV - important

2008-12-22 Thread mmstud
I could think a lot of different ways to mark null "value": n/a, NA, n.a., None, NULL and so on. If csv file is used on another applications than on import data to web2py itself, then there should be a way to manually decide, how null should be marked and which data should be interpreted as null.

[web2py:14012] Re: simple benchmark

2008-12-22 Thread mmstud
Have you ever considered using libevent based server (FAPWS2)? I realized the excellence of libevent (what comes to performance and concurrency) year or so ago and to my glad just found, that there has been python projects, that uses it. -Marko On 22 joulu, 12:18, vince wrote: > sure will do. >

[web2py:14000] Re: css doubts

2008-12-22 Thread mmstud
I would just make sure, css file is loaded at all and check out the path of the css file from html source, does it point to correct location. -Marko On 22 joulu, 04:02, pmate wrote: > Hi all, > in my static/styles.css i added: > > /*User Information*/ >  #logged { width:100%; height:14px; color

[web2py:13983] Re: wsgiserver error

2008-12-21 Thread mmstud
patch to cherrypy. > > Massimo > > On Dec 21, 4:37 am, mmstud wrote: > > > I had to modify main.py:~288 > > > #method, path, req_protocol = request_line.strip().split(" ", 2) > > _reg = request_line.strip().split(" ") > > method, path,

[web2py:13969] Re: wsgiserver error

2008-12-21 Thread mmstud
though to get it surely right: http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1.2 -Marko On 20 joulu, 17:27, mmstud wrote: > Im getting this error when playing with spaces on url: > > Traceback (most recent call last): >   File "/***/web2py/gluon/wsgiserver.py&quo

[web2py:13940] wsgiserver error

2008-12-20 Thread mmstud
Im getting this error when playing with spaces on url: Traceback (most recent call last): File "/***/web2py/gluon/wsgiserver.py", line 762, in communicate req.parse_request() File "/***/web2py/gluon/wsgiserver.py", line 258, in parse_request self._parse_request() File "/***/web2py/g

[web2py:13931] Re: accepting space charaters as %20 on request.args

2008-12-20 Thread mmstud
t; > I have a proposal that could make everybody happy. What if any " " or > %20 in the URL were automatically replaced by a '_'? If i think of this, how the url shows up on html page, how it shows up actual browser url and how args shows up on controller in case of t

[web2py:13930] Re: web2py.com downloads zip file???

2008-12-20 Thread mmstud
it should redirect you tohttp://mdp.cti.depaul.edu/which is the > official site > > On Dec 20, 2:06 am, Grahack wrote: > > > Not here. Is it already fixed? > > > On 20 déc, 09:02, mmstud wrote: > > > > When i try to open web2py.com domain it redirects to ano

[web2py:13922] web2py.com downloads zip file???

2008-12-20 Thread mmstud
When i try to open web2py.com domain it redirects to another domain and open a file download, huh? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web

[web2py:13921] Re: accepting space charaters as %20 on request.args

2008-12-20 Thread mmstud
Please could you clarify, what kind of security issues it woud raise? On 20 joulu, 09:07, mdipierro wrote: > This will not supported. You can change the regex_url in main.py but > this may cause security issues. > > Massimo > > On Dec 19, 3:13 pm, mmstud wrote: > >

[web2py:13897] Re: #irc

2008-12-19 Thread mmstud
web based pointy clicky stuff ;) > > > On Fri, Dec 19, 2008 at 11:45 AM, mmstud wrote: > > > > By the way, have you thought to open / join irc channel for web2py > > > discussion? #web2py dozens of small questions could be easily and fast > > > answered there, w

[web2py:13895] Re: accepting space charaters as %20 on request.args

2008-12-19 Thread mmstud
The reason for need of spaces on url traces to my tests over SEO urls. _ under_lined words does not rank as well as -con-cate-nated strings. And finally it seems properly encoded space character works best. So i really need this to work. Also query part of the url is not, where i want to set my ke

[web2py:13862] #irc

2008-12-19 Thread mmstud
By the way, have you thought to open / join irc channel for web2py discussion? #web2py dozens of small questions could be easily and fast answered there, what do you think? pylons and turbogears has a quite nice and active channel, if i remember some time back. -Marko --~--~-~--~~

[web2py:13861] accepting space charaters as %20 on request.args

2008-12-19 Thread mmstud
How can i accept spaces in a form of %20 in url? domain.com/app/default/index/my%20space%20word at the moment i get invalid request from web2py -Marko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Fra

[web2py:13855] Re: subselect and where in DAL

2008-12-19 Thread mmstud
For a start i tried something like: words = db(db.words.key in ['news', 'sports', 'arts']).select(db.words.id, db.words.key, db.words.parent) but i think i halted my server wih that.. On 19 joulu, 10:19, mmstud wrote: > Im using mysql backend and like to do thi

[web2py:13852] subselect and where in DAL

2008-12-19 Thread mmstud
Im using mysql backend and like to do this sort of query, is it possible with DAL? SELECT w1.key, (SELECT COUNT(*) FROM words w2 WHERE w2.parent = w1.id) AS childs FROM words w1 WHERE w1.key IN ('key1', 'key2', 'key3') --~--~-~--~~~---~--~~ You received this me

[web2py:13833] help with routes

2008-12-18 Thread mmstud
So im in a point of using routes to simplify my urls on my app, but since i have not done it before, i prefer to ask your advice. If i have understood correctly, i need to use web2py/routes.example.py -> routes.py and create mappings to routes_in. So far my application has a simple urls: domain.

[web2py:13806] Re: character encoding problem when retrieving data from database

2008-12-18 Thread mmstud
> > The reason this works is that there is no conversion when you convert > to or from BLOB columns. > > On Dec 18, 1:48 pm, mmstud wrote: > > > Tables are not made by web2py... is it possible to change table > > encoding afterwards? Now schema description says

[web2py:13800] Re: character encoding problem when retrieving data from database

2008-12-18 Thread mmstud
encoding. > Check the data in the db. Do a select from the console or a mysqldump > and inspect the file. > > On Dec 18, 1:03 pm, mmstud wrote: > > > Im using MySQL. Same data is retrieved correctly on php side and there > > are no problems showing it on ui. Using php&#

[web2py:13798] Re: character encoding problem when retrieving data from database

2008-12-18 Thread mmstud
dled. > Generally, if all is well, you should not be doing any encode/decode- > ing (unless your data is broken in the first place). > > On Dec 18, 12:21 pm, mmstud wrote: > > > Hi, > > > a lot of wuestions ahs risen after using web2py, if i just got time to > &g

[web2py:13795] Re: Request for "Legend"

2008-12-18 Thread mmstud
What is the logic defining some html element classes and not defining some anyway? I have created my own library of html elements, that i use on web2py, which at least tries to follow standard html specification. -Marko On 17 joulu, 17:42, DenesL wrote: > You can create it using the TAG helper.

[web2py:13794] character encoding problem when retrieving data from database

2008-12-18 Thread mmstud
Hi, a lot of wuestions ahs risen after using web2py, if i just got time to write them here. One of the latest is, that id like to know, how to retrieve data with correct encoding from database. My situatio is, that i have a php serialized data field, which i want to get to web2py application. I h

[web2py:13123] DB design problem & DAL query

2008-12-08 Thread mmstud
Hi, id like to hear your suggestions on how to design the case im facing at the moment. I have a library, stock and online shop, which should work together. Stock has compositions (books) and other variable items, that are both rented and selled. So how would you link ShopItems to either compos

[web2py:12911] Re: SWFObject html helper

2008-12-04 Thread mmstud
And of cource it is same with self._getAttributes() I wanted to separate them (content, attributes) to individual methods because there are tags that do not need them both, like self closing tags, etc. I dont know, if it is a performance issue though. On Dec 4, 7:12 pm, mmstud <[EMAIL PROTEC

[web2py:12907] Re: SWFObject html helper

2008-12-04 Thread mmstud
Sorry for confusion and mix. self._getContent() is my own private method on parent class (STYLE, SCRIPT -> DIV) but what it does is basically: co=''.join([xmlescape(component) for component in self.components]) html.py:157 then self.tag_name = self.tag and NEWLINE = '\n' is global constant

[web2py:12900] SWFObject html helper

2008-12-04 Thread mmstud
I created a new swfobject html helper class to manage embedded flash media. I want to share it both for a review and to motivate contribute great tips and content to this framework. I also have some questions like: how to create static links right way? Im using my own Script (and Style) helpers he

[web2py:12883] Re: trying to get multiple db

2008-12-03 Thread mmstud
abase((field == value) & (table.id != self.record_id)).select(limitby=(0, 1)) else: # in case of inserting new record, there shouldnt be any rows found rows = database(field == value).select(limitby=(0, 1)) if len(rows) > 0: return (value, self

[web2py:12634] Re: trying to get multiple db

2008-11-29 Thread mmstud
On Nov 29, 9:55 pm, mmstud <[EMAIL PROTECTED]> wrote: > Im trying to get this working: > > db=SQLDB('mysql://[EMAIL PROTECTED]/web2py_test') > db2=SQLDB('mysql://[EMAIL PROTECTED]/web2py_test2') > > then i defined tables db... and db2... but found,

[web2py:12633] trying to get multiple db

2008-11-29 Thread mmstud
Im trying to get this working: db=SQLDB('mysql://[EMAIL PROTECTED]/web2py_test') db2=SQLDB('mysql://[EMAIL PROTECTED]/web2py_test2') then i defined tables db... and db2... but found, that all tables were created under one database, the first one (web2py_test). So how this should work? Thanks, -

[web2py:12501] multi db.table.field support

2008-11-26 Thread mmstud
Do you think it would be possible and not too much work to do such a form checker, that takes field names like: and does automatic value population, submit validation, perhaps even insert/update with those fields? Is there somekind of connection pool, that could be used to pass to form creat

[web2py:12500] form validation

2008-11-26 Thread mmstud
How would you do such a validation, that when one field is filled, for should check, that another field is filled also? That means one field is dependent on another field. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

[web2py:12424] form element classes

2008-11-23 Thread mmstud
I need optgroup and caption elements on my forms, so i had to add them to html.py, but wouldnt it be nice to have all standard elements supported by web2py? http://www.htmlhelp.com/reference/html40/alist.html --~--~-~--~~~---~--~~ You received this message becaus

[web2py:12423] Re: T2 Registering

2008-11-23 Thread mmstud
On Nov 24, 3:40 am, mdipierro <[EMAIL PROTECTED]> wrote: > db.t2_person.exposes=['name','email','password'] ## add the fields you > need. What is the difference between exposes=[] and SQLFORM(fields=[]), btw? > > On Nov 23, 6:22 pm, Oscar <[EMAIL PROTECTED]> wrote: > > > Which is the best way of

[web2py:12274] Re: SQLFORM for multiple tables

2008-11-20 Thread mmstud
Im thinking to create an insert and update form with fields taken from multiple tables. Person has address, email and phone instances on separate tables, but for simple interaction, they should be present on same form view. What is the best way to solve this kind of situation at the moment, does S

[web2py:12267] Re: PDF manual on Lulu downloaded fine...

2008-11-20 Thread mmstud
It must have been edited, i can't believe, huh... On Nov 21, 3:03 am, kaj <[EMAIL PROTECTED]> wrote: > and thanks Massimo for such a good bargain! > > Btw folks, take a look at this video - it aint over until its over! - > and this guy certainly proved that for sure, > completely amazing... > > h

[web2py:12222] Re: more complicated label in IS_IN_DB

2008-11-20 Thread mmstud
Never mind, it was supported already exactly the way i was thinking it should. So passing "%(id)s, %(firstname)s %(lastname)s" as a label gives: "1, My Name" -Marko On Nov 20, 9:11 pm, mmstud <[EMAIL PROTECTED]> wrote: > how big change on IS_IN_DB validato

[web2py:12221] more complicated label in IS_IN_DB

2008-11-20 Thread mmstud
how big change on IS_IN_DB validator would it be to support more complicated label? My label would be something like: label = "%(id)s, %(firstname)s %(lastname)s" -> "1, My Name" That would prevent ambiguity, that is case, when listing persons with one label only... I tried to create new argume

[web2py:12199] Re: Web2py & Elixir

2008-11-20 Thread mmstud
AIL PROTECTED]> wrote: > If you send me some example of elixir models I can add a layer to > support them. I did that alredy for Django and SQLAlchemy. > > Massimo > > On Nov 17, 1:40 am, mmstud <[EMAIL PROTECTED]> wrote: > > > Earlier this year i made a web app wi

[web2py:12184] Re: Web2py & Elixir

2008-11-19 Thread mmstud
p thru' the model and see > "users" populated with an SQLTable.  In the controller/action, I look > in Globals and see "user" containing an SQLTable.  But when I hit the > line print users.fields then I get the abover error.  I don't > unnerstan - can someo

[web2py:11951] Web2py & Elixir

2008-11-16 Thread mmstud
Earlier this year i made a web app with Pylons using Elixir as ORM front layer. I got a project lately and browsed to Pylons, Django and Turbogears sites to find, if there are any updates. Finally on some point using Google i found web2py mentioned. I dont remember, that i had read it last year, w

[web2py:11950] Re: Cannot import from CSV file

2008-11-16 Thread mmstud
Was it only column names? I tried to import csv file, got parse errors althought i had column names... Finally i got tired of trying to import with web2py and did import data with Navicat. Same csv file and it worked well. But now my character encodings are wrong... Actually i did one test, where

[web2py:11835] Re: MySql table already exists error

2008-11-14 Thread mmstud
known is a table exist if web2py created it. > > Massimo > > On Nov 14, 2:24 am, mmstud <[EMAIL PROTECTED]> wrote: > > > I dont know how this should be, but in my case, i have a table > > 'Members' already created on database having inserted rows and data to &g

[web2py:11829] MySql table already exists error

2008-11-14 Thread mmstud
I dont know how this should be, but in my case, i have a table 'Members' already created on database having inserted rows and data to use in my application. But when i try 'database administration' it seems web2py tries to create a new table, although i think it should just see, if table definitio