Re: [web2py] Re: web2py.com down?

2011-11-02 Thread Michal Jursa
Website is back and running... YIPIIIEE Michal On 11/02/2011 01:01 PM, Anthony wrote: Yes, looks like it's down: http://www.downforeveryoneorjustme.com/web2py.com

[web2py] web2py.com down?

2011-11-02 Thread Michal Jursa
Hi, is there some problem with web2py site? I just started new project, returned to web2py and need a book for a while in the re-beginning..:D Michal

[web2py] Example broken

2010-08-12 Thread Michal Jursa
Hi, just returned back to web2py after some time and browsed examples to refresh my web2py skills and found some typo. 1.83.1 images_examples.py uses db.image, which is not present in models: def index(): form = SQLFORM(db.image) ... Nothing important, but some new users or beginners

Re: [web2py] Decimal vs Float and Documentation

2010-06-01 Thread Michal Jursa
Hi, decimal is not directly supported as it is not supported in some db engines, but you can use SQLCustomType. Example here: http://www.web2py.com/examples/static/epydoc/web2py.gluon.sql.SQLCustomType-class.html Michal NetAdmin wrote: 1. What is the best field choice for currency calculatio

[web2py:24428] Re: web2py 1.64.2 is OUT

2009-06-18 Thread Michal Jursa
Markus Gritsch wrote: > On Thu, Jun 18, 2009 at 1:04 AM, mr.freeze wrote: New IS_COMPLEX validator, thanks Mr. Freeze > > Well, IS_COMPLEX is not a good name since Python has a complex > datatype: e.g. 3+5j and one could assume it is tested for this. > > Markus I did so, until explained. R

[web2py:22770] Re: Decimals again

2009-05-27 Thread Michal Jursa
MYSQL spec: For DECIMAL(M,D), the maximum M is 65 create: CREATE TABLE foo( bar decimal(10,2) ) POSTGRESQL spec: DECIMAL(M,D), exact, no limit create: CREATE TABLE foo( bar decimal(10,2) ) DenesL napsal(a): > Lets document the support for decimal type in the available DBs (my $. > 02): > > p=

[web2py:22744] Re: Decimals again

2009-05-27 Thread Michal Jursa
+1 !! exactly ;) Kuba Kucharski wrote: > Stay with web2py! I have the same problem. I've decided to wait. > Decimal is a must. Web2py is not an enterprise framework until we have it ;) > --~--~-~--~~~---~--~~ You received this message because you are subscribed t

[web2py:22741] Re: Decimals again

2009-05-27 Thread Michal Jursa
7; but convert the values to > decimal.Decimal() before using them in computations. This will give > you the precision you want. > > Massimo > > On May 27, 7:56 am, Michal Jursa wrote: >> I know about trunk solution, but you've recently said you dont like to >>

[web2py:22736] Re: Decimals again

2009-05-27 Thread Michal Jursa
> July 31 but it may be done sooner. > > Masssimo > > On May 27, 6:53 am, Michal Jursa wrote: >> Hi, >> I know there were a lot of posts about pros and cons of implementing >> DECIMAL type to DAL, but there is no result. As DECIMALs are really >> important for

[web2py:22725] Decimals again

2009-05-27 Thread Michal Jursa
Hi, I know there were a lot of posts about pros and cons of implementing DECIMAL type to DAL, but there is no result. As DECIMALs are really important for me, I'd like to know if it will be included in DAL and if yes, when ( i don't need exact date :) ). I can patch DAL to do it for me on post

[web2py:21357] Re: Table already exists problem [again]

2009-05-06 Thread Michal Jursa
Abbsolutely not, SHOW TABLES is MYSQL specific command. Postgres implements the same funcionality with SELECT * FROM pg_catalog.pg_tables, Oracle makes the same magic with SELECT TABLE_NAME FROM USER_TABLES etc etc... Michal mdipierro wrote: > hmmm. This may be a good idea. Is SHOW standard S

[web2py:20891] Re: Is this possible? How?

2009-04-30 Thread Michal Jursa
do something with > them... How would that be done? > > Cheers, > > > > On Apr 30, 6:42 am, Jason Brower wrote: >> Look into jquery, it'll be easy. Have you used that before? >> >> On Thu, 2009-04-30 at 15:06 +0200, Michal Jursa wrote: >>> h

