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
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
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
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
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
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=
+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
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
>>
> 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
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
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
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
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
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
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
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:
>
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
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
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
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
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
--~--
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
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
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
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
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!
>
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
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
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
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
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
>
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
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
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
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
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
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
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
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
_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
# 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
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
>
> 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
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
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
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
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
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
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
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
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
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
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
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)
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
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):
>
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
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
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
59 matches
Mail list logo