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 |