On Sep 12, 2009, at 9:30 AM, Babu wrote:
> I have noticed, that I not able to successfully download web2py source
> file in .zip format due to some kind of controls put in our company.
> Download completes successfully but the resulting file is not
> unzipable.
>
> Would it be possible to provide
On Sep 12, 2009, at 9:30 AM, Babu wrote:
> I have noticed, that I not able to successfully download web2py source
> file in .zip format due to some kind of controls put in our company.
> Download completes successfully but the resulting file is not
> unzipable.
>
> Would it be possible to provide
On Sep 14, 2009, at 9:09 AM, mdipierro wrote:
>
> Just posted.
>
> http://groups.google.com/group/web2py/browse_thread/thread/796b11e9e88f552b
>
> Please try again and let me know.
FWIW, I just got a good download with SL.
>
> On Sep 14, 10:58 am, Wes James wrote:
>> Odd - this unzips on leopa
On Sep 14, 2009, at 4:26 PM, Graham Dumpleton wrote:
>
>
>
> On Sep 15, 12:14 am, mdipierro wrote:
>> The web2py_manual_cut.pdf is from the second edition.
>
> When I downloaded it yesterday and when I downloaded it again just
> now, it contains mod_wsgi setup example from first edition. So, eit
On Sep 13, 2009, at 11:00 PM, mdipierro wrote:
> In web2py you create a menu like
>
>response.menu=[['Title',False,URL(...),[]]
>
> where [] is a submenu.
>
> You place an icon close to the title by doing
>
>response.menu=[[TAG[''](IMG(_src=icon,'Title'),False,URL(...),[]]
>
> where icon
On Sep 16, 2009, at 1:18 PM, David Zejda wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hello,
>
> I returned to examine the problem more deeply, but now it behaves
> differently and I do not know why, I do not remember any change, which
> could cause the change.
>
> Now the error
On Sep 18, 2009, at 1:06 PM, waTR wrote:
> Related question though... how can one check if password entered
> matches password stored in DB for that user? When I retrieve the
> stored password via select(), it is encrypted. How does Auth decrypt?
> Where can I find that code (what file)?
Briefly
ld] == form.vars.get
(passfield, ''):
# success
user = temp_user
The values being compared are hashes, because the field in question
requires IS_CRYPT(), which really doesn't do anything but hash the
value.
>
It happens in the IS_CRYPT() validation, which returns the hashed
value of the field.
>
> The above code doesn't show that translation...
>
>
>
>
>
> On Sep 18, 5:08 pm, Jonathan Lundell wrote:
>> On Sep 18, 2009, at 4:44 PM, waTR wrote:
>>
>>
>&
commented. This is a case in
point. It's not at all obvious to the casual reader (it wasn't to me
when I first read it) how password checking is handled.
> On Sep 18, 5:08 pm, Jonathan Lundell wrote:
>> On Sep 18, 2009, at 4:44 PM, waTR wrote:
>>
>>
>>
&g
On Sep 21, 2009, at 12:02 AM, Fran wrote:
> On Sep 21, 5:13 am, waTR wrote:
>> Is it possible to convert the request.vars.get(passfied, '') to the
>> same hash form as you would get from using form() ?
>
> Yes:
> myhash = hmac.new(auth.settings.hmac_key, request.vars.get(passfield,
> ''), hashli
de behind them...without re-
> doing their work in any-way...this includes re-building their forms in
> web2py using FORM.
Well, that's reasonable. But I think it's desirable to use common code
for hashing passwords when they're first written to the database and
when they'
On Sep 24, 2009, at 7:40 AM, pwoolf wrote:
> Thanks for the suggestion Yarko. Here is the script attached.
A small correction. I'm doubtful that
os.system("cd ~/")
will work as you expect, since it's going to change the directory in a
child process, and not affect the caller's environment (
On Sep 24, 2009, at 8:27 AM, Jonathan Lundell wrote:
>
> On Sep 24, 2009, at 7:40 AM, pwoolf wrote:
>
>> Thanks for the suggestion Yarko. Here is the script attached.
>
> A small correction. I'm doubtful that
>
> os.system("cd ~/")
>
> will wo
On Sep 26, 2009, at 12:33 PM, mr.freeze wrote:
>
> Can someone with a mac please view this site and tell me what font it
> defaults to?:
>
> http://www.web2pyslices.com/main/default/index
It's going to be a function of available fonts, not the browser or
system. Macs have Arial and Helvetica,
l, Helvetica;
use
font-family: "Segoe UI", Arial, Helvetica, sans-serif;
Also, you might want to check your CSS syntax:
http://jigsaw.w3.org/css-validator/validator?uri=http://www.web2pyslices.com/main/default/index
In particular, // is not a CSS comment delimiter.
>
> On
fixing.
>
> On Sep 26, 3:06 pm, Jonathan Lundell wrote:
>> On Sep 26, 2009, at 1:00 PM, mr.freeze wrote:
>>
>>
>>
>>> Thanks, a friend was telling me that it was defaulting to Serif. I
>>> think he is confused.
>>
>> On general principle
On Sep 26, 2009, at 1:42 PM, mr.freeze wrote:
>
> I fixed them. That site is really handy. Thanks again!
It is. It's linked, along with some other useful stuff, from http://www.w3.org/
.
>
> On Sep 26, 3:30 pm, Jonathan Lundell wrote:
>> On Sep 26, 2009, at 1
On Sep 26, 2009, at 1:49 PM, Jonathan Lundell wrote:
>
> On Sep 26, 2009, at 1:42 PM, mr.freeze wrote:
>
>>
>> I fixed them. That site is really handy. Thanks again!
>
> It is. It's linked, along with some other useful stuff, from
> http://www.w3.org/
I
On Sep 27, 2009, at 1:31 PM, mr.freeze wrote:
>
> Not sure if it matters but RFC 2142 is from 1997 .RFC 2821 is from
> 2001. But as a matter of practicality, I would just do like google
> and make them case insensitive.
2821 is just a requirement that SMTP MTAs preserve mailbox case;
web2py s
There's a bug.
Massimo, here's a patch with updated test cases.
http://lobitos.net/web2py-patches/gluon/validators.py
On Sep 27, 2009, at 3:50 PM, Russell wrote:
>
> Hi,
>
> It seems that email addresses without a user portion (eg,
> '@whatever.com') will pass IS_EMAIL() validation. Is this
On Sep 28, 2009, at 2:53 PM, mr.freeze wrote:
>
> Can we just replace gluon.contrib.markdown2.py or were there other
> changes? Trying to avoid an upgrade on my live sites.
That seems to be the only change (well, and the version number).
>
> On Sep 28, 4:42 pm, Massimo Di Pierro wrote:
>> As y
On Sep 28, 2009, at 6:39 PM, Yannick wrote:
>
> Hello mate,
>
> Does anyone use Wing IDE on a Mac machine with Web2py installed
> If yes can you please let me know how you configured Web2py and
> Wing ??? Because I followed this instruction
> http://www.wingware.com/doc/howtos/web2py
> and
On Sep 28, 2009, at 6:39 PM, Yannick wrote:
> Does anyone use Wing IDE on a Mac machine with Web2py installed
> If yes can you please let me know how you configured Web2py and
> Wing ??? Because I followed this instruction
> http://www.wingware.com/doc/howtos/web2py
> and I got this error
nd not
gluon, since they're in the same directory.
Try setting a breakpoint at import gluon.import_all and look at
sys.path at that point.
>
> On Sep 29, 1:21 am, Jonathan Lundell wrote:
>> On Sep 28, 2009, at 6:39 PM, Yannick wrote:
>>
>>> Does anyone use W
On Sep 29, 2009, at 7:03 AM, mdipierro wrote:
> If you still need more speed move the table definitions in a module
> (not a model) and import it from the model. I would not recommend this
> to everybody but 93 is a lot.
How does that speed things up? (Just curious.)
--~--~-~--~~---
version, if
you're going to be debugging. Much easier.
>
> Thanks
>
>
> On Sep 29, 10:04 am, mdipierro wrote:
>> You can try add gluon to the pythonpath or move it in a folder
>> already
>> in the python path.
>>
>> On Sep 29, 1:21 am, Jonatha
On Oct 3, 2009, at 7:50 AM, mdipierro wrote:
> something like this?
>
> def MYVALIDATOR:
>def __init__(self,error_message):
> self.error_message=error_message
>def __call__(self,value):
> if not re.compile('^([a-zA-Z]*[ ]*[á]*[é]*[í]*[ó]*[ú]*)+
Why not:
> if n
On Oct 5, 2009, at 5:02 PM, Álvaro Justen [Turicas] wrote:
> It depends on how you will distribute your application.
> My mother uses a system based on web2py and I've created a shell
> script to:
> - kill any web2py.py process
> - start a new web2py.py process
> - open firefox in http://localh
On Oct 6, 2009, at 1:35 PM, mdipierro wrote:
> It is good practice to put in the CSS only relative urls to other
> static files. That is not a problem with web2py.
>
> If you need to include in the CSS urls generated by {{=URL()}}
> then you should promote the css from a static file to a dyna
ontent is a
relatively small part of it.
> -Eric
>
> On Oct 6, 2:29 pm, Jonathan Lundell wrote:
>> On Oct 6, 2009, at 1:35 PM, mdipierro wrote:
>>
>>> It is good practice to put in the CSS only relative urls to other
>>> static files. That is n
es in /views/css/ ?
> All it would need to do is run the __cssheaders() function and return
> dict(), but it feels unnecessary to maintain a list of functions when
> there are files.
>
> -Eric
>
> On Oct 6, 2:29 pm, Jonathan Lundell wrote:
>> On Oct 6, 2009, at 1:35 PM
the logic (where?) that creates the default html headers could
recognize that it's got a .css file and create css headers instead.
>
> On Oct 7, 8:19 am, Jonathan Lundell wrote:
>> On Oct 6, 2009, at 2:54 PM, Eric Vicenti wrote:
>>
>>
>>
>>> Thank
#x27;s desire for a single controller solution for
CSS files, which is a different issue, but it does eliminate the need
for the __cssheaders() function.
http://lobitos.net/web2py-patches/gluon/contenttype.py
http://lobitos.net/web2py-patches/gluon/main.py
>
> Massimo
>
> On Oct 7, 10
On Oct 9, 2009, at 1:22 AM, Joe Barnhart wrote:
> We could make the wiki even simpler...
>
> Get rid of "comments" on each page. The wiki IS "comments" it
> doesn't need additional comments!
>
> Get rid of tags. Tags imply we know in advance what the structure
> of the wiki is. We don't. I
On Oct 10, 2009, at 1:22 PM, mdipierro wrote:
> When you post about an issue and the issue is solved and you email a
> response saying the issue is solved make sure you edit the subject and
> append [SOLVED].
>
> That is all.
>
> Most people, including me, do not use email for posting/reading. We
On Oct 11, 2009, at 2:04 PM, mr.freeze wrote:
>
> The example I gave was for auth membership. Say you wanted to style
> the form based on which group they were a member of. You would need a
> style sheet for each group. Also, what would happen when a new group
> was created?
You could generat
On Oct 11, 2009, at 5:37 PM, mdipierro wrote:
> It is one of those things that is not technically difficult but would
> require lots of people to change habits. Starting with me. I am still
> leaning toward switching but I would like to hear if there is any
> opposition to this.
It does look lik
On Oct 12, 2009, at 8:32 AM, carlo wrote:
> This is the reported bug:
>
> http://code.djangoproject.com/changeset/11603
>
> do you think web2py is also affected?
I think that regex_url is OK, and I'm semi-sure that the email
validator is OK. I'm not so sure about the http url validator.
--~--
On Oct 13, 2009, at 7:59 PM, DenesL wrote:
>
> Hi Sophie,
>
> you want IS_MATCH('^[a-zA-Z áÁéÉíÍóÓúÚ]+$',...) and you can drop
> IS_NOT_EMPTY(...).
> The regex above means: match a string composed only of the characters
> listed from beginning to end with minimum length=1.
> Yours said: match a s
Why
check for a-z (for example)?
>
> Massimo
>
> On Oct 13, 10:08 pm, Jonathan Lundell wrote:
>> On Oct 13, 2009, at 7:59 PM, DenesL wrote:
>>
>>
>>
>>> Hi Sophie,
>>
>>> you want IS_MATCH('^[a-zA-Z áÁéÉíÍóÓúÚ]+$',...)
On Oct 14, 2009, at 1:05 AM, Carl wrote:
>
> replying to this post myself to kick Google Groups to list it!
FWIW, your first message showed up yesterday afternoon as web2py:
32811. No replies, though.
>
> On Oct 13, 10:47 pm, Carl wrote:
>> hi,
>>
>> I'm using XP, Eclipse, Web2py/json/pyjs an
On Oct 14, 2009, at 1:02 AM, Carl wrote:
> I've replied to this message as the original (while in my browser
> history) is not listed by Google Groups.
I did a little checking on this, with the following results.
1. I received Carl's original message (yesterday) via email.
2. I found the messa
On Oct 16, 2009, at 7:32 AM, mr.freeze wrote:
> No, I think you are right (after doing some reading). Can I use
> routes.py to make my application name (or entire url) case
> insensitive?
You could in principle (by patching rewrite.py) force all incoming
paths to lower case, which would accom
On Oct 16, 2009, at 8:41 AM, Thadeus Burgess wrote:
> I dislike capital letters in the URL, just because of case in-
> sensitive websites. You type it in to the address bar, and you get a
> 404.
>
> http://tools.ietf.org/html/rfc3986
>
> All though the document it talks about how URL/URI should
On Oct 16, 2009, at 1:29 PM, mdipierro wrote:
> You may also want to consider having a bookstore buy a copy for you
> (from the ISBN) instead of ordering via Wiley so that it will be in
> their records.
Remind us what the ISBN is, please.
http://www.web2py.com/examples/default/docs still links
On Oct 16, 2009, at 3:16 PM, mr.freeze wrote:
>
>>> http://www.web2py.com/examples/default/docs still links to the
>>> first edition.
> Strange, it brings up the 2nd edition for me.
I'm referring to the Amazon and Wiley hard-copy links.
>
> On Oct 16, 3:42
On Oct 17, 2009, at 11:46 AM, Celso wrote:
>
> Hi,
> I have a html file in the myapp/static directory that I am opening
> using web2py.
>
> I can sucessfully import the javascript content from a subdirectory of
> myapp/static using relative path, for example, src="./dojoroot/dojo/
> dojo.js".
> B
On Oct 20, 2009, at 6:33 AM, mdipierro wrote:
>
> In trunk now. Please try it.
I notice that the int & float versions use conflicting interpretations
of "between":
if value == fvalue and self.minimum <= value <
self.maximum:
if self.minimum <= value <= self.maximum
On Oct 20, 2009, at 7:49 AM, mdipierro wrote:
>
> I agree, fixing in trunk.
A (minor) quibble: "integer number" sounds redundant to me. I'd use
"whole number", "integer value", or simply "integer" instead.
>
> Massimo
>
> On Oct
On Oct 20, 2009, at 10:16 AM, mdipierro wrote:
> I think "integer number" is the proper way but I am not a native
> english speaker. Any english speaker can help us on this?
Here's the (Oxford American) dictionary entry:
integer |ˈɪntədʒər|
noun
1 a whole number; a number that is not a fraction
for my Aunt Polly.
>
> On Oct 20, 12:19 pm, Jonathan Lundell wrote:
>> On Oct 20, 2009, at 10:16 AM, mdipierro wrote:
>>
>>> I think "integer number" is the proper way but I am not a native
>>> english speaker. Any english speaker can help us on this?
we could do it. Example: 'enter a valid email address'.
>
> On Tue, Oct 20, 2009 at 12:59 PM, mdipierro
> wrote:
>
> You may be right but to me "whole number" does not sound good. Anyway,
> one can use internationalization to fix this.
>
> I w
eneral, 'enter ' is more helpful and friendly than
>> 'invalid '. It's not possible in every case, but in many
>> cases we could do it. Example: 'enter a valid email address'.
>>
>>
>>
>>> On Tue, Oct 20, 2009 at 12:59 PM, mdipie
On Oct 20, 2009, at 5:24 PM, mdipierro wrote:
>
> please email it to me when done. Thanks.
Are you OK with the patches? I don't want to do the doctests until
they're settled, since the error messages figure in the tests.
>
> On Oct 20, 6:42 pm, Jonathan Lundell wrote:
y (not surprising,
really) is this one:
>>> IS_FLOAT_IN_RANGE(1,5)(5.1)
(5.0996, 'enter a number between 1.0 and 5.0')
Do we care?
>
> massimo
>
> On Oct 20, 9:25 pm, Jonathan Lundell wrote:
>> On Oct 20, 2009, at 5:24 PM, md
ternal
> representation is what it is.
It's routine floating point precision issues, I think.
The current patch has doctests for everything that changed
significantly. But I think I'll add tests for at least some of the
other validations. I don't have to to make them thorough,
On Oct 21, 2009, at 10:03 AM, Iceberg wrote:
> It is a little bit surprising and happy to see these error_message
> draw enough attention. :-) So is it time to also consider my proposal
> more than one month before?
> http://groups.google.com/group/web2py/browse_frm/thread/8cbe658406be595f
>
>
On Oct 24, 2009, at 11:08 AM, Thadeus Burgess wrote:
> My only complaint about the web editor is it is buggy. Every once in
> a while (like every 5 minutes) it will bug up, and not display the
> code correctly, hard to explain so heres a screenshot
>
> http://static.thadeusb.com/web2py_web_edi
On Oct 24, 2009, at 11:05 AM, znafets wrote:
> I think Sebastian is right. Being in a similar place I did not manage
> yet to find out how to create a form with self located fields and
> styles and attributes. Better said all of the examples I found handle
> with the default layout of the SQLFORM
On Oct 27, 2009, at 4:56 PM, mdipierro wrote:
>
> We are 10x smaller so I guess we get 10x less spam. We get about
> 50-100 spam emails/day. We block the emails used by spammers. We had
> only one reported case of actual user being spoofed. That did cause
> some trouble for the user.
>
> I am not
On Oct 28, 2009, at 9:58 AM, mdipierro wrote:
>
> On a third thougth. Mr Freeze original names are better (find and
> filter it is).
Your use of 'filter' (or my confusion about it) for both cases
illustrates its ambiguity. How about 'find' and 'exclude'?
> I added slices too. Here is an examp
On Oct 28, 2009, at 10:28 AM, mr.freeze wrote:
>
> I think you may be right. What about 'remove' instead of filter?
Sure.
>
> On Oct 28, 12:23 pm, Jonathan Lundell wrote:
>> On Oct 28, 2009, at 9:58 AM, mdipierro wrote:
>>
>>
>>
>>>
On Oct 29, 2009, at 8:36 AM, Chris S wrote:
>
> lol, well I've been all around that. Thank you so much, works just
> fine now.
>
> Is there a quick 2-min "why that works" or somewhere you could point
> me to as to what that * means/does? Apparently I'm missing out on
> something important.
It'
On Oct 29, 2009, at 9:01 AM, mdipierro wrote:
>
> I do not disagree. Shall we make is_not_empty strip?
If it's going to change, how about (also) an optional argument,
defaulting to None, that's a string that counts as empty? I'm thinking
of the case in which you put instructions to the user
t. But the point of the change
you're suggesting is the same as the one I'm suggesting: IS_EMPTY
should match non-empty strings that "count as empty". It's syntactic
sugar merely, but sweet nonetheless.
>
> On Oct 29, 11:18 am, Jonathan Lundell wrot
On Oct 29, 2009, at 9:57 AM, mdipierro wrote:
>
> send me a patch
OK.
Do you want to strip spaces? White space generally? If so, should
IS_NULL_OR do the same?
>
> On Oct 29, 11:31 am, Jonathan Lundell wrote:
>> On Oct 29, 2009, at 9:23 AM, mdipierro wrote:
>>
>
On Oct 29, 2009, at 10:14 AM, Jonathan Lundell wrote:
>
> On Oct 29, 2009, at 9:57 AM, mdipierro wrote:
>
>>
>> send me a patch
>
> OK.
>
> Do you want to strip spaces? White space generally? If so, should
> IS_NULL_OR do the same?
I see that stripping is t
x27;s not true, it's confusing.
I'll generate a patch that'll let you decide what to keep.
>
> On Oct 29, 12:25 pm, Jonathan Lundell wrote:
>> On Oct 29, 2009, at 10:14 AM, Jonathan Lundell wrote:
>>
>>
>>
>>> On Oct 29, 2009, at 9:57 AM, mdipi
he
patch.
The changes are:
* create IS_EMPTY_OR, same as IS_NULL_OR
* create a common empty-field test for IS_EMPTY_OR and IS_NOT_EMPTY to
share
* allow specification of an arbitrary string to be treated as 'empty'
* doctests all around
>
> On Oct 29, 2:46 pm, Jonathan Lundel
In case anyone is interested. I use it under OS X, but it ought to
work under any unixalike. Put it in (say) update.sh in the same
directory as web2py/, and run it to:
1. create a snapshot of your current web2py/, renamed to its web2py
version
2. download the new source version
3. unzip it
On Oct 30, 2009, at 8:44 PM, Thadeus Burgess wrote:
> I usually just
>
> svn update && rm -R applications/examples applications/welcome
That's cool if you want to update to root; I'm aiming for the release
points (with checkpointing).
--~--~-~--~~~---~--~~
You
On Oct 30, 2009, at 8:33 PM, mr.freeze wrote:
> This is useful. Perhaps worth making a slice?
> http://www.web2pyslices.com/main/default/user/login?_next=/main/slices/make_slice
I can do that. Here's an improved version. It zips the old version
instead of copying it, and has cleaner messaging
On Nov 5, 2009, at 8:52 AM, Thadeus Burgess wrote:
> Instead of putting a timer on response.flash, I moved its location
> to another location on the site that does conflict with any text.
I like Gmail's approach to flash messages. They're not obtrusive, but
they're still prominent enough to b
On Nov 5, 2009, at 12:41 PM, Russell wrote:
> It does seem that a nice solution would be to position or shrink the
> flash message on the default layout so that it is unlikely to cover
> text. But it maybe we are trying to do too much with the flash
> message? There are some messages that only
pper function once
the html gets more complex than a simple div (or the like).
BTW, with this method, does the end up getting escaped?
>
> On Nov 5, 3:13 pm, Jonathan Lundell wrote:
>> On Nov 5, 2009, at 12:41 PM, Russell wrote:
>>
>>> It does seem that a nice solution
te table. Then you can use a CSS selector like:
div.flash table.error { ... }
Thanks.
>
> On Nov 5, 9:28 pm, Jonathan Lundell wrote:
>> On Nov 5, 2009, at 1:39 PM, mdipierro wrote:
>>
>>
>>
>>> well, you can do
>>
>>> response.flash=DIV("
On Nov 8, 2009, at 7:33 AM, Benigno wrote:
>
> I didnt explain myself correctly. I am setting the equiv="Content-Type" content="text/html; charset=iso-8859-1" />
> dinamically when in spanish. However, the accented words still show
> badly.
The character set specified by the http header takes p
On Nov 10, 2009, at 12:55 PM, Timbo wrote:
>
> Massimo,
>
> I'm trying to rewrite template.py for Jython and I can't seem to
> figure out what the re_strings regex is doing. I wrote a routine for
> what I thought it was doing and that puts "\n" all over my pages. So
> I took it out entirely a
On Nov 10, 2009, at 11:49 PM, Richard wrote:
> I have some floating point numbers in my database which I need to test
> for equality. Numbers like "0.3" are failing an equality test.
> So, is there a way to store floating point numbers precisely? Or
> should I be using something like:
> offset =
On Nov 11, 2009, at 2:32 AM, Frederik Wagner wrote:
> I already filed it as a bug some days ago, but should have ask here
> before. Could it be, that the IS_IPV4 provider validates erroneous
> IPv4's?
>
> Reproduction in the shell:
> 1. type:
> a=IS_IPV4()
> 2. type e.g.:
> a('123.123')
> whic
Thank you for this.
A suggestion: perhaps the 2ed errata page could have both errata and additions?
On Nov 11, 2009, at 3:32 AM, DenesL wrote:
>
> New features not documented in book 2 ed.
> =
>
> 1.72.1
> * Alias for id field
> allows to redefine the
On Nov 11, 2009, at 9:04 AM, DenesL wrote:
> You are welcome.
> Is all the errata in one place? any volunteers otherwise?.
http://wiki.web2py.com/Errata_for_web2py_2nd_Edition_Book
> Why have them together (errata & additions)?
Perhaps not on the same page, but parallel, and linked.
I was th
On Nov 11, 2009, at 10:01 AM, DenesL wrote:
>
>
> On Nov 11, 12:08 pm, Jonathan Lundell wrote:
>> On Nov 11, 2009, at 9:04 AM, DenesL wrote:
>>
>>> You are welcome.
>>> Is all the errata in one place? any volunteers otherwise?.
>>
>> http:/
On Nov 13, 2009, at 4:09 PM, mdipierro wrote:
>
> On a second thought. The problem is not the rounding. If we use float
> internally we do not have the precision of 1c in $1billion.
Float has 53 bits, no?
>
> On Nov 13, 5:10 pm, villas wrote:
>> On Nov 13, 9:59 pm, mdipierro wrote:
>>
>>>
On Nov 13, 2009, at 4:36 PM, Massimo Di Pierro wrote:
> In theory double has 53 bits. Yet I tried and it does not seem to work
> properly. It rounds to the cents. You may want to try the attached
> files. Perhaps I am doing something wrong.
What are you expecting to see?
--~--~-~--
On Nov 13, 2009, at 5:12 PM, Jonathan Lundell wrote:
>
> On Nov 13, 2009, at 4:36 PM, Massimo Di Pierro wrote:
>
>> In theory double has 53 bits. Yet I tried and it does not seem to work
>> properly. It rounds to the cents. You may want to try the attached
>>
On Nov 13, 2009, at 4:36 PM, Massimo Di Pierro wrote:
> In theory double has 53 bits. Yet I tried and it does not seem to work
> properly. It rounds to the cents. You may want to try the attached
> files. Perhaps I am doing something wrong.
I'm not advocating floating point; I think it's a
;>>> b=Decimal(repr(a)[0:5])
>>>> print b
> 0.099
>
> Conversions like the one above are necessary step to get data in/out
> of database.
>
> The more I look into this the more I think we should not support it if
> the database does not support it.
Perhaps
On Nov 24, 2009, at 9:14 PM, Wes James wrote:
> I've been working on an app that has this type of password reset:
>
> 1. click on password reset
> 2. user types in email address
> 3. the user gets an email that has a link that takes them back to the
> web2py site
> 4. a new password is typed in
I've implemented a doctest for routes.py. The idea is to modify the doctest as
required to verify that your routes.py is doing what you expect. Massimo has
the patch, but in the meantime (he's busy) feedback would be useful. Post it
here, or send me a note.
You'll need to replace gluon/rewrite.
On Nov 28, 2009, at 4:54 PM, Jonathan Lundell wrote:
> I've implemented a doctest for routes.py. The idea is to modify the doctest
> as required to verify that your routes.py is doing what you expect. Massimo
> has the patch, but in the meantime (he's busy) feedback would be
On Dec 1, 2009, at 8:04 PM, DenesL wrote:
> The question was:
> when one does an app upgrade what exactly is upgraded?
>
> as in:
> web2py.py -S myapp -u yes
The three standard apps (admin, examples & welcome) are upgraded. Your own apps
are never upgraded under any circumstances (well, unless
On Dec 2, 2009, at 6:28 AM, DenesL wrote:
> So there is no such thing as upgrade myapp?
> Where did I get this idea...
What we really need is a create_myapp--save us all a whole lot of trouble. Part
of the Python dwim module...
--
You received this message because you are subscribed to the Goo
On Dec 2, 2009, at 8:02 AM, Thadeus Burgess wrote:
> Don't we have create_app from the admin / site screen?
Nah; it just clones and renames welcome. I'm asking for the heavy lifting.
http://en.wikipedia.org/wiki/DWIM
>
> -Thadeus
>
>
>
>
> On Wed
On Dec 2, 2009, at 8:10 AM, Thadeus Burgess wrote:
> I don't understand what you mean. Define heavy lifting.
>
> our existing create_app does what I mean.
Write my app for me.
A weak joke, but it's early yet here.
>
> -Thadeus
>
>
>
>
> On Wed, D
On Dec 3, 2009, at 9:06 AM, salingrosso wrote:
> We can make it a link of the side-bar that is alway there to remind us
> that we have an option to upgrade apps if we have not done so. It
> would be non-intrusive. The actual popup to point us to the link would
> appear only once.
>
> I think this
On Dec 3, 2009, at 9:18 AM, mdipierro wrote:
> It could be even simpler like keep a copy of the VERSION file into
> each of the basic apps.
What would be in the file? It'd have to be more than the version number and
timestamp.
>
> On Dec 3, 11:12 am, Jonathan Lundell wrote:
rent?
Yes, I'm thinking of detecting whether the apps have been modified by the user.
A reasonable default policy would be to automatically upgrade (on an app by app
basis) apps that have not been modified since installation or the last upgrade.
>
> On Dec 3, 11:23 am, Jonathan L
gesting.
I think you'd want to do it for every file that would be replaced, but are
there "unimportant" files?
>
> -Thadeus
>
>
>
>
> On Thu, Dec 3, 2009 at 11:34 AM, Jonathan Lundell wrote:
> On Dec 3, 2009, at 9:28 AM, mdipierro wrote:
>
> &g
801 - 900 of 2636 matches
Mail list logo