version 1.15, 2007/11/14 15:21:04
|
version 1.16, 2007/11/20 11:46:06
|
Line 261 ThotBool ValidateTemplateAttrInMenu (Not
|
Line 261 ThotBool ValidateTemplateAttrInMenu (Not
|
type = TtaGetAttributeValue(attr); |
type = TtaGetAttributeValue(attr); |
else |
else |
type = Template_ATTR_type_VAL_string; |
type = Template_ATTR_type_VAL_string; |
|
#ifdef AMAYA_DEBUG |
|
#ifdef EK |
/******************************************************************************/ |
/******************************************************************************/ |
printf("Attribute : %s \n", attrName); |
printf("Attribute : %s \n", attrName); |
switch(useAt) |
switch(useAt) |
Line 295 ThotBool ValidateTemplateAttrInMenu (Not
|
Line 296 ThotBool ValidateTemplateAttrInMenu (Not
|
break; |
break; |
} |
} |
/******************************************************************************/ |
/******************************************************************************/ |
|
#endif /* EK */ |
|
#endif /* AMAYA_DEBUG */ |
event->restr.RestrType = (RestrictionContentType)type; |
event->restr.RestrType = (RestrictionContentType)type; |
/* If attr is prohibited, dont show it.*/ |
/* If attr is prohibited, dont show it.*/ |
if(useAt==Template_ATTR_useAt_VAL_prohibited) |
if(useAt==Template_ATTR_useAt_VAL_prohibited) |
return TRUE; |
return TRUE; |
if(useAt==Template_ATTR_useAt_VAL_required) |
if(useAt==Template_ATTR_useAt_VAL_required) |
{ |
{ |
/* Force the usage of this attribute.*/ |
/* Force the usage of this attribute.*/ |
Line 344 ThotBool ValidateTemplateAttrInMenu (Not
|
Line 346 ThotBool ValidateTemplateAttrInMenu (Not
|
} |
} |
} |
} |
|
|
return FALSE; |
return TRUE; |
} |
} |
else |
else |
#endif /* TEMPLATES */ |
#endif /* TEMPLATES */ |