Skip to content

Commit

Permalink
Adding in definitions of constants
Browse files Browse the repository at this point in the history
  • Loading branch information
kallewesterling committed Sep 19, 2024
1 parent 99414ef commit ddabdcb
Show file tree
Hide file tree
Showing 12 changed files with 388 additions and 272 deletions.
227 changes: 113 additions & 114 deletions seshat/apps/core/constants.py

Large diffs are not rendered by default.

Empty file.
Empty file.
49 changes: 28 additions & 21 deletions seshat/apps/crisisdb/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"CRISIS_DEFS_EXAMPLES",
"POWER_TRANSITIONS_DEFS_EXAMPLES",
"TAGS_DIC",
"NO_SECTION_DICT"
]

from ..global_constants import ICONS, ATTRS_HTML
Expand Down Expand Up @@ -188,147 +189,147 @@
</p>
<p {ATTRS_HTML.text_secondary_italic}>
<span {ATTRS_HTML.text_green_bold}>Example</span>: During the Ayyubid Sultanate of 1200 there was a devastating famine which forced some parts of the population into cannibalism.
</p>""",
</p>""", # noqa: E501 pylint: disable=C0301
"collapse": f"""
<p {ATTRS_HTML.text_secondary}>
<span {ATTRS_HTML.text_green_bold}>Severe decline (e.g., >50%)</span> or dissolution of a population to a point where it is unable to recover. Specify the extent of the collapse of the population where possible. Generally this involves ‘extinction’ or near-extinction of ethnic, linguistic, or other cultural groups.
</p>
<p {ATTRS_HTML.text_secondary_italic}>
<span {ATTRS_HTML.text_green_bold}>Example</span>: The Inca Empire suffered catastrophic losses due to the outbreak of smallpox which was quickly followed by the Spanish conquest. The population was approximately 9 million in 1520 before the arrival of the Spanish and fell to 600,000 by 1620.
</p>""",
</p>""", # noqa: E501 pylint: disable=C0301
"epidemic": f"""
<p {ATTRS_HTML.text_secondary}>
Severe outbreak of infectious disease which affects a large portion of the population, such as plague, cholera or smallpox. If estimates or exact figures of those infected or killed are known, specify them.
</p>
<p {ATTRS_HTML.text_secondary_italic}>
<span {ATTRS_HTML.text_green_bold}>Example</span>: In 1596 Habsburg Spain suffered a plague which spread across the entire of mainland Spain and killed an estimated 500,000 people in six years.
</p>""",
</p>""", # noqa: E501 pylint: disable=C0301
"downward_mobility": f"""
<p {ATTRS_HTML.text_secondary}>
This refers to the downward mobility - such as loss of power, land, title or privilege - among a large portion of the elite and often their supporters. Events concerning an individual, such as a royal family member being exiled, are not considered here.
</p>
<p {ATTRS_HTML.text_secondary_italic}>
<span {ATTRS_HTML.text_green_bold}>Example</span>: After the Genpei Civil War in 1185 all members of the Minamoto clan were removed from their posts at court and exiled.
</p>""",
</p>""", # noqa: E501 pylint: disable=C0301
"extermination": f"""
<p {ATTRS_HTML.text_secondary}>
The mass killing and/or expulsion of an elite group such as a clan or a ruler and their noble supporters. The end of a dynasty is not included here unless it was accompanied by the slaughter of a specific elite group.
</p>
<p {ATTRS_HTML.text_secondary_italic}>
<span {ATTRS_HTML.text_green_bold}>Example</span>: Following the Genkō Civil War in 1333, the entire of the Hōjō clan were forced to commit suicide by the reinstated emperor, Go-Daigo.
</p>""",
</p>""", # noqa: E501 pylint: disable=C0301
"uprising": f"""
<p {ATTRS_HTML.text_secondary}>
[NB: formerly "Revolution"]. Widespread serious revolt, rebellion, coup d’etat, or uprising which is often violent (but need not be led by armed groups) and/or leads to significant institutional changes in the polity. Note where possible if uprising is led by elites, military officials, popular / laborer groups (rural or urban), or a combination.
</p>
<p {ATTRS_HTML.text_secondary_italic}>
<span {ATTRS_HTML.text_green_bold}>Example</span>: The Mexican War of Independence 1810-1821 was a series of simultaneous regional and local armed conflicts against Spanish rule, which led to the break from Spain and the establishment of the Mexican Empire.
</p>""",
</p>""", # noqa: E501 pylint: disable=C0301
"revolution": f"""
<p {ATTRS_HTML.text_secondary}>
Revolution is the attempted forcible overthrow of a government through mass mobilization (whether military or civilian or both) in the name of social justice, inclduing national liberation or ethno-nationalist movements, to create new political institutions. This is distinct from rebeliions and other uprisings that do not necesarrily involve mass mobilization or seek systemic / governmental change (though they can). Revolutions is thus here viewed as a special type of Uprising. These definitions follow: Goldstone 2014 Revolutions: A Very Short Introduction | Goldstone, Jack A., Leonid Grinin, and Andrey Korotayev. Handbook of Revolutions in the 21st Century: The New Waves of Revolutions, and the Causes and Effects of Disruptive Political Change. Springer Nature, 2022.
</p>
<p {ATTRS_HTML.text_secondary_italic}>
<span {ATTRS_HTML.text_green_bold}>Example</span>: The failed Czech / Bohemian revolts of during the 30 Years War sought to liberate the territory from Habsburg control and reject Catholic influence .
</p>""",
</p>""", # noqa: E501 pylint: disable=C0301
"successful_revolution": f"""
<p {ATTRS_HTML.text_secondary}>
A revolution that succeeds in overthrowing the existing ruler / governmental systems and/or creating a new independent polity.
</p>
<p {ATTRS_HTML.text_secondary_italic}>
<span {ATTRS_HTML.text_green_bold}>Example</span>: French Revolution of 1789 was an elite-led mass mobilization leading to the overthrow of the French Monarchy.
</p>""",
</p>""", # noqa: E501 pylint: disable=C0301
"civil_war": f"""
<p {ATTRS_HTML.text_secondary}>
A violent conflict between citizens of the same polity, usually between the state and one or more organized groups, or between two or more organized groups following state collapse.
</p>
<p {ATTRS_HTML.text_secondary_italic}>
<span {ATTRS_HTML.text_green_bold}>Example</span>: In 1727 upon the death of Sultan Isma&rsquo;il of the Alaouite Dynasty, a succession crisis between his sons led to factions within court and the country went to war until 1757.
</p>""",
</p>""", # noqa: E501 pylint: disable=C0301
"century_plus": f"""
<p {ATTRS_HTML.text_secondary}>
Any crisis which lasts for a century or more. This may be a string of events such as uprisings, war, and disease during the crisis period rather than one long event.
</p>
<p {ATTRS_HTML.text_secondary_italic}>
<span {ATTRS_HTML.text_green_bold}>Example</span>: In Crete during the late fourth century constant elite in-fighting led to a near-collapse of the aristocratic order and constant warfare, which lasted for hundreds of years, between the city states of Gortyn, Kydonia (Chania), Lyttos, Polyrrhenia and Knossos weakened Crete&rsquo;s economy.
</p>""",
</p>""", # noqa: E501 pylint: disable=C0301
"fragmentation": f"""
<p {ATTRS_HTML.text_secondary}>
The division of part, or all, of a polity and its territories into quasi-polities or independent states.
</p>
<p {ATTRS_HTML.text_secondary_italic}>
<span {ATTRS_HTML.text_green_bold}>Example</span>: During the civil wars of the State of Jin in the 5th-and-6th centuries BCE, the Han, Wei and Zhao clans formed an alliance to defeat the more powerful Zhi clan. This resulted in the Partition of Jin in 453 BCE whereby Zhi lands and the rest of Jin were divided between the three successor states who were later known as the Three Jins.
</p>""",
</p>""", # noqa: E501 pylint: disable=C0301
"capital": f"""
<p {ATTRS_HTML.text_secondary}>
If the state loses control of capital settlement or the capital is destroyed. If it is destroyed, note whether it was at the hands of internal or external forces.
</p>
<p {ATTRS_HTML.text_secondary_italic}>
<span {ATTRS_HTML.text_green_bold}>Example</span>: In 1115-16 northern tribes attacked the ancient Mexican city of Tula (Tollan), defeated the priest-king, and drove him and his supporters out of the city.
</p>""",
</p>""", # noqa: E501 pylint: disable=C0301
"conquest": f"""
<p {ATTRS_HTML.text_secondary}>
The conquest and seizure of the polity’s territory by an external force. This could be a significant part of the territory, a city, the capital, or the entire territory.
</p>
<p {ATTRS_HTML.text_secondary_italic}>
<span {ATTRS_HTML.text_green_bold}>Example</span>: In 1517 the Ottoman forces defeated the Mamluks and seized the sultanate capital of Cairo in Egypt which completed their conquest of the entire Middle East.
</p>""",
</p>""", # noqa: E501 pylint: disable=C0301
"assassination": f"""
<p {ATTRS_HTML.text_secondary}>
The murder of the ruler of the polity for ideological or political reasons rather than, for example, if they fall in battle. State the type of assassination if possible, such as execution or poisoning, and who ordered or carried out the assassination if known or speculated.
</p>
<p {ATTRS_HTML.text_secondary_italic}>
<span {ATTRS_HTML.text_green_bold}>Example</span>: When Emperor Ping of the Western Han Empire came of age in 5 BCE and made it clear that he resented the regent Duke Wang Mang&rsquo;s former actions, Mang had the emperor poisoned, and arranged for a distant 1 year old relative to be placed on the throne so that he could control him.
</p>""",
</p>""", # noqa: E501 pylint: disable=C0301
"depose": f"""
<p {ATTRS_HTML.text_secondary}>
The ruler of the polity is removed, but not killed. Note: this does not include episodes where the ruler is captured by a foreign polity, but refers to cases where the ruler is removed by ‘internal’ foes.
</p>
<p {ATTRS_HTML.text_secondary_italic}>
<span {ATTRS_HTML.text_green_bold}>Example</span>: During the Eastern Jin Dynasty in 372 CE a powerful general plotted to depose the emperor Fei by spreading damaging rumours of impotency and homosexuality and finally forced Empress Dowager Chu to issue an edict deposing Fei.
</p>""",
</p>""", # noqa: E501 pylint: disable=C0301
"constitution": f"""
<p {ATTRS_HTML.text_secondary}>
Major constitutional or institutional change such as how rulers gain power or the role of advisory bodies. This includes both increase or loss of &lsquo;democratic&rsquo; or representative governance, such as the transition from representative oligarchy to dictatorship. It also includes a significant shift in political organization such as the reorganization of provinces, new ideas about kingship, or reforms are included.
</p>
<p {ATTRS_HTML.text_secondary_italic}>
<span {ATTRS_HTML.text_green_bold}>Example</span>: The Persian Constitutional Revolution of 1906 led to wide-reaching reforms including the establishment of a parliament and elections, and making the power of the Shah contingent to the will of the people, which saw the beginning of a modern era in Iran.
</p>""",
</p>""", # noqa: E501 pylint: disable=C0301
"religion": f"""
<p {ATTRS_HTML.text_secondary}>
The major change or reorganization of religious systems or &lsquo;official cult&rsquo; (the set of collective ritual practices that are most closely associated with legitimation of the power structure). This may be the adoption of a new state religion or state support for a particular religious group.
</p>
<p {ATTRS_HTML.text_secondary_italic}>
<span {ATTRS_HTML.text_green_bold}>Example</span>: After the Islamic Almoravid dynasty occupied and acquired the regions of Kawkaw, Takrur, Ghana, and Bornu, local rulers converted to Islam to ensure administrative support, legitimisation, and commercial contacts. While Islam became an imperial cult and the religion of state, most agricultural groups maintained traditional beliefs.
</p>""",
</p>""", # noqa: E501 pylint: disable=C0301
"unfree_labor": f"""
<p {ATTRS_HTML.text_secondary}>
Any change to unfree labor laws. Record only positive changes here such as the abolition of or restcrictions on slavery, or the end of serfdom.
</p>
<p {ATTRS_HTML.text_secondary_italic}>
<span {ATTRS_HTML.text_green_bold}>Example</span>: Alexander II freed all in-service serfs and abolished the practice of serfdom in the Emancipation Reform of 1861 in Russia which granted over 23 million people their freedom and the full rights of citizenship in the Russian Empire.
</p>""",
</p>""", # noqa: E501 pylint: disable=C0301
"suffrage": f"""
<p {ATTRS_HTML.text_secondary}>
The new inclusion of a group into the polity’s governance. Record only positive changes here such as the right to vote for previously disenfranchised groups.
</p>
<p {ATTRS_HTML.text_secondary_italic}>
<span {ATTRS_HTML.text_green_bold}>Example</span>: In the Early Roman Republic, 494 BCE, the plebeians went on strike, refusing to march to war against a coalition of tribes from central Italy. A settlement was reached when Rome&rsquo;s aristocrats extended to the plebeians the right to vote for certain magistrates, known as the Tribunes of the Plebs (essentially the &lsquo;people&rsquo;s magistrates&rsquo;).
</p>""",
</p>""", # noqa: E501 pylint: disable=C0301
"public_goods": f"""
<p {ATTRS_HTML.text_secondary}>
Any public welfare programs or system changes which use significant state resources for the benefit of the wider population. This does not include military spending. Record only positive changes here such as improvement of infrastructure, public places of learning, or health care facilities.
</p>
<p {ATTRS_HTML.text_secondary_italic}>
<span {ATTRS_HTML.text_green_bold}>Example</span>: After a smallpox epidemic, the Habsburg ruler, Maria Theresa (r.1740-1780) ordered the opening of an inoculation center in Vienna.
</p>""",
</p>""", # noqa: E501 pylint: disable=C0301
"labor": f"""
<p {ATTRS_HTML.text_secondary}>
Significant change in labor policies, protections, or laws. Record only positive changes here such as the introduction of minimum wage, child labour laws, or worker’s compensation.
</p>
<p {ATTRS_HTML.text_secondary_italic}>
<span {ATTRS_HTML.text_green_bold}>Example</span>: The Cotton Mills and Factories Act 1819 in the UK prevented Cotton Mills from employing children under the age of 9-years-old and restricted the working hours of children aged 9-16 years-old to 12 hours per workday.
</p>""",
</p>""", # noqa: E501 pylint: disable=C0301
}

POWER_TRANSITIONS_DEFS_EXAMPLES = {
Expand Down Expand Up @@ -360,3 +361,9 @@
INNER_DURATION_DISEASE_OUTBREAK_CHOICES = [
x[0] for x in DURATION_DISEASE_OUTBREAK_CHOICES
]

NO_SECTION_DICT = {
"mysection": "X",
"mysubsection": "Y",
"myvar": "Z",
}
1 change: 1 addition & 0 deletions seshat/apps/general/specific_views/downloads/constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PREFIX = "general_"
Loading

0 comments on commit ddabdcb

Please sign in to comment.