On Fri, Apr 11, 2008 at 9:45 AM, James Paige <<a href="mailto:Bob@hamsterrepublic.com">Bob@hamsterrepublic.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hmmm... that is how I thought it worked, but when I try it, it does<br>
this:<br>
<br>
james@doomtrain:~/src/mhgames/marauders$ ./main.py<br>
Traceback (most recent call last):<br>
File \"./main.py\", line 7, in <module><br>
from map import BaseMap<br>
File \"/home/james/src/mhgames/marauders/map.py\", line 24, in<br>
<module><br>
class BaseMap(AssetBase):<br>
File \"/home/james/src/mhgames/marauders/map.py\", line 26, in BaseMap<br>
data = AssetDictionary(AssetObject(Tile))<br>
File<br>
\"/usr/lib/python2.5/site-packages/motherhamster/cheekpouches.py\", line<br>
394, in __init__<br>
assert(isinstance(element_descriptor, SimpleProperty))<br>
AssertionError<br>
<div class="Ih2E3d"><br>
</div></blockquote></div><br>Looks like maybe a bad assert? :)<br>I can't think of a reason why AssetDictionary couldn't take AssetObject - I think it reality what it can't do is take AssetRef - if any assert is appropriate it's probably:<br>
---------<br>assert(not isinstance(element_descriptor, AssetRef)<br>