Dan G wrote:
> Yeah, I'll work on the patches tonight. I know Cheetah has some weird
> inheritance stuff (again, python), so I'll look at that as a way to
> get the builtin functions there, too. I'll also get the advanced
> SNIPPET thing working tonight as well. Just to be certain on its
> functionality:
> check if per_system/$system/$file exists and include it if it does.
> else check if per_profile/$profile/$file exists and include it if
> it does.
> else check if $file exists and include it if it does.
> else if none of those exist just say:
> #error no snippet data
Yes.
> I want to make sure that the functionality of the backwards-compatible
> SNIPPET does not get broken just because I left something out.
> Do you need me to write the replace SNIPPET::x with $SNIPPET('x')
> functionality, too?
Sure, that would be great. This is going to need to use the Python
regex module ("re").
>
> I'll go ahead and submit a patch that automatically includes the
> builtins and I'll submit the SNIPPET builtin. I'm going to wait a bit
> on some of these other builtins until I know for sure how I'm going to
> do them. (I've been using them for the STIG stuff and have found
> myself changing them constantly, so hopefully I'll settle soon).
Sounds good, thanks!
>
> ~
> Dan
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler