From: Michael M. <mi...@gn...> - 2004-08-12 10:22:46
|
Thanks Mitra! It was my own script and we do have an older version of AA=20 but not easily updateable. So, for the record, I found a workaround=20 getting the short id with GetContent. Again, thanks for explanation -- make things clearer. mimo Mitra wrote: > Hi Mimo > > You don't say what you were doing when you tried to do this ... were=20 > you writing code, or running the AA interface. > > This should of course never happen in the AA code. > > If its something you are writing ... > > The idea of the Zids structure is to covert between the far-to-many=20 > ways that IDs are stored and used within the system, i.e. long, short,=20 > packed and tagged and three variants of quoting packed ids. > > Essentially the idea is that any part of the code can use the zids=20 > structure, without caring what form the ids are actually stored in,=20 > and then extract from the zids structure the ids in the form it needs. > > However not all the possible translations are actually coded. > > What you are doing, is presumably working somewhere where you need=20 > shortids, but whatever created the array of shortids created it with=20 > packed ids. > > Unfortunately I can't get my installation to update from CVS (see=20 > separate message) so I can't be 100% sure, but the copy I've got does=20 > NOT contain this error message in shortids, which it looks like could=20 > handle packed ids (type p). I'd suggest updating your aa installation=20 > and trying again. Otherwise, please email me a copy of =20 > apc-aa/include/zids.php3 , and/or check its at or later than version=20 > 1.26 (second line of zids.php3). > > - Mitra > > > > At 4:51 PM +0100 11/8/04, Michael Moritz wrote: > >> Hi Mitra, >> >> how can I convert long item ids to short item ids in case I needed=20 >> to? This is what my script returned: >> >> Query duration: 0.17414784431458 >> Rows returned: 1object(zids)(2) { ["a"]=3D> array(1) { [0]=3D>=20 >> string(16) ""=C6=CD=B0=E6=03=0C*=CA=19'HU=D1>t" } ["type"]=3D> string(= 1) "p" } ERROR -=20 >> zids:shortids(): can't handle type p conversion to shortids - ask mitr= a >> >> >> Thanks, >> >> >> mimo >> |