Talk:List of XEPs

From JaWiki (Jabber/XMPP wiki)
Revision as of 06:31, 2 September 2015 by 46.151.52.68 (Talk) (uzjsr khsjm for 90% nxntnt8: new section)

Jump to: navigation, search

Скрипт для генерации и проверки списка

Требуется Python 3

#! /usr/bin/env python3
# -*- coding: utf-8 -*-


# input
XEPS_ORIG_URL = 'http://xmpp.org/extensions/xeps.xml'
XEPS_WIKI_URL_T = 'http://jawiki.ru/index.php?title={}&action=raw'
XEPS_WIKI_URL_PAGES = (
    'Список_расширений/0001—0049',
    'Список_расширений/0050—0099',
    'Список_расширений/0100—0149',
    'Список_расширений/0150—0199',
    'Список_расширений/0200—0249',
    'Список_расширений/0250—0299'
)


import itertools
import re
import sys
import urllib.request
import xml.etree.ElementTree as xml


def fetchUrl(url):
    return urllib.request.urlopen(url).read().decode('UTF-8')


def initXepList():
    print('... Получение оригинального списка расширений... ', end='', file=sys.stderr)
    sys.stderr.flush()
    xeps_orig_xml = xml.XML(fetchUrl(XEPS_ORIG_URL))
    print('Готово.', file=sys.stderr)
    
    xeps_orig = {}
    for xep in xeps_orig_xml:
        number = xep.find('number').text
        xeps_orig[number] = {
            'name': xep.find('name').text,
            'abstract': xep.find('abstract').text,
            'type': xep.find('type').text.replace(' ', '_'),
            'status': xep.find('status').text
        }
    
    for number in sorted(xeps_orig):
        print(
            '{{{{XepListItem|{number}|{name}|{abstract}|||{type}|{status}}}}}'
                .format(number=number, **xeps_orig[number])
        )


def main():
    print('... Получение списка расширений из ЯВики... ', end='')
    xeps_wiki = itertools.chain(*(
        fetchUrl(XEPS_WIKI_URL_T.format(urllib.parse.quote(page))).splitlines()
        for page in XEPS_WIKI_URL_PAGES
    ))
    print('Готово.')
    
    xeps = {}
    for line in xeps_wiki:
        line = line[2:-2] # убираем двойные фигурные скобки по краям, если есть
        line = re.sub(r'\{\{.*?\}\}', '', line) # вырезаем вызовы викишаблонов, в них могут быть палки
        line = re.sub(r'\[\[.*?\]\]', '', line) # вырезаем викиссылки, в них могут быть палки
        parts = line.split('|')
        if parts[0] == 'XepListItem':
            xeps[parts[1]] = {
                'name': parts[2],
                'type': parts[6].replace('_', ' '),
                'status': parts[7]
            }
    
    print('... Прочитано %d расширений.' % len(xeps))
    
    print('... Получение оригинального списка расширений... ', end='')
    xeps_orig_xml = xml.XML(fetchUrl(XEPS_ORIG_URL))
    print('Готово.')
    
    xeps_orig = {}
    for xep in xeps_orig_xml:
        number = xep.find('number').text
        xeps_orig[number] = {
            'name': xep.find('name').text,
            'type': xep.find('type').text,
            'status': xep.find('status').text
        }
    
    differ = False
    for number in sorted(xeps_orig):
        if number not in xeps:
            differ = True
            print('[*] Новое расширение: XEP-' + number)
            print('\tНазвание: ' + xeps_orig[number]['name'])
            print('\tТип: ' + xeps_orig[number]['type'])
            print('\tСтатус: ' + xeps_orig[number]['status'])
        elif xeps[number] != xeps_orig[number]:
            differ = True
            print('[*] Различается XEP-' + number)
            if xeps[number]['name'] != xeps_orig[number]['name']:
                print('\tНазвание изменено с "{0}" на "{1}"'.format(xeps[number]['name'], xeps_orig[number]['name']))
            if xeps[number]['type'] != xeps_orig[number]['type']:
                print('\tТип изменён с "{0}" на "{1}"'.format(xeps[number]['type'], xeps_orig[number]['type']))
            if xeps[number]['status'] != xeps_orig[number]['status']:
                print('\tСтатус изменён с "{0}" на "{1}"'.format(xeps[number]['status'], xeps_orig[number]['status']))
    
    if not differ:
        print('[=] Различия не найдены.')


