self->pItem->moveTo( self->pItem->pos() );
self->pItem->moveTo( self->pItem->pos(), true );
static int wpItem_setAttr( wpItem* self, char* name, PyObject* value ){	/*		\rproperty item.container Returns the serial of the container this item is in. Returns 0 if no container.	*/	if ( !strcmp( "container", name ) )	{		if ( checkWpItem( value ) )		{			P_ITEM pCont = getWpItem( value );			if ( pCont )				pCont->addItem( self->pItem );		}		else if ( checkWpChar( value ) )		{			P_CHAR pCont = getWpChar( value );			if ( pCont )			{				tile_st tile = TileCache::instance()->getTile( self->pItem->id() );				if ( tile.layer )				{					if ( pCont->atLayer( ( cBaseChar::enLayer ) tile.layer ) )						pCont->atLayer( ( cBaseChar::enLayer ) tile.layer )->toBackpack( pCont );					pCont->addItem( ( cBaseChar::enLayer ) tile.layer, self->pItem );				}			}		}		else		{			self->pItem->removeFromCont();			self->pItem->moveTo( self->pItem->pos() );		}	}	else	{		cVariant val;		if ( PyString_Check( value ) || PyUnicode_Check( value ) )			val = cVariant( Python2QString( value ) );		else if ( PyInt_Check( value ) )			val = cVariant( PyInt_AsLong( value ) );		else if ( PyLong_Check( value ) )			val = cVariant( PyLong_AsLong( value ) );		else if ( checkWpItem( value ) )			val = cVariant( getWpItem( value ) );		else if ( checkWpChar( value ) )			val = cVariant( getWpChar( value ) );		else if ( checkWpCoord( value ) )			val = cVariant( getWpCoord( value ) );		else if ( PyFloat_Check( value ) )			val = cVariant( PyFloat_AsDouble( value ) );		else if ( value == Py_True )			val = cVariant( 1 ); // True		else if ( value == Py_False )			val = cVariant( 0 ); // false		//if( !val.isValid() )		//{		//	if( value->ob_type )		//		PyErr_Format( PyExc_TypeError, "Unsupported object type: %s", value->ob_type->tp_name );		//	else		//		PyErr_Format( PyExc_TypeError, "Unknown object type" );		//	return 0;		//}		stError * error = self->pItem->setProperty( name, val );		if ( error )		{			PyErr_Format( PyExc_TypeError, "Error while setting attribute '%s': %s", name, error->text.latin1() );			delete error;			return -1;		}	}	return 0;}