For childish reasons, I've been avoiding gmail. Our school is transitioning over to
google apps soon, so I'll be getting gmail anyway. The formatting errors should
disappear soon :).
I've finally figured out the second roadblock. Apparently, using "$include"
instead of "#include" causes some very bizarre results. The error cascades up
the substitution/include chain and causes them all to fail (it pretends the variable or
method doesn't exist). The error was in my templates and changing "$include"
to "#include" fixed it. This still doesn't seem kosher; the error should not
have caused that behavior. If I get time (unlikely) I'll investigate it a bit more and
file a bug report with either Cheetah or Cobbler.
I'll be packing up for my move tonight, so I will be out of contact until Saturday.
~
Dan
----------------------------------------
From: danpg102(a)hotmail.com
To: cobbler(a)lists.fedorahosted.org
Subject: RE: Snippet with generalized functions
Date: Wed, 30 Jul 2008 17:07:21 -0500
I ran into a huge roadblock today, I found out #include doesn't behave quite like
SNIPPET (ignoring the per-system/profile stuff). If there are #defs inside the included
file, they do not carry over into the including file. For instance:
------------my_template------------------
#include 'my_include'
$my_func('foo')
----------------------------------------------
-----------my_include--------------------
#def my_func($a)
${a}bar
#end def
----------------------------------------------
does not behave as expected. Changing "#include" to "SNIPPET::"
yields the expected outcome.
Lame.
There is another problem I'm coming across that might actually be a bug in cheetah,
so I probably will not have the other 'builtins' finished for some time.
I'll let you know as soon as I figure something out.
~
Dan
----------------------------------------
> Date: Wed, 30 Jul 2008 11:02:37 -0400
> From: mdehaan(a)redhat.com
> To: cobbler(a)lists.fedorahosted.org
> Subject: Re: Snippet with generalized functions
>
> Aaron Lippold wrote:
>> Hay Mike,
>>
>> Dan is working with me on the generalization stuff for my project. I
>> still have to set him up with a cobbler server so he has been doing it
>> mostly on a Ubuntu box. I will get him going tomorrow with that. Where
>> is the link to the patch process again?
>>
>> Thanks,
>>
>> Aaron
>>
>
>
https://fedorahosted.org/cobbler/wiki/PatchProcess
>
>
_________________________________________________________________
Keep your kids safer online with Windows Live Family Safety.
http://www.windowslive.com/family_safety/overview.html?ocid=TXT_TAGLM_WL_...
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
_________________________________________________________________
Use video conversation to talk face-to-face with Windows Live Messenger.
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM...