creating an Object Factory class Factory(object): def __init__(self, *args, **kwargs): self.__dict__.update(kwargs) # Register our object factory with a class alias pyamf.register_class(Factory, "flex.samples.crm.employee.Employee") # Instantiate a "Employee" using our object factory: marcin = Factory(**{'firstName': "Marcin", 'lastName': "Wielgoszewski", 'phone': "555-555-5555", 'email': "
[email protected]",})