Please test HistContext and give feedback
Setup has added features, and a better look
Possible to merge any number of data file
You can choose between comparing years or full dates
dates in the datafile is handled by gramps date handler for different formats.
As a special case has been made for implementing Today as a valid date.
The README.md has been updated
@kmikkels what is wrong here?
It happens when I try add the gramplet in right sidebar
176362: ERROR: grampsapp.py: line 188: Unhandled exception
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/gramps/gui/widgets/grampletbar.py", line 592, in __add_clicked
self.add_gramplet(gname)
File "/usr/local/lib/python3.10/dist-packages/gramps/gui/widgets/grampletbar.py", line 344, in add_gramplet
gramplet = make_requested_gramplet(
File "/usr/local/lib/python3.10/dist-packages/gramps/gui/widgets/grampletpane.py", line 190, in make_requested_gramplet
getattr(module, opts["content"])(gui)
File "/usr/local/lib/python3.10/dist-packages/gramps/gen/plug/_gramplet.py", line 70, in __init__
self.on_load()
File "/home/yurii/.local/share/gramps/gramps52/plugins/HistContext/HistContext.py", line 197, in on_load
self.__fl_ar[0] = os.path.basename(self.__sel_file)
AttributeError: 'HistContext' object has no attribute '_HistContext__sel_file'
I think it is because I tried to preserve user setup for a single file into the new file array.
Will look into it right away
Fixed.
Users who have used the old version will have to select files - only default is used
I added a few full dates for a few events and they show up yyyy-mm-dd just fine. Events with just the year all add -01-01 to the From column and -12-31 to the To column instead of just the year entry.
The “Compare on years” is a little awkward in English (I know not your native language). Maybe switch the default to using just the year and have the check box “Use full date” as the option.
Sorry, but I dont see fresh commits here GitHub - kajmikkelsen/HistContext: A python gramplet for the gramps genealogy software, which will show historical events in the sidebar
Could you share where can I download the fix from?
The fix should be on the branch on addons-source.
Will commit it on my own repo after dinner
Thanks for doing the efforts
/Kaj
Hent BlueMail til Android
Den 28. nov. 2024, fra 18.50, “Iurii via The Gramps Project (Discourse Forum & Mailing List)” <notifications@gramps.discoursemail.com> skrev:
it works. I forgot that I can install via Gramps
Thank you!
I’ve opened all *.txt examples but can not find at least one row where full date format is used. I tried but receive an exception. That is wrong here?
1900-12-12;1948-11-11;....
Now pushed to my own repo as well
My natural language is Danish.
Will use your advice
That should be OK.
I will add your date format to my test file, and return with info
My test file for dates currently looks looks like this:
17000528;1710;kajs test linje 1;https://vgdata.dk
1 dec 1801;1805; kajs test linje 2;https://vgdata.dk
Today;today;kajs test linje 3;https://vgdata.dk
1715;1716;kajs test linje 4;https://vgdata.dk
1855-02;1855-02;kajs test linje 5;https://vgdata.dk
When I look at my source, the line number you have the error in looks different.
Could you please verify the version of the gramplet, you are using, by looking at the HiistContext.gpr.py? it should be 0.2.16
And it could have something to do with the environment, what is the LANG and LANGUAGE variables?
And perhaps the LC_TIME?
Any update on this issue?
Sorry, I can check it in several days later and will answer here.
Thank you!
No, I still receive the same error. But my version is 0.2.11. The new one 0.2.16 is not available via Gramps installer
While Kaj is doing experimental tweaks to troubleshoot your problem, you will need to download a ZIP and do manual updates.
Since his Repository contains a single addon, you could use the Tools → Isotammi Tools → ZipInstall addon (from the Isotammi project) to install from the ZIP download.
Thanks for adding the Color Picker GUI.
And for the multiple file selector.
I am thinking about adding a Sociopolitical influences (requested Perplexity compile a list. Still have to reformat it for the Gramplet.):
Here’s a timeline of major prejudices, discriminatory practices, and civil rights struggles in America from 1700 to 2025, including the experiences of various immigrant groups, African Americans, Native Americans, and women:
Colonial Era to Early 19th Century (1700-1830)
- Enslavement and forced relocation of Africans
- Prejudice against Native Americans, leading to displacement and genocide
- Coverture laws limiting women’s legal rights
- Anti-Catholic sentiment (primarily Northeast)
- Discrimination against German immigrants (Mid-Atlantic and Midwest)
- Anti-loyalist sentiment during and after the American Revolution
Mid-19th Century (1830-1865)
- Indian Removal Act and Trail of Tears (1830-1850)
- Continued slavery and discrimination against African Americans
- Establishment of the reservation system for Native Americans
- Nativist movement and anti-immigrant sentiments, especially against Irish and German immigrants
- Anti-Catholic prejudice intensifies with increased Irish immigration (Northeast and urban areas)
- Anti-Chinese discrimination (West Coast)
- Anti-Italian prejudice (Northeast and urban areas)
- Anti-Eastern European and Jewish discrimination (Northeast and urban areas)
- Women’s rights movement gaining momentum
Late 19th to Early 20th Century (1865-1920)
- Anti-Chinese sentiment, leading to the Chinese Exclusion Act of 1882
- Anti-Italian and anti-Eastern European prejudice
- First Red Scare (1917-1920), targeting suspected anarchists, socialists, and communists[1][3]
Reconstruction to Jim Crow Era (1865-1965)
- Jim Crow laws and racial segregation (primarily in the South)
state and local laws that enforced racial segregation in the United States from 1880- 1960. Named after a Black character in minstrel shows- Separate but equal doctrine upheld by Plessy v. Ferguson (1896)
landmark 1896 Supreme Court case that upheld the constitutionality of racial segregation in public accommodations- Disenfranchisement of African Americans through literacy tests and poll taxes
- Miscegenation laws prohibiting interracial marriages
- Continued anti-immigrant sentiments
- Women’s suffrage movement leading to the 19th Amendment (1920)
- Second Red Scare or McCarthyism (1947-1954), intensifying fear of communist infiltration
Early to Mid-20th Century (1900-1965)
- Continued prejudice against Southern and Eastern European immigrants
- Anti-Asian sentiment, leading to restrictive laws like the Chinese Exclusion Act
- Nativist attitudes towards Catholic, Jewish, and Orthodox Christian immigrants
- Anti-Japanese sentiment leading to internment during World War II
- Civil Rights Movement gaining momentum
- Brown v. Board of Education (1954) overturning school segregation
- Civil Rights Act of 1964 prohibiting discrimination
- Voting Rights Act of 1965 protecting voting rights
Late 20th Century to Present (1965-2025)
- Discrimination against Latin American immigrants (Southwest, urban areas nationwide)
- Islamophobia, Prejudice against Middle Eastern and Muslim immigrants (nationwide, intensified post-9/11)
- Renewed anti-Asian sentiment during the COVID-19 pandemic
- Xenophobia towards asylum seekers and refugees (nationwide)
- Ongoing challenges faced by Native American communities on reservations
- Persistent racial discrimination intersecting with immigrant status
- Workplace discrimination against immigrants and minorities
- Healthcare access disparities for immigrant and minority communities
- Social and law enforcement biases against immigrant and minority populations
- Continued struggle for equal rights and opportunities for women and LGBTQ+ individuals
This timeline illustrates the long and complex history of prejudice, discrimination, and civil rights struggles in America, encompassing various groups and evolving over time. It shows how different forms of discrimination have persisted and transformed,
while also highlighting the ongoing efforts to achieve equality and justice for all.