From: Michael M. <mi...@gn...> - 2004-08-11 16:15:16
|
Hi Mitra, how can I convert long item ids to short item ids in case I needed to?=20 This is what my script returned: Query duration: 0.17414784431458 Rows returned: 1object(zids)(2) { ["a"]=3D> array(1) { [0]=3D>=20 string(16) "=E2=80=9E=D0=83=D0=BA=C2=B0=D0=8A=03=0C*=D0=B6=19=E2=80=99HU=D0= =94=D1=8Dt" } ["type"]=3D> string(1) "p" } ERROR -=20 zids:shortids(): can't handle type p conversion to shortids - ask mitra Thanks, mimo |
From: Mitra <mi...@mi...> - 2004-08-11 23:05:33
|
Hi Mimo You don't say what you were doing when you tried=20 to do this ... were you writing code, or running=20 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=20 between the far-to-many ways that IDs are stored=20 and used within the system, i.e. long, short,=20 packed and tagged and three variants of quoting=20 packed ids. Essentially the idea is that any part of the code=20 can use the zids structure, without caring what=20 form the ids are actually stored in, and then=20 extract from the zids structure the ids in the=20 form it needs. However not all the possible translations are actually coded. What you are doing, is presumably working=20 somewhere where you need shortids, but whatever=20 created the array of shortids created it with=20 packed ids. Unfortunately I can't get my installation to=20 update from CVS (see separate message) so I can't=20 be 100% sure, but the copy I've got does NOT=20 contain this error message in shortids, which it=20 looks like could handle packed ids (type p). I'd=20 suggest updating your aa installation and trying=20 again. Otherwise, please email me a copy of=20 apc-aa/include/zids.php3 , and/or check its at=20 or later than version 1.26 (second line of=20 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=20 >ids in case I needed to? This is what my script=20 >returned: > >Query duration: 0.17414784431458 >Rows returned: 1object(zids)(2) { ["a"]=3D>=20 >array(1) { [0]=3D> string(16) "=93=C6=CD=B0=E6=03=0C*=CA=19'HU=D1=9Bt" }=20 >["type"]=3D> string(1) "p" } ERROR -=20 >zids:shortids(): can't handle type p conversion=20 >to shortids - ask mitra > > >Thanks, > > >mimo > > >------------------------------------------------------- >SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media >100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 >Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. >http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 >_______________________________________________ >Apc-aa-coders mailing list >Apc...@li... >https://lists.sourceforge.net/lists/listinfo/apc-aa-coders -- home/office +61-2-6684-8096 mobile +61-414-648-722 mi...@mi... www.naturalinnovation.org or www.mitra.biz Life is a Mystery to be Lived, not a Problem to be Solved |
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 >> |