[web2py:20872] Re: Is this possible? How?

2009-04-30 Thread Michal Jursa
http://www.w3schools.com/jsref/jsref_onunload.asp Jason Brower wrote: > Sounds like more of an html jquery thing. What are you wanting to do in > particular? > Regards, > Jason > > > On Wed, 2009-04-29 at 21:41 -0700, waTR wrote: > >> I have a form with a submit button. However, I need web2py

[web2py:20543] Re: psycopg2-2.0.10 install linux ,help me

2009-04-26 Thread Michal Jursa
Please report this to psycopg developers. I think there are mostly only psycopg users like me here and this has nothing to do with web2py. Michal wengfei2...@163.com wrote: > I use python2.5 ,but the problem exists then > > [r...@localhost psycopg2-2.0.10]# python setup.py install > running

[web2py:20240] Re: ENUM field

2009-04-22 Thread Michal Jursa
Just use: SQLField('field_name', requires = IS_IN_SET(['val1', 'val2']) Michal Álvaro Justen [Turicas] wrote: > Is there a way to create ENUM() fields in database or I have to create > a string field and do some verification? > --~--~-~--~~~---~--~~ You receive

[web2py:20242] Re: ENUM field

2009-04-22 Thread Michal Jursa
Validation is done by web2py and database field is string as you've said. This is so due to database compatibility i think. Not every database supported by web2py provides ENUM type. Michal Álvaro Justen [Turicas] wrote: > On Wed, Apr 22, 2009 at 9:20 AM, Michal Jursa wrote: >

[web2py:20168] Re: Compliments

2009-04-21 Thread Michal Jursa
SO SAY WE ALL!!! : Michal Pynthon wrote: > Hello > > Im Pynthon and I'm 14 years old, sorry for my bad English but I come > from Holland. However, I started to learn Python 2/3 weeks ago for > Django. When I started Django I had a lot of problems. Then I saw Grok > some of the people said t

[web2py:20071] Re: Color picker?

2009-04-20 Thread Michal Jursa
In my point of view, this has nothing to do with web2py. Just use google and find free js color picker like: http://www.mattkruse.com/javascript/colorpicker/ http://www.free-color-picker.com/color-picker-samples.php etc, etc... Michal weheh wrote: > Is there a color picker that could be

[web2py:19934] Re: Host name in routes.py

2009-04-17 Thread Michal Jursa
Oh, i see, I misunderstood that part of route .. My fault, sorry... Michal mdipierro wrote: > There is no port number in routes in because it would not make sense. > If the server got the request the port matched already. > > Massimo > > On Apr 17, 6:10 am, Michal Jursa wr

[web2py:19930] Re: Host name in routes.py

2009-04-17 Thread Michal Jursa
Correct me if i'm wrong, but port numbers are usually nubers so this regexp cannot match i think as you have [a-z]+ after : in url. Isn't this your trouble? routes_in = ('^.*?:https?://localhost:[a-z]+/$','/my_app/default/index'), ) Michal Mladen Milankovic wrote: > Hi. > > I'm testing thing

[web2py:19883] Hidden 'root' controller

2009-04-16 Thread Michal Jursa
Is is possible to make somethink like: http://my_site/my_page ?? Where 'my_page' will be already request.args[0] for some controller? Trying to figure this, but no luck. Further i'd like to redirect to another controller if 'my_page' doesn't exist, but this i can solve i think. Michal --~--

[web2py:19859] Re: redirect and response.flash

2009-04-16 Thread Michal Jursa
Didn't test it, but i think response.flash will be lost with redirect(), but session.flash should be fine and pass everything. So if you need redirect, use session.flash then. All you have to do is handle the removal of session.flash after the redirect. Michal mdipierro wrote: > I think that

[web2py:19656] Re: Can't seem my web apps from other computers on the network.

2009-04-13 Thread Michal Jursa
By default web2py application binds only to local loopback device, so it is accessible only from local machine. Use -i 0.0.0.0 when starting application and it will be accessible on every network device in your computer. Michal Jason Brower wrote: > I try to use my IP addy from another comput

