Re: [Python-mode] What text editor is everyone using for Python

2009-05-29 Thread Marcelo de Moraes Serpa
stop! Use the editor you are comfortable with. No flame wars please, even though Emacs is the way to enlightenment :) On Fri, May 29, 2009 at 4:10 PM, Barry Warsaw wrote: > On May 28, 2009, at 7:09 AM, Andreas Roehler wrote: > > python-mode.el was its bloody-minded determination to regard '_' a

Re: What text editor is everyone using for Python

2009-05-25 Thread Marcelo de Moraes Serpa
emacs is a swiss-knife, good for small, medium, big or huge projects, or single files On Mon, May 25, 2009 at 1:24 PM, Ryniek90 wrote: > > >> >> >> Temat: >> Re: What text editor is everyone using for Python >> Od: >> Esmai

Accounting and financial system

2008-06-26 Thread Marcelo de Moraes Serpa
Hello list, In a next project of mine, I will need to implement some accounting and financial control. It is not a full ERP, only the basic functions for finances and accounting control. However, I have little to no experience in this business domain (accounting and finances) but I really do need

Re: Accounting and financial system

2008-06-26 Thread Marcelo de Moraes Serpa
Btw, sorry it is [OT], I forgot to add the prefix, it is really not a post tied to the language itself. On Tue, Jun 24, 2008 at 1:24 PM, Marcelo de Moraes Serpa < [EMAIL PROTECTED]> wrote: > Hello list, > > In a next project of mine, I will need to implement some accounting

Re: Accounting and financial system

2008-06-25 Thread Marcelo de Moraes Serpa
I know this post was OT and is not so "attractive", but someone out there must know something that could help me, if so, please share! On Tue, Jun 24, 2008 at 1:31 PM, Marcelo de Moraes Serpa < [EMAIL PROTECTED]> wrote: > Btw, sorry it is [OT], I forgot to add the prefix, it i

Re: Using ElementTree as backend for a chat web application issues

2008-06-10 Thread Marcelo de Moraes Serpa
. I'm still confused on why this doesn't happen with my Rails backend, but I will eventually find out. Living and learning. Thanks for the attention, Marcelo. On Wed, Jun 11, 2008 at 12:47 AM, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > En Mon, 09 Jun 2008 15:32:00 -0300,

Using ElementTree as backend for a chat web application issues

2008-06-09 Thread Marcelo de Moraes Serpa
Hello list, I've built a chat with a front-end Ajax client and backend usign ElementTree to persist the data. The problem is that the xml structure I use to persist some of the global configuration of the application usually gets corrupted, for example, let's say the structure is something like:

Re: Handling test data that depends on temporal data (that might change while the test runs)

2008-05-15 Thread Marcelo de Moraes Serpa
. On Thu, May 15, 2008 at 11:19 PM, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > En Thu, 15 May 2008 22:44:17 -0300, Marcelo de Moraes Serpa < > [EMAIL PROTECTED]> escribió: > > @Gabriel: I understand what you are saying. It all depends on what you >&g

Re: Handling test data that depends on temporal data (that might change while the test runs)

2008-05-15 Thread Marcelo de Moraes Serpa
repeat the implementation in the test method. However, something keeps telling me that it still has to be "unit" tested, sonehow (the algorith used). Thanks, Marcelo. On Thu, May 15, 2008 at 9:54 PM, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > En Thu, 15 May 2008 14:21:34 -

Re: Handling test data that depends on temporal data (that might change while the test runs)

2008-05-15 Thread Marcelo de Moraes Serpa
ime = my_custom_datetime() works great. Thanks to Zalamander @ #python on EFNET ;) On Thu, May 15, 2008 at 10:12 PM, Erik Jones <[EMAIL PROTECTED]> wrote: > > > On Thu, May 15, 2008 at 12:21 PM, Marcelo de Moraes Serpa < > [EMAIL PROTECTED]> wrote: > >> Hel

Handling test data that depends on temporal data (that might change while the test runs)

2008-05-15 Thread Marcelo de Moraes Serpa
Hello, So, I have this particular method, generate_chat_dir_string, which should generate a string in the following format: "md5hexstring-day-month-year-hour-minute" This string will be used to create a directory in the filesystem. I'm trying to adopt the TDD approach, so, I'm starting by testi

Re: Newbie to python --- why should i learn !

2008-05-09 Thread Marcelo de Moraes Serpa
I sincerely think that most languages in existence today have its place. Java has some great libraries and programs that were written in it. Try writing an Eclipse clone in Python, I don't think it would go well. On Fri, May 9, 2008 at 11:08 AM, hdante <[EMAIL PROTECTED]> wrote: > On May 8, 7:2

Class context execution problems

2008-03-06 Thread Marcelo de Moraes Serpa
I'm using a class in a conext other than the subpackage in which it is located and I'm getting template lookup errors. This class expects to find a .pt file in a directory relative to its package. However, this class is normally used by other classes in the same namespace. class ObjectWidget:

Def generating a function to be ran in another context

2008-03-05 Thread Marcelo de Moraes Serpa
I'd like a certain function to generate a method for another class and this new method to be called in the context of the "new" class. Is it possible with Python? Thanks, Marcelo. -- http://mail.python.org/mailman/listinfo/python-list

What does % mean/does in this context?

2008-02-02 Thread Marcelo de Moraes Serpa
Take the following piece of code: for item in cart.values(): v = _button_cart % {"idx": idx, "itemname": item.name, "amount": item.cost, "quantity": item.quantity,} cartitems.a

Re: Implementation of IBuyable or Interface?

2008-01-30 Thread Marcelo de Moraes Serpa
r > package? > Yes, I'm using zope.interface. Cheers, Marcelo. On Jan 29, 2008 8:46 PM, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > En Tue, 29 Jan 2008 15:52:58 -0200, Marcelo de Moraes Serpa > <[EMAIL PROTECTED]> escribi�: > > > I've got a IBuyable inter

Implementation of IBuyable or Interface?

2008-01-29 Thread Marcelo de Moraes Serpa
Hello! It's more a design question than anything python specific. If anyone could help me, I would be grateful. If it's not the right place for this subject, please advise. I've got a IBuyable interface. The app can sell both Products and Services (Both "Buyables"). I'm not sure if Product and Se

Navigating through python packages

2008-01-24 Thread Marcelo de Moraes Serpa
Hello, I work with Zope and Plone, hence I deal with lots of eggs and python packages and modules. I'm always opening source files inside packages, closing them, opening again, searching through them... The main issue here is the level of directory nesting.. you need to write a lot (in emacs) or

Re: Dynamic DNS with a python script

2007-12-27 Thread Marcelo de Moraes Serpa
Thank you! What if I would like to use my own DNS server for this (considereing I've got my own domain names)? On Dec 27, 2007 3:58 PM, Shane Geiger <[EMAIL PROTECTED]> wrote: > Marcelo de Moraes Serpa wrote: > > Hello list, > > > > I'd like to set up ssh

Dynamic DNS with a python script

2007-12-27 Thread Marcelo de Moraes Serpa
Hello list, I'd like to set up ssh access to my home computer so that I will be able to access it from work - for this no problem, installing sshd is straightforward. The issue here is that I don't have a fixed IP connection at home. Also, I wouldn't like to use services such as no-ip or similar.