Py_INCREF( Py_None ); return Py_None;
Py_RETURN_NONE;
static PyObject* wpGuild_getAttr( wpGuild* self, char* name ){	if ( !self->guild )	{		PyErr_SetString( PyExc_RuntimeError, "Calling member functions after deletion." );		return 0;	}	/*		\rproperty guild.members This property is a list of <object id="char">char</object> objects for every member of the guild.	*/	if ( !strcmp( name, "members" ) )	{		QPtrList<cPlayer>& members = self->guild->members();		PyObject* list = PyList_New( members.count() );		unsigned int i = 0;		for ( P_PLAYER player = members.first(); player; player = members.next() )		{			PyList_SetItem( list, i++, player->getPyObject() );		}		return list;	}	/*		\rproperty guild.canidates This property is a list of <object id="char">char</object> objects for every canidate of the guild.	*/	else if ( !strcmp( name, "canidates" ) )	{		QPtrList<cPlayer>& canidates = self->guild->canidates();		PyObject* list = PyList_New( canidates.count() );		unsigned int i = 0;		for ( P_PLAYER player = canidates.first(); player; player = canidates.next() )		{			PyList_SetItem( list, i++, player->getPyObject() );		}		return list;	}	/*		\property guild.leader This property is a <object id="char">char</object> object for the leader of the guild. This can also be None if there		is no leader.	*/	else if ( !strcmp( name, "leader" ) )	{		if ( !self->guild->leader() )		{			Py_INCREF( Py_None );			return Py_None;		}		else		{			return self->guild->leader()->getPyObject();		}	}	/*		\property guild.name This is the name of this guild.	*/	else if ( !strcmp( name, "name" ) )	{		const QString& value = self->guild->name();		if ( value == QString::null )		{			return PyUnicode_FromWideChar( L"", 0 );		}		else		{			return PyUnicode_FromUnicode( ( Py_UNICODE * ) value.ucs2(), value.length() );		}	}	/*		\property guild.abbreviation This is the abbreviation of this guilds name.	*/	else if ( !strcmp( name, "abbreviation" ) )	{		const QString& value = self->guild->abbreviation();		if ( value == QString::null )		{			return PyUnicode_FromWideChar( L"", 0 );		}		else		{			return PyUnicode_FromUnicode( ( Py_UNICODE * ) value.ucs2(), value.length() );		}	}	/*		\property guild.charta This is the charta of this guild.	*/	else if ( !strcmp( name, "charta" ) )	{		const QString& value = self->guild->charta();		if ( value == QString::null )		{			return PyUnicode_FromWideChar( L"", 0 );		}		else		{			return PyUnicode_FromUnicode( ( Py_UNICODE * ) value.ucs2(), value.length() );		}	}	/*		\property guild.website This is the URL of the website for this guild.	*/	else if ( !strcmp( name, "website" ) )	{		const QString& value = self->guild->website();		if ( value == QString::null )		{			return PyUnicode_FromWideChar( L"", 0 );		}		else		{			return PyUnicode_FromUnicode( ( Py_UNICODE * ) value.ucs2(), value.length() );		}	}	/*		\property guild.alignment This integer value indicates the alignment of the guild.		<code>0: Neutral		1: Evil		2: Good</code>	*/	else if ( !strcmp( name, "alignment" ) )	{		return PyInt_FromLong( self->guild->alignment() );	}	/*		\property guild.serial This is the unique integer id for this guild. It can be used to		retrieve a guild object by using the wolfpack.findguild function.	*/	else if ( !strcmp( name, "serial" ) )	{		return PyInt_FromLong( self->guild->serial() );	}	/*		\property guild.founded This property is a UNIX timestamp indicating when this guild was founded.	*/	else if ( !strcmp( name, "founded" ) )	{		return PyInt_FromLong( self->guild->founded().toTime_t() );	}	/*		\property guild.guildstone This is the main guildstone for this guild. It can be None if there is no main guildstone for this guild.	*/	else if ( !strcmp( name, "guildstone" ) )	{		if ( self->guild->guildstone() )		{			return self->guild->guildstone()->getPyObject();		}		else		{			Py_INCREF( Py_None );			return Py_None;		}	}	return Py_FindMethod( wpGuildMethods, ( PyObject * ) self, name );}