Beispiel #1
0
def getRandomGlobalNameInfo():
    info = GlobalNameInfo()
    info.person_count = random.randint(100,1000)
    info.male_count = random.randint(100,1000)
    info.female_count = random.randint(100,1000)

    info.xing_char_count = random.randint(100,1000)
    info.xing_count = random.randint(100,1000)
    info.ming_char_count = random.randint(100,1000)
    info.ming_count = random.randint(100,1000)
    info.xing_ming_count = random.randint(100,1000)
Beispiel #2
0
    def getInitedGlobalNameInfo():
        """ Returns a defualt initialized GlobalNameInfo instance."""
        info = GlobalNameInfo()
        info.xing_char_count = 0;
        info.diff_xing_char_count = 0;

        info.xing_count = 0;
        info.diff_xing_count = 0;

        info.ming_char_count = 0;
        info.diff_ming_char_count =0;

        info.ming_count = 0;
        info.diff_ming_count = 0;

        info.xing_ming_count = 0;
        info.diff_xing_ming_count = 0;

        info.person_count = 0;
        info.male_count = 0;
        info.female_count = 0;

        return info