On 6/09/11 16:18:32, Laszlo Nagy wrote:
On 2011-09-06 15:42, Kayode Odeyemi wrote:
I was able to get this solved by calling class like this:
>>> from core.fleet import Fleet
>>> f = Fleet()
Thanks to a thread from the list titled "TypeError: 'module' object is
not callable"
Or you can also do
On Tue, Sep 6, 2011 at 3:18 PM, Laszlo Nagy wrote:
> On 2011-09-06 15:42, Kayode Odeyemi wrote:
>
>> I was able to get this solved by calling class like this:
>>
>> >>> from core.fleet import Fleet
>> >>> f = Fleet()
>>
>> Thanks to a thread from the list titled "TypeError: 'module' object is not
On 2011-09-06 15:42, Kayode Odeyemi wrote:
I was able to get this solved by calling class like this:
>>> from core.fleet import Fleet
>>> f = Fleet()
Thanks to a thread from the list titled "TypeError: 'module' object is
not callable"
Or you can also do this:
import core.fleet # import modul
I was able to get this solved by calling class like this:
>>> from core.fleet import Fleet
>>> f = Fleet()
Thanks to a thread from the list titled "TypeError: 'module' object is not
callable"
On Tue, Sep 6, 2011 at 2:02 PM, Kayode Odeyemi wrote:
> Is there anything I need to do to create an in
Is there anything I need to do to create an instance of a class?
I have this simple code(The class is in a package core.fleet):
class Fleet(object):
def __init__(self):
""" no-arg constructor """
def fleet_file_upload(self, filename, type=None):
if type == 'user':