KINGSLEY, Acting P.J.
The People appeal from a judgment denying their petition for a writ of mandate to overturn two orders of respondent municipal court in a criminal proceeding. We affirm the judgment.
The real party in interest was charged, in 15 counts, with the possession of obscene films, in violation of section 311.2 of the Penal Code. Of those counts, counts I through VII allege possession on May 20, 1977, and counts VIII through XV allege possession on May 19, 1977. The record shows that each group of films was delivered to undercover officers on those two different days.
On motion of real party in interest, the municipal court ordered what the briefs refer to as a "consolidation" of counts, grouping counts I through VII as "Count I" and counts VIII through XV as "Count II." The proceeding here attacks that action; we sustain it.
Real party in interest offered to stipulate both to the obscene character of the fifteen films and to his knowledge of that character, representing that he intended to rely only on a defense of entrapment in connection with the two deliveries. The municipal court accepted that offer and, by a pretrial order, directed that the films not be shown to the jury in the forthcoming trial. The proceeding here seeks to overturn that order. The trial court denied the attack on the ground that that ruling could not be attacked, by the People, by an extraordinary writ; we agree with that ruling.
I
We consider first, two procedural issues raised as to the present appeal:
(1) Real party in interest contends that, since the order is not listed in Penal Code section 1466, the People cannot attack it here. However, that section, like section 1238, applies only to direct appeals in criminal cases. (1) A petition for a writ of mandate or prohibition is a civil action, the judgment in which is appealable to this court under section 904.1 of the Code of Civil Procedure. ( Gilbert v. Municipal Court (1977) 73 Cal.App.3d 723 [ 140 Cal.Rptr. 897]; Burrus v. Municipal Court (1973) 36 Cal.App.3d 233 [ 111 Cal.Rptr. 539].) Although both those decisions question with vigor the wisdom of that rule, the Legislature has failed to revise it and the holdings in them are the law of California at this date.
(2) Real party in interest also contends that, because the People, in 2 Civ. 54848, sought, by an original petition in this court, to attack the orders herein involved, and that petition was summarily denied on November 24, 1978, the issue is res judicata. (2) However, the summary denial, without opinion, of a petition for a writ is not res judicata. (5 Witkin, Cal. Procedure (2d ed. 1971) Extraordinary Writs, § 146, pp. 3917-3918.) We turn, therefore, to the merits of the appeal.
II
(3) Although the law on the issue involving the consolidation matter is not entirely clear, we conclude that this appeal is governed by People v. Bowie (1977) 72 Cal.App.3d 143 [ 140 Cal.Rptr. 49]. In that case, defendant was charged in 11 counts of possession of 11 separate blank checks with intent to defraud. He moved to consolidate those 11 counts into 1 count, on the ground that there was but a single possession of the entire group. The trial court denied that motion. The appellate court held that the motion should have been granted and therefore reversed the conviction on the last 10 counts. That case is controlling in the case at bench. Here, also, the real party in interest had a single possession of seven films on May 20th and of eight films on May 19th. He can legitimately be charged with only two possessions. The order of consolidation was correct.
III
(4) The trial court denied the People's petition as to the order prohibiting the showing of the films to the jury on the ground that it was an order on the admissibilty of evidence, not reviewable by extraordinary writ, citing People v. Municipal Court (Ahnemann) (1974) 12 Cal.3d 658 [ 117 Cal.Rptr. 20, 527 P.2d 372]; and People v. Superior Court (Smith) (1969) 70 Cal.2d 123 [ 74 Cal.Rptr. 294, 449 P.2d 230]. We agree with that ruling.
In the case before us, the trial court based its order squarely on section 352 of the Evidence Code, ruling that, where only the defense of entrapment was to be relied on, the introduction of 15 admittedly obscene films would unnecessarily prejudice the jury on the entrapment issue. In the cases relied on by the People, defense objections to the introduction of evidence — for example the narcotic character of an exhibit — had been overruled and that ruling was sustained on appeal, they were not the cases where a defense objection had been sustained. To permit a review of this interlocutory ruling in this fashion permits the People, by the side door, to secure an appellate review of a ruling which the Legislature had not seen fit to allow them to attack directly. ( People v. Superior Court (Stanley) (1979) 24 Cal.3d 622 [ 156 Cal.Rptr. 626, 596 P.2d 691].)
The judgment is affirmed.
Alarcon, J., concurred.