From 6edff4bbd3b96e32a534227f826309ae1430f640 Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Sat, 29 Aug 2009 19:18:01 +0200 Subject: [PATCH] =?UTF-8?q?[annuaires]=20G=C3=A9n=C3=A9ration=20d'une=20li?= =?UTF-8?q?ste=20plus=20compl=C3=A8te=20pour=20le=20G?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ignore-this: 5c6e399b1521eb910e048fc73cc59f05 darcs-hash:20090829171801-ffbb2-c37fa17e840493b82e207702e71c515f144bd9d3.gz --- gestion/annuaires.py | 189 ++----------------------------------------- 1 file changed, 6 insertions(+), 183 deletions(-) diff --git a/gestion/annuaires.py b/gestion/annuaires.py index 8f0e1a0a..d75f12f6 100644 --- a/gestion/annuaires.py +++ b/gestion/annuaires.py @@ -143,189 +143,6 @@ chbre_prises={ 'a' : '206d':'217' , '215':'218' , '308g':'219' , '108d':'220' , '202d':'221' , '108g':'222' , '202g':'223' , '201d':'224' } , -# Ceci est une liste bidon, juste pour que les gens du g -# puissent s'incrire quand meme. - -'g' : -{ -'700':'700','699':'699','698':'698','697':'697', -'696':'696','695':'695','694':'694','693':'693', -'692':'692','691':'691','690':'690','689':'689', -'688':'688','687':'687','686':'686','685':'685', -'684':'684','683':'683','682':'682','681':'681', -'680':'680','679':'679','678':'678','677':'677', -'676':'676','675':'675','674':'674','673':'673', -'672':'672','671':'671','670':'670','669':'669', -'668':'668','667':'667','666':'666','665':'665', -'664':'664','663':'663','662':'662','661':'661', -'660':'660','659':'659','658':'658','657':'657', -'656':'656','655':'655','654':'654','653':'653', -'652':'652','651':'651','650':'650','649':'649', -'648':'648','647':'647','646':'646','645':'645', -'644':'644','643':'643','642':'642','641':'641', -'640':'640','639':'639','638':'638','637':'637', -'636':'636','635':'635','634':'634','633':'633', -'632':'632','631':'631','630':'630','629':'629', -'628':'628','627':'627','626':'626','625':'625', -'624':'624','623':'623','622':'622','621':'621', -'620':'620','619':'619','618':'618','617':'617', -'616':'616','615':'615','614':'614','613':'613', -'612':'612','611':'611','610':'610','609':'609', -'608':'608','607':'607','606':'606','605':'605', -'604':'604','603':'603','602':'602','601':'601', -'600':'600','599':'599','598':'598','597':'597', -'596':'596','595':'595','594':'594','593':'593', -'592':'592','591':'591','590':'590','589':'589', -'588':'588','587':'587','586':'586','585':'585', -'584':'584','583':'583','582':'582','581':'581', -'580':'580','579':'579','578':'578','577':'577', -'576':'576','575':'575','574':'574','573':'573', -'572':'572','571':'571','570':'570','569':'569', -'568':'568','567':'567','566':'566','565':'565', -'564':'564','563':'563','562':'562','561':'561', -'560':'560','559':'559','558':'558','557':'557', -'556':'556','555':'555','554':'554','553':'553', -'552':'552','551':'551','550':'550','549':'549', -'548':'548','547':'547','546':'546','545':'545', -'544':'544','543':'543','542':'542','541':'541', -'540':'540','539':'539','538':'538','537':'537', -'536':'536','535':'535','534':'534','533':'533', -'532':'532','531':'531','530':'530','529':'529', -'528':'528','527':'527','526':'526','525':'525', -'524':'524','523':'523','522':'522','521':'521', -'520':'520','519':'519','518':'518','517':'517', -'516':'516','515':'515','514':'514','513':'513', -'512':'512','511':'511','510':'510','509':'509', -'508':'508','507':'507','506':'506','505':'505', -'504':'504','503':'503','502':'502','501':'501', -'500':'500','499':'499','498':'498','497':'497', -'496':'496','495':'495','494':'494','493':'493', -'492':'492','491':'491','490':'490','489':'489', -'488':'488','487':'487','486':'486','485':'485', -'484':'484','483':'483','482':'482','481':'481', -'480':'480','479':'479','478':'478','477':'477', -'476':'476','475':'475','474':'474','473':'473', -'472':'472','471':'471','470':'470','469':'469', -'468':'468','467':'467','466':'466','465':'465', -'464':'464','463':'463','462':'462','461':'461', -'460':'460','459':'459','458':'458','457':'457', -'456':'456','455':'455','454':'454','453':'453', -'452':'452','451':'451','450':'450','449':'449', -'448':'448','447':'447','446':'446','445':'445', -'444':'444','443':'443','442':'442','441':'441', -'440':'440','439':'439','438':'438','437':'437', -'436':'436','435':'435','434':'434','433':'433', -'432':'432','431':'431','430':'430','429':'429', -'428':'428','427':'427','426':'426','425':'425', -'424':'424','423':'423','422':'422','421':'421', -'420':'420','419':'419','418':'418','417':'417', -'416':'416','415':'415','414':'414','413':'413', -'412':'412','411':'411','410':'410','409':'409', -'408':'408','407':'407','406':'406','405':'405', -'404':'404','403':'403','402':'402','401':'401', -'400':'400','399':'399','398':'398','397':'397', -'396':'396','395':'395','394':'394','393':'393', -'392':'392','391':'391','390':'390','389':'389', -'388':'388','387':'387','386':'386','385':'385', -'384':'384','383':'383','382':'382','381':'381', -'380':'380','379':'379','378':'378','377':'377', -'376':'376','375':'375','374':'374','373':'373', -'372':'372','371':'371','370':'370','369':'369', -'368':'368','367':'367','366':'366','365':'365', -'364':'364','363':'363','362':'362','361':'361', -'360':'360','359':'359','358':'358','357':'357', -'356':'356','355':'355','354':'354','353':'353', -'352':'352','351':'351','350':'350','349':'349', -'348':'348','347':'347','346':'346','345':'345', -'344':'344','343':'343','342':'342','341':'341', -'340':'340','339':'339','338':'338','337':'337', -'336':'336','335':'335','334':'334','333':'333', -'332':'332','331':'331','330':'330','329':'329', -'328':'328','327':'327','326':'326','325':'325', -'324':'324','323':'323','322':'322','321':'321', -'320':'320','319':'319','318':'318','317':'317', -'316':'316','315':'315','314':'314','313':'313', -'312':'312','311':'311','310':'310','309':'309', -'308':'308','307':'307','306':'306','305':'305', -'304':'304','303':'303','302':'302','301':'301', -'300':'300','299':'299','298':'298','297':'297', -'296':'296','295':'295','294':'294','293':'293', -'292':'292','291':'291','290':'290','289':'289', -'288':'288','287':'287','286':'286','285':'285', -'284':'284','283':'283','282':'282','281':'281', -'280':'280','279':'279','278':'278','277':'277', -'276':'276','275':'275','274':'274','273':'273', -'272':'272','271':'271','270':'270','269':'269', -'268':'268','267':'267','266':'266','265':'265', -'264':'264','263':'263','262':'262','261':'261', -'260':'260','259':'259','258':'258','257':'257', -'256':'256','255':'255','254':'254','253':'253', -'252':'252','251':'251','250':'250','249':'249', -'248':'248','247':'247','246':'246','245':'245', -'244':'244','243':'243','242':'242','241':'241', -'240':'240','239':'239','238':'238','237':'237', -'236':'236','235':'235','234':'234','233':'233', -'232':'232','231':'231','230':'230','229':'229', -'228':'228','227':'227','226':'226','225':'225', -'224':'224','223':'223','222':'222','221':'221', -'220':'220','219':'219','218':'218','217':'217', -'216':'216','215':'215','214':'214','213':'213', -'212':'212','211':'211','210':'210','209':'209', -'208':'208','207':'207','206':'206','205':'205', -'204':'204','203':'203','202':'202','201':'201', -'200':'200','199':'199','198':'198','197':'197', -'196':'196','195':'195','194':'194','193':'193', -'192':'192','191':'191','190':'190','189':'189', -'188':'188','187':'187','186':'186','185':'185', -'184':'184','183':'183','182':'182','181':'181', -'180':'180','179':'179','178':'178','177':'177', -'176':'176','175':'175','174':'174','173':'173', -'172':'172','171':'171','170':'170','169':'169', -'168':'168','167':'167','166':'166','165':'165', -'164':'164','163':'163','162':'162','161':'161', -'160':'160','159':'159','158':'158','157':'157', -'156':'156','155':'155','154':'154','153':'153', -'152':'152','151':'151','150':'150','149':'149', -'148':'148','147':'147','146':'146','145':'145', -'144':'144','143':'143','142':'142','141':'141', -'140':'140','139':'139','138':'138','137':'137', -'136':'136','135':'135','134':'134','133':'133', -'132':'132','131':'131','130':'130','129':'129', -'128':'128','127':'127','126':'126','125':'125', -'124':'124','123':'123','122':'122','121':'121', -'120':'120','119':'119','118':'118','117':'117', -'116':'116','115':'115','114':'114','113':'113', -'112':'112','111':'111','110':'110','109':'109', -'108':'108','107':'107','106':'106','105':'105', -'104':'104','103':'103','102':'102','101':'101', -'100':'100','099':'099','098':'098','097':'097', -'096':'096','095':'095','094':'094','093':'093', -'092':'092','091':'091','090':'090','089':'089', -'088':'088','087':'087','086':'086','085':'085', -'084':'084','083':'083','082':'082','081':'081', -'080':'080','079':'079','078':'078','077':'077', -'076':'076','075':'075','074':'074','073':'073', -'072':'072','071':'071','070':'070','069':'069', -'068':'068','067':'067','066':'066','065':'065', -'064':'064','063':'063','062':'062','061':'061', -'060':'060','059':'059','058':'058','057':'057', -'056':'056','055':'055','054':'054','053':'053', -'052':'052','051':'051','050':'050','049':'049', -'048':'048','047':'047','046':'046','045':'045', -'044':'044','043':'043','042':'042','041':'041', -'040':'040','039':'039','038':'038','037':'037', -'036':'036','035':'035','034':'034','033':'033', -'032':'032','031':'031','030':'030','029':'029', -'028':'028','027':'027','026':'026','025':'025', -'024':'024','023':'023','022':'022','021':'021', -'020':'020','019':'019','018':'018','017':'017', -'016':'016','015':'015','014':'014','013':'013', -'012':'012','011':'011','010':'010','009':'009', -'008':'008','007':'007','006':'006','005':'005', -'004':'004','003':'003','002':'002','001':'001', -'000':'000' -} , - 'h' : { 'cl1':'221' , 'cl2':'222' , 'cl3':'223' , 'cl4':'224' , @@ -576,6 +393,12 @@ chbre_prises={ 'a' : '999':'701' , '998':'702' , '997':'703' , '996':'704'} } +chbre_prises["g"] = {} +for i in range(701): + chbre_prises["g"]["%03d" % i] = "%03d" % i + chbre_prises["g"]["%03da" % i] = "%03d" % i + chbre_prises["g"]["%03db" % i] = "%03d" % i + # Prises d'uplink, de machines du crans / Prises d'utilité CRANS uplink_prises={ 'a' : { 49 : 'uplink->backbone', 50 : 'uplink->bata-1',