if( !strcmp( name, "name" ) ) return PyString_FromString( self->Item->name.c_str() );  else if( !strcmp( name, "id" ) ) return PyInt_FromLong( self->Item->id() );  else if( !strcmp( name, "serial" ) ) return PyInt_FromLong( self->Item->serial );  else if( !strcmp( name, "amount" ) ) return PyInt_FromLong( self->Item->amount );
getItemStrProperty( "name", name.c_str() ) else getItemIntProperty( "id", id() ) else getItemIntProperty( "serial", serial ) else getItemIntProperty( "amount", amount )
PyObject *Py_WPItemGetAttr( Py_WPItem *self, char *name ){	if( !strcmp( name, "name" ) )		return PyString_FromString( self->Item->name.c_str() );		else if( !strcmp( name, "id" ) )		return PyInt_FromLong( self->Item->id() );	else if( !strcmp( name, "serial" ) )		return PyInt_FromLong( self->Item->serial );	else if( !strcmp( name, "amount" ) )		return PyInt_FromLong( self->Item->amount );	// If no property is found search for a method	return Py_FindMethod( Py_WPItemMethods, (PyObject*)self, name );}