Paul Gödicke <[EMAIL PROTECTED]> writes:
> Building a new ECLecture-folder always you have to fill out "time",
> "first date", ... . I'm searching the file where this is fixed and
> I'm interested to change this indications from obligatory to
> optional. It's possible?
Yes, you can change that. In content/ECLecture.py, you have to modify
the following definitions:
--8<---------------cut here---------------start------------->8---
TimePeriodField('timePeriod',
[...]
),
DateTimeField('startDate',
[...]
),
--8<---------------cut here---------------end--------------->8---
In both definitions, change the line
--8<---------------cut here---------------start------------->8---
required = True,
--8<---------------cut here---------------end--------------->8---
into
--8<---------------cut here---------------start------------->8---
required = False,
--8<---------------cut here---------------end--------------->8---
You'll have to restart your Zope instance for the changes to take
effect.
It could be that other parts of the code rely on these attributes
having a value. You'll have to see for yourself.
Good luck!
--
Wolfram Fenske
A: Yes.
>Q: Are you sure?
>>A: Because it reverses the logical flow of conversation.
>>>Q: Why is top posting frowned upon?
_______________________________________________
eduComponents mailing list
[email protected]
https://listserv.uni-magdeburg.de/mailman/listinfo/educomponents