if __name__ == '__main__':
    #initXepList()
    main()

izlue tuudy for 03% inoewn4

In a series of text messages to a group of fellow lawyers, she described hearing muffled voices outside the door, and the sound of someone trying to pick the lock. <a href=http://www.oakleyonlinesunglasses.us.com/>fake oakley sunglasses</a> The war killed 2,251 Palestinians, including more than 500 children.
i <a href=http://www.michaelkorsoutletsonlineco.com.co/>michael kors bags</a> 鈥淭he plan is now that we will be in a position to start work on the project before the end of the year if we get approvals,鈥?he said. <a href=http://www.moncleroutlet.nom.co/>moncler jackets outlet</a> No. 1 Maryland at No. 2 North Carolina Despite only launching last year, King Abdullah Port is swiftly becoming one of the largest in the world, and has signed up two of the biggest shipping lines, Denmark鈥檚 Maersk and Geneva-based MSC. 鈥淥ur port has probably had the fastest ramp-up in capacity and demand for utilisation in the history of ports,鈥?Al Rasheed says. <a href=http://www.monclerjacketsonline.us.com/>moncler parka</a> Strengthening financial regulation cooperation u <a href=http://www.airjordanshoes.me/>http://www.airjordanshoes.me</a> RealLivin <a href=http://www.ArizonaCardinalsJersey.us.com/>Cheap MLB Jerseys</a> 106 - Hunter Dischler, Weston / Ithaca, dec. over Riley Lull, Riverdale, 5-4. q I'm still waiting for my chance to go to Syria, says Budi, animated and excited by the prospect. I'm still trying to persuade Farihin to go as well. <a href=http://www.AtlantaFalconsJersey.us.com/>www.AtlantaFalconsJersey.us.com</a> KKL-JNF Information and Internet Department <a href=http://www.coachoutlet.nom.co/>Coach Outlet</a> Mrs Whittle said the ceremony was 鈥渂eautiful鈥?way to remember her daughter following the shock of her death. <a href=http://www.oakleysunglasses.nom.co/>replica oakley sunglasses</a> This project is a part of Fresh's #50easyDIY series.and come back every weekday through Dec. 6 for a new one. Pin and Instagram your own DIY projects using #50easyDIY. http://www.onlinecoachoutlets.us.com Jason and Bonita Moon, whose 2-year-old son has autism, said an account would help meet his needs as an adult. <a href=http://www.outletmoncler.us.com/>moncler outlet online</a> Freedom from fear requires a state that has monopoly of legitimate violence, Stephen Ellis, senior researcher at the African Studies Centre, University of Leiden, told IRIN. It s a modern, liberal concept of what a good state really is. k <a href=http://www.rosherunshoes2015.us.com/>nike run shoes</a> John Mcleod, chief designer, Vehicle Personalisation, Ford of Europe, said: 鈥淏lack and white is a timeless combination that evokes thoughts of chic 1960s style, and now inspires the design of products from consumer electronics to training shoes. <a href=http://www.moncleroutlet.nom.co/>moncler outlet</a> The first-leg saw the London side, which boasted the likes of Pat Nevin, Kerrie Dixon and Steve Clarke, travel to the North-East to battle it out with Bruce Rioch鈥檚 men in front of a 25,000-strong The opening of Cabela s, a 165,000-square-foot outdoor retailer, in 2006 sparked an increase in commercial development in the Richfield community. <a href=http://www.jacketscanadagoose.us.com/>canada goose outlet</a> PATELEY BRIDGE. - Sat. Fwd: 2341 sheep. Suff Texel: M Pickard, East Witton, 拢53.60; Mules: C Ashby N Houseman 拢41.65; Masham: JH JA Graham Sons 拢39.10; horned: J G Huck, Ten years ago: Former WorldCom boss Bernard Ebbers was sentenced to 25 years in prison for leading a massive corporate fraud. <a href=http://www.jacketscanadagoose.us.com/>canada goose sale</a> The board determined there was no "clear and convincing evidence" that Weishan violated the county ethics code in March 2014 when he sent a mailing to residents of the state 15th Assembly District, the board said in a letter dated Tuesday to Michael Maistelman, a Milwaukee attorney representing Weishan.