[web2py:19655] Re: how to do autoindex for directories & serve static html files

2009-04-13 Thread Michal Jursa
I'd say, if you just need to serve direcotry indexes and static files, use separate http server for that part and not application server. Michal Yarko Tymciurak wrote: > Note: If you serve static files like this, you will run into > (potentially) one problem: > > If (as is common) a link to

[web2py:19527] Re: Stability

2009-04-09 Thread Michal Jursa
Finally I placed my web2py application in inittab and init now watches it so if it crashes it is automatically respawned. Thats workaround but everything else failed..:( Michal Michal Jursa wrote: > and bad news again... Few minutes after optimistic mail Segmentation > fault came

[web2py:19524] Re: Stability

2009-04-09 Thread Michal Jursa
and bad news again... Few minutes after optimistic mail Segmentation fault came again... :( So 2.0.9. runs better, lasts longer, but crashes too. Anyone can tell me how to trace it? I'd like to send bug report to psycopg developers? Michal Michal Jursa wrote: > Good news! >

[web2py:19521] Re: Stability

2009-04-09 Thread Michal Jursa
Good news! psycopg2 2.0.9 up and running and looks stable. So upgrade from 2.0.7 to 2.0.9 solved the trouble i hope. Pfew..:) Just have to build my deb package for production use. 2.0.9 is already accepted in 'testing' branch but it sometimes takes months to get to 'stable&#x

[web2py:19518] Re: Stability

2009-04-09 Thread Michal Jursa
Just some progress info.. On my IBM notebook in same but 32bit environment looks everything stable and fine with psycopg2 2.0.9. Will try 64bit version soon and will report results. I just hope the bug was fixed in this minor version update. Michal Michal Jursa wrote: > I used default Deb

[web2py:19509] Re: Stability

2009-04-09 Thread Michal Jursa
before, but i used Apache/mod_python so may be i missed some occasional crashes which beacme fatal with web2py, coz it is not relaunched automatically :) Michal mdipierro wrote: > this is bad. > > On Apr 9, 4:00 am, Michal Jursa wrote: >> Well, >> Step 4: >> stressing

[web2py:19492] Re: Stability

2009-04-09 Thread Michal Jursa
64bit problem only but all my new servers are 64bit. Michal Michal Jursa wrote: > > Going to stress this on mysql. > > Michal > > mdipierro wrote: >> This is the first time I hear about it. A bug in your app should not >> cause web2py to crash. >> >> is

[web2py:19490] Re: Stability

2009-04-09 Thread Michal Jursa
this related to traffic? > > What if you just run welcome? > > What if you just run welcome and establish connections to DB via > psycopg2? > > I think it is necessary to isolate the cause of these crashes. > > Make sure you are running 1.60. > > Massimo >

[web2py:19474] Stability

2009-04-08 Thread Michal Jursa
Hi, i finished my very first application done with web2py and i have a little problem. I use it on Debian 64bit, python 2.5 with psycopg2 and sometimes the application crashes without a word. As I publish this via reverse proxy, then crash of the application means web service is down. I will h

[web2py:19382] Re: make validator ignore empty string

2009-04-07 Thread Michal Jursa
Whops, sorry, didn't know that, won't do it any more. Michal AchipA wrote: > > Discussion subject changed to "make validator ignore empty string" by > Michal Jursa > > You probably sent your message as a reply to an existing, instead of a > typing a &#x

[web2py:19380] Re: make validator ignore empty string

2009-04-07 Thread Michal Jursa
What? What have i done wrong? Michal DenesL wrote: > @Michal, > tsk... tsk... bad etiquette... hijacking other people's posts. > You can always open a new post with your issue. > > > On Apr 7, 9:47 am, Michal Jursa wrote: >> Hi, >> i need to make a vali

[web2py:19373] Re: make validator ignore empty string

2009-04-07 Thread Michal Jursa
ahh, thanks massimo i somehow missed this... Michal alias Plysak mdipierro wrote: > IS_NULL_OR(IS_EMAIL()) > > On Apr 7, 8:47 am, Michal Jursa wrote: >> Hi, >> i need to make a validation like 'nothing or email', but IS_EMAIL is >> always complaining

[web2py:19368] make validator ignore empty string

2009-04-07 Thread Michal Jursa
Hi, i need to make a validation like 'nothing or email', but IS_EMAIL is always complaining even on empty string. How to combine required validators to do this EMPTY or EMAIL ? Michal alias Plysak --~--~-~--~~~---~--~~ You received this message because you are s

[web2py:19340] Re: The official Web2py Book by Massimo....for free?

2009-04-06 Thread Michal Jursa
HEY PEOPLE! Stop blaming Massimo for nonfree book! He wrote the book, he is owner of all rights, copyrights etc. and it is absolutely on him if he will or will not let it go for free. He explained so many times it is not his job to sell the book but he has some reasons to do that and it is not

[web2py:19327] Re: Uploads in subdirs

2009-04-06 Thread Michal Jursa
move the file after > uploads but this can break downloads. Perhaps the best way is to build > symlinks after upload. > > On Apr 6, 4:39 pm, Michal Jursa wrote: >> Hi, >> may be i'm missing something but is there a possibility to manage >> uploads in

[web2py:19321] Uploads in subdirs

2009-04-06 Thread Michal Jursa
Hi, may be i'm missing something but is there a possibility to manage uploads in subdirs? I'd like to organize the uploads a bit :) Michal alias Plysak --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Fr

[web2py:19160] Re: Sub query not registering accurately?

2009-04-05 Thread Michal Jursa
_posts.posted_by LEFT JOIN mb_posts AS >> mb_posts2 ON mb_posts2.reply_to=mb_posts.id WHERE (mb_posts.board_id=1 >> AND mb_posts.reply_to IS NULL) GROUP BY mb_posts.id >> >> Hope that makes a bit more sense. :) Everything in the qery works fine >> except for mb_pos

[web2py:19154] Re: Sub query not registering accurately?

2009-04-05 Thread Michal Jursa
# wrong? > > But it may still not work. nested selects should go in the query, not > in the list of fields to be selected. You may need to refactor your > select. Perhaps if you explain in words what you are trying to select > we can help more. > > Massimo > > > On

[web2py:19146] Re: Sub query not registering accurately?

2009-04-05 Thread Michal Jursa
I'm getting interested in this, coz that query is strange, but what that DAL call generates is: SELECT mb_posts.id, mb_posts.title, mb_posts.message, mb_posts.posted_by, mb_posts.date_posted, mb_posts.locked, mb_posts.sticky, mb_posts.last_edited, mb_posts.board_id, mb_posts.reply_to, mb_post

[web2py:19128] Re: web2py and Python3

2009-04-05 Thread Michal Jursa
> > What feature of 3.0 do you consider so important to constraint you? > > Massimo > LOL, I wanted to ask the same question..:)) +1 Michal alias Plysak --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py

[web2py:19071] Re: The official Web2py Book by Massimo....for free?

2009-04-04 Thread Michal Jursa
That's absolutely not about money and I understand the reasons only partially, but if you are seriously interested in web2py, $10 is not so much. I hope Massimo will clear this all on website soon :) Michal alias Plysak Pystar napsal(a): > If Massimo is concerned about money (which isnt strang

[web2py:19067] Re: The official Web2py Book by Massimo....for free?

2009-04-04 Thread Michal Jursa
And again Massimo you should place some really deep and exact explanation about the book status and reasons why it is not free to the website..:) Michal alias Plysak Pystar napsal(a): > I had this weird idea today, in other to bring web2py which IMHO is > the best python framework out ther

[web2py:18855] Re: problems with i18

2009-03-31 Thread Michal Jursa
Hi Marco, you got mdifferent preffered language set in your browsers. *** indicates application is using some language file and *** marks variables which were not translated yet. So check language prefferences in your browsers and make translation in tour application administration. :) Michal

[web2py:18840] Re: T2 login fails with internet explorer 7...

2009-03-31 Thread Michal Jursa
Hi Stefan, the problem is not in IE but in your hostname. Hostname simply must NOT contain anything but letters, nubers and '-' character. Anything else is corretly assumed as malformed url and should not work. So don't blame IE (even i don't like it neither), but this is not error, that's cor

[web2py:18778] Re: DAL Insert error

2009-03-30 Thread Michal Jursa
That's not problem of DAL. I just guess some of those inserts failed due to some constraints and that's why the transaction is aborted and rollback should be issued. Michal alias Plysak voltron wrote: > Hi, > > does anyone have an idea what could cause this error? > > current transaction is

[web2py:18724] DAL feature request - index

2009-03-29 Thread Michal Jursa
Hi, last night i found there is no possibility to force DAL to create an index on some column. Sometimes it is necessary to select records not only by primary key and in that case index built on some other column should do the work better than full scans on database. So I suggest to implement

[web2py:18549] Re: Get stuck on incorrect view template

2009-03-24 Thread Michal Jursa
what happens. > > -wj > > On Tue, Mar 24, 2009 at 9:41 AM, Michal Jursa wrote: >> That's the exact spelling of the template which makes that problem >> that's a typo i did and locked whole application. Tried to repeat it a >> few times and it hangs whol

[web2py:18537] Re: Get stuck on incorrect view template

2009-03-24 Thread Michal Jursa
ias Plysak Wes James wrote: > On Tue, Mar 24, 2009 at 8:35 AM, Michal Jursa wrote: >> Strange thing keeps happen to me: >> If i save a template with syntax error like >> >> URL=(r=request,c=controller',f='function') <= missing quota at controller > &g

[web2py:18532] Get stuck on incorrect view template

2009-03-24 Thread Michal Jursa
Strange thing keeps happen to me: If i save a template with syntax error like URL=(r=request,c=controller',f='function') <= missing quota at controller whole web2py gets stuck and has to be killed and restarted. Running Debian 5.0, Python 2.5 and have no idea what's going on. If templates are

[web2py:18521] Re: about buttons

2009-03-24 Thread Michal Jursa
Yes, coz it cannot be called like this. The problem is not in web2py but in your page. You have to use proper javascript call. So the result should look like: Crea attività Then i think this will work as you expected. Michal alias Plysak :) Marco Prosperi wrote: > Sorry but with > Crea attiv

[web2py:18287] Re: Only allowing gif, png or jpeg images for upload?

2009-03-18 Thread Michal Jursa
So, massimo's way is pretty fine i think ..:) Mike alias Plysak Kacper Krupa wrote: > yes, but it guesses by file extension :) > > On 18 Mar, 16:00, AchipA wrote: >> Not web2py, but generic python: >> >> import mimetypes >> mimetypes.guess_type(filename)

[web2py:18268] Re: new web2py video about Auth, Service

2009-03-18 Thread Michal Jursa
Absolutely not massimo, you are a star and your screencasts are great. Mike alias Plysak :) mdipierro wrote: > I am not good at doing this. I do not type well and I hate my own > voice. > > If some of you have screenflow and are good at this, I am I happy to > script more video tutorials and yo

[web2py:18267] Re: Only allowing gif, png or jpeg images for upload?

2009-03-18 Thread Michal Jursa
Is it possible to get mime-type of the uploaded object in some web2py manner? It would be better to work with mime-type then some letters in filename I think. Mike alias Plysak :) mdipierro wrote: > class IS_GIF: > def __init__(self,em): self.em=em > def __call__(self,value): >

[web2py:18198] Re: Qusestion about the book?

2009-03-17 Thread Michal Jursa
well, web2py book is online. You can buy it on lulu.com and download whole PDF as i did. $10 not so much and it is really good job from Massimo. Thanks for the framework and the book too. Mike Baron wrote: > that is very unfortunate. > The Django project is able to sell their book and put it o

[web2py:18089] cancel alarm, just newbie panic "validator error message not working"

2009-03-15 Thread Michal Jursa
Sorry everybody, just found the right place in form to change the language etc etc...:) Sorry to bother around, but i was really getting down..:) Mike. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web

[web2py:18088] validator error message not working (may be newbie fault)

2009-03-15 Thread Michal Jursa
Hi, I'm brand new to web2py, trying to run my very first app and as I need to get translated apps i really wonder aroud this. I installed CAS to do authentications for me and modified last but one row in models/db.py to: db.cas_user.name.requires=IS_NOT_EMPTY(error_message = "nesmi byt prazdn