"Do not do to others what you would not have done to yourself."
"Why do laws exist? Because whatever may happen may happen to you."
Out of the absence of both, out of weakness in the Sharia or local interpretations, and out of corruption in the village has come The Stoning of Soraya M. 
If the canon has held up, Americans know an analog from high school English: Shirley Jackson's "The Lottery" .
Jackson seems to have had an understanding of cosmic chance, the banality of evil, injustice, and the culturally neurotic:
"They do say," Mr. Adams said to Old Man Warner, who stood next to him, "that over in the north village they're talking of giving up the lottery."
Old Man Warner snorted. "Pack of crazy fools," he said. "Listening to the young folks, nothing's good enough for them. Next thing you know, they'll be wanting to go back to living in caves, nobody work any more, live hat way for a while. Used to be a saying about 'Lottery in June, corn be heavy soon.' First thing you know, we'd all be eating stewed chickweed and acorns. There's always been a lottery," he added petulantly. "Bad enough to see young Joe Summers up there joking with everybody."
Freighted with multiple motivations and little of human plotting apart from defending the business of sustaining a bad habit, Jackson's story has about it an innocense and puzzlement absent from The Stoning of Soraya M.
In The Stoning of Soraya M., the antagonist, a husband with an "inconvenient wife", and those he enlists through blackmail to get rid of her know exactly the evil they're doing, the husband with relish, others with more or less reluctant but obedient complicity, only a very little of it confused with piety. Out of cowardice, fear, greed, and misogyny, the last itself a deep expression of fear, none escape doing exactly what they would not wish to have done to themselves.
Judiciary chief Ayatollah Mahmoud Hashemi-Shahroudi ordered a moratorium on stoning in 2002. In August 2008, Iranian judiciary spokesman Alireza Jamshidi announced a suspension of some executions by stoning but has since said individual judges were still free to order stonings until laws were integrated. 
While the Qur'an makes no mention of stoning, hadith--actions taken and remark made by Mohammad and passed along in oral tradition--nonetheless do , and they're taken into consideration in the formulation of Islamic law. Here is an example from a page filled by many of similar bent:
Narrated 'Abdullah bin 'Umar : The Jew brought to the Prophet a man and a woman from amongst them who have committed (adultery) illegal sexual intercourse. He ordered both of them to be stoned (to death), near the place of offering the funeral prayers beside the mosque." 
To this day, Iran has taken but half measures to stop the practice depicted in the film, which is not to imply that it remains common but rather tolerated, or, in my best Orwellian, insufficiently opposed. In fact, as late as this past fall (2009), the case of Kobra Babaei , scheduled for stoning, and her husband, already hung on a charge of sodomy (on Joana Morais' blog, the charge appears in quotation marks, suggesting its own suspect qualities) has come up and remains at the top of related searches including "Amnesty International" in the search string.
In the film, while the barbarity of the practice of stoning looms large, and perhaps with the spirit of Peckinpah looking on turns to blunt force in depiction, the political life of the village as illustrated by the plotting against Soraya may leave the more lasting impact: implied for the women of the village, "If it could happen to Soraya . . . ."
1. Nowrasteh, Cyrus (Director). The Stoning of Soraya M. Film. 2008: http://www.imdb.com/title/tt1277737/
2. Jackson, Shirley. "The Lottery." American Literature (web site): http://www.americanliterature.com/Jackson/SS/TheLottery.html
3. Kearney, Christine. "Film set in Iran examines death by stoning." Reuters, June 22, 2009: http://www.reuters.com/article/idUSN23352076
4. Wikipedia. "Rajm": http://en.wikipedia.org/wiki/Rajm
5. WikiIslam. "Qur'an, Hadith, and Scholars: Stoning to Death": http://www.wikiislam.com/wiki/Qur'an,_Hadith_and_Scholars:Stoning_to_Death
6. Morais, Joana. "Kobra Babaei at risk of being stoned to death in Iran." (Google translated from Spanish), Joana Morais, November 18, 2009: http://joana-morais.blogspot.com/2009/11/kobra-babaei-em-risco-de-ser-lapidada.html
# # #