Changeset 0a8409 in indico


Ignore:
Timestamp:
03/18/11 15:00:50 (2 years ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 4c7d4152dff271ba5df5a8606605969cab454080
Children:
208968
Parents:
824614
Message:

[FIX] Migration script

  • Wrong method name;
  • Added also an extra option to the livesync script;
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bin/migration/migrate_0.97_0.98.py

    r1259ba r0a8409  
    136136 
    137137            # handle sessions, that our iterator ignores 
    138             for session in obj.getSessions(): 
     138            for session in obj.getSessionList(): 
    139139                _fixAccessController(session) 
    140140 
  • indico/ext/livesync/console.py

    r458c17 r0a8409  
    187187                raise Exception("Agent '%s' was not found!" % args.agent) 
    188188 
    189             root = CategoryManager().getById(0) 
     189            root = CategoryManager().getById(args.cat or 0) 
    190190 
    191191            if args.monitor: 
     
    309309                                     help="Iterate ConferenceHolder instead of tree" ) 
    310310 
     311    parser_agent_export.add_argument("--only-category", "-c", type=str, 
     312                                     dest="cat", default=None, 
     313                                     help="Iterate ConferenceHolder instead of tree" ) 
     314 
    311315    parser_agent_export.add_argument("--output", "-o", type=str, 
    312316                                     dest="output", 
Note: See TracChangeset for help on using the changeset viewer.