if( PyTuple_Size( args ) < 1 || !checkArgStr( 0 ) || ( !checkArgStr( 1 ) && !checkArgInt( 1 )  ) )
char* pKey = 0, *pTag = 0; int iTag; cVariant tag; if( PyArg_ParseTuple( args, "ss:item.settag( key, tag )", &pKey, &pTag ) )
static PyObject* wpItem_settag( wpItem* self, PyObject* args ){	if( !self->pItem || self->pItem->free )		return PyFalse;	if( PyTuple_Size( args ) < 1 || !checkArgStr( 0 ) || ( !checkArgStr( 1 ) && !checkArgInt( 1 )  ) )	{		PyErr_BadArgument();		return NULL;	}	QString key = PyString_AsString( PyTuple_GetItem( args, 0 ) );	self->pItem->removeTag( key );	if( checkArgStr( 1 ) )		self->pItem->setTag( key, cVariant( QString( getArgStr( 1 ) ) ) );	else if( checkArgInt( 1 ) )		self->pItem->setTag( key, cVariant( (int)getArgInt( 1 ) ) );	return PyTrue;}