They have also reset the PIN codes on several cards and used them as ATM cards, , the cybersecurity reporter who broke the stories on Home Depot and Target. <a href=http://www.coachoutletstoreonline.me/>Coach Outlet</a> <quote>

<bold>Pierremontquaker03</bold> wrote: f The three person independent panel, chaired by Northumbria Police鈥檚 Temporary Assistant Chief Constable Debbie Ford, heard the evidence at the disciplinary hearing at Cleveland Police鈥檚 headquarters. <a href=http://www.coachonlineoutlet.us.org/>Coach Outlet</a> Well, as I recall she was enthusiastic, but I forgot to take my customary notes because I was revelling in my beef cheeks so much, and wondering how you could give mashed potato such a delicate smoking without it overpowering everything else. The dessert menu was distinctly fruity, and I half-raised an eyebrow of concern at there not being even a whiff of anything chocolatey to tempt me. SPIEGEL: Have you regretted killing these people? <a href=http://www.airmaxnike.us.com/>air max 2015</a> He s got a big black eye and obviously couldn t take any further part in the game. We don t know officially what is wrong but the trainer said he wasn t right to go back on. u <a href=http://www.coachonlineoutlet.us.org/>Coach Factory Outlet</a> Stoneman and Borthwick put on 146 for the second wicket before the captain steered a catch to point after facing 104 balls and hitting 12 fours. <a href=http://www.cheapnfljerseys.site/>nfl jerseys cheap</a> "That was in the plans all the time and what Senator (Herb) Kohl had in his mandate. It was what we planned for, but not all plans work out. j Follow Thomas Beaumont on Twitter at: http://twitter.com/tombeaumont <a href=http://www.airmax-90nike.us.com/>cheap nike sneakers</a> At its decision-making forum in Dublin, the human rights watchdog approved the resolution to recommend "full decriminalization of all aspects of consensual sex work." It argues its research suggests decriminalization is the best way to defend sex workers human rights. l It was difficult to say which looked flatter as a result of the ageing ball 鈥?the pitch or the Durham attack as Glenn Maxwell and Adil Rashid scored centuries in a sixth-wicket stand of 248. <a href=http://www.cheapnfljerseys.site/>cheap nike nfl jerseys</a> 50g butter <a href=http://www.outletcanadagoose.us.com/>canada goose jackets</a> IHRvIHN1c3RhaW4gdGhlICYjODIyMDt0cmlja2xlIGRvd24mIzgyMjE7IHRoZW9yeS4gPC9wPjxw <a href=http://www.cheapuggssale.us.org/>Cheap Uggs</a> Fourteen years after the US-led invasion, a woman s place in Afghanistan is still largely indoors and out of sight. o <a href=http://www.jacketscanadagoose.us.com/>canada goose outlet</a> In another life I would be... <a href=http://www.moncleroutlet.net.co/>www.moncleroutlet.net.co</a> 2 cups packed coarsely chopped fresh cilantro, basil or mint leaves or a combination Then, eight years later, while those children are enjoying their senior high school Halloween dance, an unknown person leaves a frightening, jack-o-lantern at each of their houses. <a href=http://www.oakleysunglasses.in.net/>fake oakley sunglasses</a> Active commuting is, of course, more difficult in spread-out cities and places with little or no mass transit. When a Detroit newspaper published a story about a man who walked 33km round trip as part of his daily bus commute, sympathetic readers donated thousands of dollars to buy him a car. s <a href=http://www.glassesoakley.us.com/>oakley sunglasses store</a> Whether Kibirige takes a seat alongside him remains to be seen, but he is reported to be ready for action after his 13-month lay-off since breaking a leg on his Premiership debut. He may yet feature for the Falcons before their season ends. <a href=http://www.bootsuggcheap.us.com/>Uggs For Women</a> I opted for a prophylactic mastectomy and hysterectomy... and then post-surgery I was prescribed hormonal drugs, Tamoxifen, McGuire said.

uzjsr khsjm for 90% nxntnt8

ZCBnZW5lcmF0aW5nIG1vcmUgbW9uZXkgZnJvbSBhIG1vZGVybml6ZWQgc2V2ZXJhbmNlIHRheCBj <a href=http://www.coachoutletstores.net.co/>Coah Handbags</a> "Uganda must ensure at least 190,000 additional people are newly enrolled on HIV treatment this coming financial year - maintaining the current pace of treatment scale-up - in order to save lives and help halt sexual transmission. Now is not the time for government to flat-line national funding for life-saving medicines. The budget for ART <anti>retroviral therapy] should increase by 50 percent at minimum, she said. d <a href=http://www.canadagooseoutlet.site/>canada goose outlet</a> Alistair Waddecarr鈥檚 16th goal of the season gave them a lifeline. He slotted past Peter Jameson after an Andrew Bell through-ball, though Darlington were impaired at that point due to Gary Brown鈥檚 groin injury, and he was soon replaced by Liam Hatch. <a href=http://www.coachfactoryoutlet.click/>Coach Outlet Store Online</a> According to the statement, a Casa army mil-airfreighter, a Panther helicopter and a La Verdon patrol boat have been deployed so far, with 35 persons involved in the 18.5 hours searching from the sky and sea, from Aug. 7th to 9th. IzgyMjE7IE1jQ293biBzYWlkLiAmIzgyMjA7VGhvc2UgYXJlIHRoaW5ncyB0aGF0IHdlIGNhbiBn <a href=http://www.moncleroutlet.net.co/>moncler outlet</a> This is what makes it exciting, said Waukesha South coach Ryan Green. I don't think there is a clear-cut favorite. Once you get to this level of competition, I don't think there ever is. g <a href=http://www.coachonlineoutlet.us.org/>Coach Bags</a> 鈥淭he England Counties game was a good start for us, we then took on the Premiership Sevens but this will be the biggest event so far 鈥?that鈥檚 going to be topped off by the All Blacks coming here at the end of the year.鈥?<a href=http://www.AtlantaFalconsJersey.us.com/>Cheap Jerseys</a> , Journal Sentinel Inc. All rights reserved. i They also said that Sundar Pichai is taking over as CEO of Google. <a href=http://www.AtlantaFalconsJersey.us.com/>Wholesale NFL Jerseys</a> Gamrat has not commented and canceled a planned meeting with constituents Monday. <a href=http://www.cheapnfljerseys.site/>nfl jerseys cheap</a> What would your superpower be? <a href=http://www.cheapchinajerseysnfl.us.org/>Cheap NFL Jerseys</a> , Journal Sentinel Inc. All rights reserved. http://www.cheapjordanshoes.us.org biBhcmd1bWVudCBmb3IgbGVnaXNsYXRpdmUgYWN0aW9uIG5vdyBtb3JlIHBlcnN1YXNpdmUgaXMg <a href=http://www.airmaxnike.us.com/>cheap nike air max</a> More often than not the right play is made and points are scored. u <a href=http://www.moncleroutlet.nom.co/>moncler outlet online</a> And in addition Imperial Bird of Prey Academy and Trevor Fowles will be flying some of their own birds. <a href=http://www.cheapuggssale.us.org/>Cheap Uggs</a> Recipes SECOND TEAM <a href=http://www.coachoutletstoreonline.me/>Coach Outlet Online</a> Boston (S.Wright 5-4) at Miami (Nicolino 1-1), 7:10 p.m. She was recently spotted at the Four Season Hotel in Amman, Jordan. She was shooting scenes on the site and was seen sporting traditional dress. <a href=http://www.onlinecoachoutlets.us.com/>Coach Online Outlet</a> He says he's now a stronger writer for taking his break, and has built up the idea bank. I started dreading practices, and I just didn't love the sport like I wanted to, she said. My parents could tell how I felt. They just wanted me to be happy. <a href=http://www.outletmichael-kors.us.com/>www.outletmichael-kors.us.com</a> I don t know how they found out how I used to work with the Ebola team, she told IRIN. But when I went for my reply at the school, someone confided in me that I was denied the job because I worked for an Ebola team. e Describe your perfect night in: Fillet steak with a lovely wine, then relaxing in front of the log burner listening to music. <a href=http://www.AtlantaFalconsJersey.us.com/>Cheap NHL Jerseys</a> The court took note of the Delhi Fire Service Act, 2009, which says that a restaurant with seating space for less than 50 people does not need a no-objection certificate from the fire department. Hornibrook was poised and confident for most of the spring and at times appeared to be the best option on the field. He might be a year away, but he is a player to watch. <a href=http://www.cheapchinajerseysnfl.us.org/>Cheap NFL Jerseys from China</a> Yesterday the union denounced the sackings as an 鈥渦nconscionable鈥?and 鈥渂arbaric鈥?union-busting operation and declared that it would 鈥渦nleash every tool available鈥攍egal, political and industrial鈥?against HPH. m <a href=http://www.moncleroutlet.nom.co/>moncler jackets outlet</a> He was the first chairman of Cleveland Fire Authority in 1996. <a href=http://www.oakleysunglasses.in.net/>oakley sunglasses</a> Skygen USA 鈥?the new brand name for a family of companies started by Kasten and Borca 鈥?has roughly doubled in size in the past two years. Skygen companies now employ about 500 people, up from 241 in 2013. And revenue increased to $77 million last year, up from $35.6 million in 2011. This year, it's projected to reach $95 million. s NEW YORK (MYFOXNY) - <a href=http://www.coachoutlet.nom.co/>Coach Factory Outlet</a> Soft magistrates likely fearing reprisal. If you can't dish out the decent sentences, leave the job and let someone who isn't afraid have a go. y 鈥淗e is fully familiar with teams and players at our level and above 鈥?in addition to all levels of the Scottish game. <a href=http://www.uggbootsblackfriday.us.com/>Cheap Uggs</a> To assemble: Set 1 salmon fillet on each serving plate. Top each plate with three shrimp, then ladle some of the sauce over the top. Garnish with green onions and serve with rice and vegetable of your choice. <a href=http://www.ArizonaCardinalsJersey.us.com/>Cheap Jerseys From China</a> East Carolina junior Luke Lowery and redshirt junior David Lucroy were selected in 2015 Major League Baseball Draft Wednesday. <a href=http://www.airmax-90nike.us.com/>air max</a> The man charged with capital murder in the deaths made a brief court appearance Monday. David Conley spoke only to acknowledge his name when asked by the judge. There was no mention of a lawyer either hired or appointed for him. e <a href=http://www.cheapchinajerseysnfl.us.org/>Cheap NFL Jerseys from China</a> With Dara And Ed's Great Big Adventure, one of their main moaning points was how the series was shot. <a href=http://www.ugg-bootscheap.us.com/>Uggs Outlet</a> District 7: Michael Mayo Sr., 55, on the board since 1994, defeated Jermaine A. Buckner, 27, an estimator for a landscaping firm. Mayo had 68% and Buckner had 32%. Fears that a Superfund site nearby will sink property values and chase away investment are common in America; numerous studies have explored this topic. But "normally, people want it to be cleaned, so if that's the best way of moving through it, generally communities want" Superfund designation, said Katherine Kiel, who teaches at the College of the Holy Cross in Worcester, Massachusetts. <a href=http://www.airjordanshoes.me/>air jordan shoes</a> Here are five takeaways from Thursday s pre-debate debate. v <a href=http://www.boots-uggs.us.com/>Uggs Outlet</a>

The Northern Echo reported last week how Zyro has the capacity to expand, and Mrs Ellison said it has a very bright future in the town. <a href=http://www.coachonlineoutlet.us.org/>Coach Factory Outlet</a> "Don't worry, I won't let you down," I promised, making a mental note to plant my foot firmly on the break - a piece of metal wedged into the ice - as much as I could.