Are there any easy TODO's (such as easy-fix or junior jobs)?
Jo Vermeulen
jo at lumumba.luc.ac.be
Tue Apr 19 12:54:13 BST 2005
Op 19-apr-05 om 13:48 heeft Andrew Bennetts het volgende geschreven:
> On Tue, Apr 19, 2005 at 01:20:32PM +0200, Jo Vermeulen wrote:
> [...]
>>> Feel free to ask. That particular one is just that there should be
>>> say
>>> "whoami --id" which parses out just the "mbp at sourcefrog.net" part and
>>> prints that. The parser for addresses could perhaps also be better.
>>
>> That's quite easy-to-do with regular expressions, but that may add
>> another dependency (the sre module). Don't know if that's ok :-)
>
> inventory.py, branch.py and osutils.py already import re, so I think
> that
> would be fine.
I just noticed the procedure to calculate the email address is already
present (with the same name I originally used, user_email() in
commands.py), using regular expressions too. So I'll use that, and try
to see how I can add it to the commandline interface.
Cheers!
--
Jo Vermeulen <jo at lumumba.luc.ac.be>
http://lumumba.luc.ac.be/jo/
More information about the bazaar
mailing list