Changes between Version 1 and Version 2 of YumDBusAPI

Show
Ignore:
Author:
timlau (IP: 83.92.101.205)
Timestamp:
02/12/11 06:58:35 (7 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • YumDBusAPI

    v1 v2  
    4747== Locking == 
    4848 
    49 === lock() (DONE) === 
     49=== Lock() (DONE) === 
    5050start a new yum instance and set the yum lock 
    5151 
    52 === unlock() (DONE) === 
     52=== Unlock() (DONE) === 
    5353release the yum lock and delete the current yum instance 
    5454 
    5555---- 
    5656== Config == 
    57 === get_config(option) === 
     57=== !GetConfig(option) === 
    5858return value from config 
    5959 
    60 === set_config(option, value, persistant) === 
     60=== !SetConfig(option, value, persistant) === 
    6161set config option=value (for current session or persistant) 
    6262 
    6565=== Repository === 
    6666 
    67 === enable_repo(repo_id, persistant) === 
     67=== !EnableRepo(repo_id, persistant) === 
    6868 
    6969Enable repo 
    7070 
    71 === disable_repo(repo_id, persistant) === 
     71=== !DisableRepo(repo_id, persistant) === 
    7272 
    7373Disable repo 
    7474 
    75 === get_repositories(repo_type) === 
     75=== !GetRepositories(repo_type) === 
    7676 
    7777get list with repos [[BR]] 
    7878repo_type ::= enabled|disabled|all|source|debuginfo 
    7979 
    80 === get_repo(repo_id) === 
     80=== !GetRepo(repo_id) === 
    8181 
    8282return information about a repo 
    8383 
    84 === set_repo(repo_id, repo_info) === 
     84=== !SetRepo(repo_id, repo_info) === 
    8585 
    8686change repo info or create new one is not exists[[BR]] 
    9090=== Packages === 
    9191 
    92 === get_packages(pkg_narrow) (DONE) === 
     92=== !GetPackages(pkg_narrow) (DONE) === 
    9393 
    9494Return list of package ids[[BR]] 
    9595pkg_narrow = installed|available|updates|obsoletes|..... 
    9696         
    97 === get_packages_by_name(pattern, newest_only) (DONE) === 
     97=== !GetPackages_by_name(pattern, newest_only) (DONE) === 
    9898 
    9999get a list of package ids where name matches pattern[[BR]] 
    101101 
    102102 
    103 === get_attribute(pkg_id, attribute) (DONE) === 
     103=== !GetAttribute(pkg_id, attribute) (DONE) === 
    104104 
    105105return an attribute value from at give pkg_id.[[BR]] 
    113113== Search: == 
    114114 
    115 === search(fields, keys, match_all) === 
     115=== Search(fields, keys, match_all) === 
    116116 
    117117return a list of package ids for matching packages[[BR]] 
    124124== History == 
    125125 
    126 === get_history(elements) === 
     126=== !GetHistory(elements) === 
    127127 
    128128return a list with a number of history ids (integers) 
    130130elements = the number of elements to return 
    131131 
    132 === get_history_info(id) === 
     132=== !GetHistoryInfo(id) === 
    133133 
    134134return a dict with details about a give history id 
    135135 
    136136 
    137 === redo_history(id) === 
     137=== !RedoHistory(id) === 
    138138 
    139139redo a given history id 
    140140 
    141141 
    142 === undo_history(id) === 
     142=== !UndoHistory(id) === 
    143143 
    144144undo given history id 
    147147== Transaction == 
    148148 
    149 === add_transaction(pkg_id, action) (DONE) === 
     149=== !AddTransaction(pkg_id, action) (DONE) === 
    150150 
    151151Add a package to the current transaction for an given action[[BR]] 
    154154return a list of transaction ids for the packages added to the transaction[[BR]] 
    155155 
    156 === build_transaction() (DONE) === 
     156=== !BuildTransaction() (DONE) === 
    157157 
    158158resolve the dependencies of the current transaction.[[BR]] 
    163163 
    164164 
    165 === run_transaction() (DONE) === 
     165=== !RunTransaction() (DONE) === 
    166166 
    167167will run the current transaction (Download, signature check, test transaction, transaction) 
    202202ts_total: total number of processes in the transaction.[[BR]] 
    203203 
     204= Comments = 
     205 * timlau: Change method names to !CamelCase to follow the [http://dbus.freedesktop.org/doc/dbus-specification.html#naming-conventions DBus naming convention]