Ejemplo n.º 1
0
def get_change_date_time(meta):
    #
    # non-editable change time.
    # like get_real_upload_date_time() above.
    # called by EditObject.main().
    #
    miscDict = ryw.get_misc_dict()
    dateTimeStr =  process_date_time_str(miscDict['uploaded_date_time_val'])
    if dateTimeStr != None:
        meta['change_datetime'] = dateTimeStr
    return meta
Ejemplo n.º 2
0
def get_real_upload_date_time(meta):
    #
    # non-editable upload time.
    # like get_change_date_time() below.
    # this is redundant.  i have done this before,
    # choosing the same in fact.
    #
    if meta.has_key('upload_datetime_real'):
        return meta
    miscDict = ryw.get_misc_dict()
    dateTimeStr = process_date_time_str(miscDict['uploaded_date_time_val'])
    if dateTimeStr != None:
        meta['upload_datetime_real'] = dateTimeStr
    return meta
<CENTER>
<INPUT TYPE="submit" VALUE="Upload"> <INPUT type="reset" value="Clear All">
</CENTER>

</FORM>

</TD></TR></TABLE>

</CENTER>

<BR>

<HR WIDTH=75%%>

%(uploadFooter)s

<HR WIDTH=75%%>

</BODY>
</HTML>
"""

# this gets year and user name
dict = ryw.get_misc_dict()
dict.update(ryw_customize.dict)
bothStr3 = bothStr3part % dict




Ejemplo n.º 4
0
     'gujarati', 'kashmiri',
     'for_class', 'applicable_age', 'from', 'to', 'media_type', 'video',
     'extracted_by_firewire',
     'recorded_by_Plextor', 'recorded_from_TV', 'VHS_tape_digitized', 
     'recorded_by_webcam', 'recorded_by_CamStudio',
     'recorded_by_Mustek', 'recorded_by_Aiptek',
     'created_by_ProShow', 'has_subtitle', 
     'audio_without_video', 'images', 'documents', 'executables', 'slideshows',
     'other_type',
     'video_resolution', 'content_duration', 'hours', 'minutes',
     'cache', 'sticky', 'show', 'copyrighted', 'discreet'],
    ['upload', 'unknown', 'lecture', 'lesson_plan', 'test', 
     'courseware', 'practicals', 'experiments',
     'textbook', 'course_materials', 'monitoring', 'visits', 'documentary',
     'public_awareness', 
     'other_TV', 'workshop', 'radio_program',
     'requests',
     'support_software',
     'teacher_training',
     'staff_training', 'community_training', 
     'chat', 'interview', 'student_projects',
     'homework_submission', 'homework_feedback', 'questions', 'answers',
     'social_entertainment', 'exam', 'information', 'scratch_space', 'tmp',
     'other', 'preschool', 'college'],
    otherDict = ryw.get_misc_dict())
                                                  
# otherDict is for other replacements like name and year.